PDA

View Full Version : Channel value??



RebelHill
02-05-2011, 09:01 PM
Hey.

So Im trying to find the value of a certain channel of a certain item to use elsewhere... Lets say I have the following...


{
Va = 2;

SelectItem("Null");
ZLimits(Va,1);
}

Now variable "Va" is just a value here... but let's say I wanted that value to be the Z position of item "Null2".

There is ofc "getPosition (time)", but that's jsut the overall position, all channels.

Any help, please?

evenflcw
02-05-2011, 10:11 PM
All channels values indeed. Access each respective value via the dot operator/member access.

pos = item.getPosition(time);
x = pos.x;
y = pos.y;
z = pos.z;