javae_logo_small
float getPY(int);

Function:
Returns the current Y position of the sent layer number.

Note: The value that's returned is not affected by any value that's being added to the transform data by the user. It only returns the value that is calculated from the keyframe data.

Send:
Layer number (int).

Returns:
Current Y position for defined layer (float).

example:

void draw(){
background(myComp.getBG());
myComp.calcLayer(2);
float newX = myComp.getPX(2);
float newY = myComp.getPY(2);
rect(newX, newY, 60,80);
}