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

Progress bar in parameter UI

Explorer ,
Jan 11, 2024 Jan 11, 2024

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!

TOPICS
SDK
443
Translate
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 ,
Jan 11, 2024 Jan 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.

Translate
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
Explorer ,
Jan 15, 2024 Jan 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.

Translate
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 ,
Jan 16, 2024 Jan 16, 2024
LATEST

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?

Translate
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