Skip to main content
Known Participant
January 11, 2024
Question

Progress bar in parameter UI

  • January 11, 2024
  • 1 reply
  • 398 views

Is there a way to update some parameters name during computation in the rendering thread? The warp stabilizer seems to do this but I cannot find a way to trigger UI redraw from the render thread. Thanks for any help!

This topic has been closed for replies.

1 reply

Community Expert
January 11, 2024

have the render thread leave some message in a place reachable by both threads (the global data handle, for example). then on the ui thread implement idle_hook, and during that call check for the message. if it's there, proceed with the renaming on the ui thread.

Known Participant
January 15, 2024

Thank you for the hint, already looking into it...

I receive the triggers, but how can I access parameters from within the hook? The hooks signature is 

 

static	A_Err	IdleHook(
			AEGP_GlobalRefcon	plugin_refconP,
			AEGP_IdleRefcon		refconP,
			A_long* max_sleepPL)

 

... so I don't have access to the suites or parameters. Any help is appreciated! Thanks.

 

EDIT: I managed to implement this, but now I have another problem. Changing a parameters name via AEGP_SetStreamName triggers a rerender and invalidates the cache. How can I prevent this? Renaming shouldn't change anything.

Community Expert
January 16, 2024

hmmm...

renaming readlly shouldn't trigger a re-render. what happens if you use AEGP_SetStreamName during UPDATE_PARAMS_UI?

perhaps the name is linked to some param value via expression? is the name factored into GuidMixInPtr() dure pre-render?