Object ID in a Float Script controller.

Hi all. I'm pretty new to this so please bear with me.

I'm trying to find the unique ID number of an object from a Float Script Controller. I guess it's the equivalent of thisLayer.index in After Effects expressions.

I have tried $.inode.handle but this is obviously referring to the current selected object as opposed to the object that has the Float Script Controller.

Is there anyway to do this?

Thanks,
Jamie

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mertens3d's picture

if i understand

if i understand correctly.

in the script controller.

in the create variable box, put in a variable. I used

target_obj

in the variables box, select target_obj

select assign node, and select the node you want info on.

in your expression box, put

print target_obj.handle

[ 70.1306, 15.1558, 0 ]

that will print out to the listener your desired node handle.

Did that do what you wanted?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.