Checking Out Layer Position
Hi gang;
This is probably a very silly question but if I check out a layer like so:
AEFX_CLR_STRUCT(checkout);
ERR(PF_CHECKOUT_PARAM(in_data,
PARENT_LAYER_ID,
in_data->current_time,
in_data->time_step,
in_data->time_scale,
&checkout));
How do I retrieve it's position?
I know I can easily retrieve the layer's width and height like so:
int width = checkout.u.ld.width;
int height = checkout.u.ld.height;
I found in the documentation that I can use this to retrieve the origin, which I assume is what I want:
int originx = checkout.u.ld.origin_x;
int originy = checkout.u.ld.origin_y;
But these return 0. I basically want to retrieve a layer's position so that I can bind my effect to it's position.
Am I doing something wrong?
Thanks,
-Richard
