Notifications
Clear all

[Closed] Find instanced controllers

Hello,

Is there a way to collect instanced controllers?

Example:
I’ve got some spheres. These spheres have their y_position controller instanced. I’d like to select one controller and search the scene for any instances of the controller.
Something similar is possible in the schematic view with the “list views/instances” dialog. This coughs up a list of just those controllers being instanced. But from what i’ve read in the help, i can open this dialog by script, but not get the contents of it.

Klaas

1 Reply

try…

refs.dependents <controller>

e.g.

refs.dependents $.position.y_position.controller

That should return an array of all things that depend on that controller. Then just process only the elements of that array that are other nodes (via e.g. ‘isKindOf <element> <class>’)