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

Knowing when rendering comp preview?

Explorer ,
Mar 05, 2018 Mar 05, 2018

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 !

TOPICS
SDK

Views

221

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 ,
Mar 05, 2018 Mar 05, 2018

Copy link to clipboard

Copied

LATEST

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...)

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