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

How to always get images with PF_PixelFloat

Explorer ,
Feb 01, 2024 Feb 01, 2024

Copy link to clipboard

Copied

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

Views

96

Translate

Translate

Report

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

Copy link to clipboard

Copied

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. 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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