Skip to main content
July 13, 2012
Answered

Is there an event when the comp's color depth/pixel format is changed?

  • July 13, 2012
  • 2 replies
  • 1216 views

Is there any way I can detect the change in color depth in a composition?
I know I can react differently by calling PF_GetPixelFormat() on render to find out the current bit depth/format, but I was wondering if there is any way to detect and react to the event when a user changes the color depth of the composition manually?
Basically, what I want to do is hide/change parameters in the ECW depending on the bit depth.

Any help appreciated 🙂

This topic has been closed for replies.
Correct answer shachar carmi

you can use PF_UpdateParamUI during the render call to force AE to refresh the UI,

you can also hide/unhide params at any time using AEGP_SetDynamicStreamFlag and AEGP_DynStreamFlag_HIDDEN.

2 replies

shachar carmiCommunity ExpertCorrect answer
Community Expert
July 18, 2012

you can use PF_UpdateParamUI during the render call to force AE to refresh the UI,

you can also hide/unhide params at any time using AEGP_SetDynamicStreamFlag and AEGP_DynStreamFlag_HIDDEN.

Known Participant
July 16, 2012

I think the frame is re-rendered when the comp depth is changed, you can put your check in Render or Pre-render.

July 17, 2012

Yes, the frame is indeed re-rendered, but I can't change parameter properties in Render, only when receveing events or PARAMS_UI_CHANGED