Copy link to clipboard
Copied
Hi !
Is there a way to know that PF_Render is called for rendering the comp preview (the small preview window on top of the project pane)
My plugin is often called twice (one for the small comp preview and one for the larger comp) and I'd like to treat the render differently. Of course, i whish i can rely on something more accurate than guessing by the width/height of the requested render.
I did not find this info in the doc or in the comments
Thanks !
Copy link to clipboard
Copied
i don't think there's a deterministic way of telling. however, you're
likely to see some extremely high "downsample" value that's highlt unlikely
to be used for anything else.
that just gave me an idea! muahaha!!
compare the downsample value in the in_data to the value
using AEGP_GetCompDownsampleFactor().
if they're different, it's probably the icon being rendered. boom!
(it's all theoretical. please test before relying on this...)