Using layer param to PF_Checkout_Param, giving unwanted results.
Copy link to clipboard
Copied
I have a text layer that is 50x50 in a comp that's 1000 x 1000. In_data gives me good info about this, the extent_hint is {100,100,150,150}.
If I checkout the same text layer using PF_Checkout_Param (called from a different layer with my effect applied), it tells me the width and height are both 1000 (the size of the comp) and the extent_hint is {0,0,1000,1000}. I'd like more exact info like I received in the in_data (in regards to extent_hint), how can I get this info by checking it out using PF_Checkout_Param, or another method? Thanks.
Copy link to clipboard
Copied
Hi James,
I might be wrong as I'm not using text layers, but aren't text layers 'collapsed' layers (like shape layers)?
Then when you check it out, it gets the composition size instead of layer size.
Cheers,
François
Copy link to clipboard
Copied
Hi Francois
You're probably right. I was wondering if there was a way to get around that and find the exact layer size. Perhaps it's not possible.
I tried checking out a solid and it gave me the size of the solid, but no output origins. I need to find where the layer sits in the comp. So either extent_hint or output origins
Congrats on your new plugin btw, looks amazing!
Copy link to clipboard
Copied
Thanks 🙂
May be the layer's matrix could give you some informations, and compare it to comp's size... Just a thought though, not sure at all.
Cheers,
François

