Skip to main content
YuK1_Works
Inspiring
February 1, 2024
Question

How to always get images with PF_PixelFloat

  • February 1, 2024
  • 2 replies
  • 292 views

I want to get the image with PF_PixelFloat regardless of PF_PixelFormat in PF_EffectWorld.
My current plugin casts the array to type PF_PixelFloat once and then uses it, losing time.
Is there any way to do this?
Thank you.

This topic has been closed for replies.

2 replies

Community Expert
February 2, 2024

well, you can use AEGP_RenderAndCheckoutFrame and AEGP_GetReceiptWorld to get any project item in any color depth regardless of the project settings.

the downside is that AE can't know in advance that your plugin will need that item, so it doesn't cache the results. that means the input aquisition is much slower than if you used the input AE passses to your plugin.

James Whiffin
Legend
February 2, 2024

If you use the GPU suite you'll always get the pixels as 32 float, though that's not an ideal solution. I don't think it's possible otherwise.