Kredka Strikes Back "Controllers"
Before I start writing 500 lines of code I have question about controllers to ask.
I search for this in help/net, no idea how to do it.
I have to do 2 operations
1) check for particular controller in objects selection like:
for obj in selection do
check if obj has given controller if yeas add object to list
2) take these objects with particular controllers and remove from them controllers.
It will be few controllers but let say now I'm looking for one particular notetrack.
I can do it like this:
for s in selection do
tr1=classof s.controller == prs
if clasacontroler=true then ntrack=hasNoteTracks s.pos.controller
if ntrack=true then append notetracksobjmdq s
but it will take hundreds of lines to define and check all controllers in this way. Is way to check for particular controller in selection and remove this controllers simpler than this one above? I need it for selection. Like always grateful for any help.