How to force re-evaluate a menu-script every second?

   1934   4   2
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
I need to trigger a menu-script evaluation every second or less.
How can I do it?

I guess I could use a background event callback like addEventLoopCallback(callback) [www.sidefx.com] , but I don't know how to trigger the menu script evaluation with python.

The menu-script is always triggered when you manually change any parameter of the node. But it won't be triggered when you change the parm with python.

Do you have any idea how to trigger a menu-script evaluation?
User Avatar
Member
159 posts
Joined: Feb. 2018
Offline
Have the same question, want to know it, too.
User Avatar
Member
4520 posts
Joined: Feb. 2012
Offline
Hi,

You can call menuparm.pressButton() in Python.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
thanks a lot
User Avatar
Member
255 posts
Joined: Sept. 2012
Offline
What about to force houdini to evaluate an ordered menu script which will build a HDA multiparm block?
I tried with different things, can't convinced him to effectually evaluate my menu script..
Vincent Thomas   (VFX and Art since 1998)
Senior Env and Lighting  artist & Houdini generalist & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
  • Quick Links