Copy link to clipboard
Copied
Hi everyone, somebody posted this question before but sadly it's no longer on the forum :'( Hopefully it's an easy one to answer 🙂
My plug-in UI has a layer param and I would like to get the handle of whichever layer the user selects, so I can access its transforms etc, not just the pixel data. I was hoping param->u.ld contained the layer index but can't see anything obvious. Is this possible?
I'm currently using point and angle params, with expressions to reference the transform data, but I think it's a slow workaround and not intuitive.
Very much appreciate any help, big thanks in advance!
it contains a layer ID. use AEGP_GetLayerFromLayerID to get the layer handle from that ID.
Copy link to clipboard
Copied
it contains a layer ID. use AEGP_GetLayerFromLayerID to get the layer handle from that ID.
Copy link to clipboard
Copied
Wonderful thanks!