Notifications
Clear all

[Closed] trackviewnodes access

I want detect existing scene nodes by Track View Nodes Access e.g how many scene effects there are on scene and have ability to delete it.
This method work fine to me as far as there is anim.layer controller on scene because it seams it`s universal way of handling for all scene elements:

t=trackviewnodes;n=t[#Anim_Layer_Control_Manager];deleteTrackViewController t n.controller;gc() — THIS WORK

however there are two problems. First is how to detect how many nodes there are on scene, and second, I tried to use this same method to remove different existing scene nodes like effects, sounds etc but It work only for above example it won’t work for antthink else, here is example:

t=trackviewnodes;n=t[#Scene_Effects];deleteTrackViewNode t n.TrackViewNode;gc()
— THIS DON`T WORK

Does any one know what’s wrong with my code?