ScriptSpot

Forum topic · General Scripting

Object ID in a Float Script controller.

By JimJam · 2009-08-22

Description

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 (1)

mertens3d · 2009-08-23

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?