Jump to content

Create multiple folder parameters on a single node with python


Recommended Posts

Hello guys,

I'm trying to create two different parameter folders on a node. These two folders would be created by two different python nodes with the hou.FolderParmTemplate() method.  Unfortunately when I try to achieve this, the second folder created doesn't get its name set properly. It sort of automatically takes an incremented name of the first folder created, even though it has a distinct name set in the hou.FolderParmTemplate() method.
Any idea as to why this is happening and how to resolve it?

I've attached a file, a simple setup of what i'm trying to do.
There are three nodes : a null on which i'm trying to create two separate folders and the two python nodes that generate the different folders. If you run both of their codes and then go in the Parameter interface of the null, you'll see the second file hasn't been properly named.

Many Thanks.


Edited by Kdeg
Link to comment
Share on other sites

Well turns out you can only name the first tab folder. The others will be locked and given an incremented name of the first one even if you create them manually in the parameter interface. Not sure why, maybe a bug in my Houdini version. Other folder types, like simple folder or collapsable work fine.

Link to comment
Share on other sites

  • 3 weeks later...

Indeed that is kinda the behavior that you need to follow in order to create tab folders or radio buttons.

I have been trying to figure out how to put folder group with parameters and sub-folders into an already existing folder. Have you done anything like that?
It looks like, you can't just stack `parm_template_group.appendToFolder(target_folder, source_folder)` one after another if I want to include two folder in an existing one. I guess I need to have a parmTemplateGroup() for each folder.

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.

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...