Dee Posted July 12, 2013 Share Posted July 12, 2013 Hi. I'm trying to build a node that will let a user import available assets and need help from someone with more experience. Our asset database is represented in a directory structure, which makes populating the lists easy. I'm listing the contents of folders and building a menu from that: Directory: Entry 1 Entry 2 Entry 3 Etc. That's how the menu should look. Then, the next menu uses the selection from the first menu to build its selection options. My problem is getting it to update when menu 1 changes. I need to execute the python menu script on menu 2 when menu 1 changes its value. Does anyone know how to do that? Quote Link to comment Share on other sites More sharing options...
Dee Posted July 12, 2013 Author Share Posted July 12, 2013 (edited) It seems hou.pwd().cook(True) Will do what I need, though it seems overkill to recook the whole node just for that menu script to execute. Edited July 12, 2013 by Dee Quote Link to comment Share on other sites More sharing options...
edward Posted July 12, 2013 Share Posted July 12, 2013 Maybe just setting a value on the second menu parameter will do it. Quote Link to comment Share on other sites More sharing options...
Dee Posted July 15, 2013 Author Share Posted July 15, 2013 That only works after the node is recooked, but: hou.pwd().parm("Element").cook(True) Does the trick well. :-D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.