Skip to main content
Inspiring
September 15, 2023
Answered

Regularly Update Custom UI in Premiere

  • September 15, 2023
  • 1 reply
  • 614 views

I am looking for a way to update the CUI in Premiere Pro at a particular interval (like every 250ms). This was quite easy to do in AE - I set up an IdleHook and then call PF_RefreshUI every IdleHook if it's been >250ms since the last time it was called. But Premiere doesn't support AEGP and therefore doesn't support IdleHook.

 

I've tried saving the PF_ContextH that we're passed during a Draw command and calling PF_InvalidateRect with it every Render (wouldn't be the same as every 250ms, but better than nothing), but that seemed to freeze the plugin and definitely didn't refresh the UI. I also tried refreshing the UI at the end of every Draw command with both PF_InvalidateRect and |= PF_E0_UPDATE_NOW, neither of which work (presumably the host only listens to these for non-Draw commands).

 

Any help would be greatly appreciated.

This topic has been closed for replies.
Correct answer Bruce Bullis

I have some work being done in the background on another thread, and I want the UI to show "work in progress" while it's working, then "work complete" when it's done; much like Adobe's Warp Stabilizer effect does.


There's no good API mechanism for accomplishing that goal.

 

The Warp Stabilizer "cheats", and uses app-specific messaging not available through the API.

 

1 reply

nishu_kush
Legend
September 15, 2023

Moving the discussion to the Premiere Pro community.

 

Best,

Nishu

jonah.c.lAuthor
Inspiring
September 15, 2023

But this is a question about the AE SDK.

 

This question, also about the AE SDK's interaction with Premiere Pro re. custom UI, was originally posted in the Premiere Pro community and then was moved to the AE community by a mod: https://community.adobe.com/t5/after-effects-discussions/displaying-custom-ui-elements-in-sequence-panel-in-premiere-pro/td-p/6839854. I am not using the Premiere Pro SDK, and so I doubt anyone in the Premiere Pro community will have insight into this; I am using the After Effects SDK.

Bruce Bullis
Community Manager
Community Manager
September 20, 2023

Yes, but it's specific to the PPro hosting implementation (which lacks an idle hook).


What is it you need your custom UI to do, every 250ms?