Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

How to always get images with PF_PixelFloat

Participant ,
Feb 01, 2024 Feb 01, 2024

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.

TOPICS
FAQ , How to , SDK
255
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 01, 2024 Feb 01, 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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2024 Feb 02, 2024
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines