Jump to content
Sign in to follow this  
gemini

Force to update Menu Script from Python

Recommended Posts

Hi, 

I have a button strip parm which is dependent on a parameter on the node itself. So when the parameter changes the button strip changes too.

How do i force houdini to recook the menu items ?

Thanks in Advance ! !

G

Share this post


Link to post
Share on other sites
Posted (edited)

you can trigger menu refresh or parm callback by calling parm.pressButton()

so let your parameter callback script run buttonStripParm.pressButton()

dynamic_button_strip_menu.hip

Edited by anim
  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

Thanks! Works!

Edited by gemini

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×