Jump to content

change node menu with python?


Dee

Recommended Posts

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?

Link to comment
Share on other sites

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 by Dee
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...