View Full Version : Find instanced script controllers current objects name?

03 March 2009, 12:49 PM
Any help would be greatly appreciated :)

I have a script controller which is instanced on a bunch of objects that are children to objects positioned on a path with a path controller. I need to find out the object that the script controller instance is currently acting on so I can find its parent and get the percentage that the parent is along the path.

I've tried playing around with refs.dependents and refs.dependentNodes but the best I can get is a array with all the objects that the controller is instanced on.

03 March 2009, 02:20 PM
you may be SOL...

From the "'This' Local Variable in Scripted Controllers" topic:
Obviously it is not possible to tell the actual node when the controller is instanced across multiple objects which is a known limitation.

CGTalk Moderation
03 March 2009, 02:20 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.