Jump to content

FolderParmTemplate from FolderSetParmTemplate


Recommended Posts

Hey guys 

I have a multiparm block and few folders inside the multiparm block. I'm trying to find all the parameters in a folder inside this multiparm block using python. But when I try to access it, I could just get folderset and not folder parms and also it seems I cannot get my folder parm from the folder set. Is there a way I can get my folder parm template from the folder set parm template ? or Is there a better way to do this ? Any help on this regard is highly appreciated.

 

Cheers

-J

Edited by magicknight
Link to comment
Share on other sites

  • 2 weeks later...

Hello,

 

I had the same problem and haven´t found the most logical solution.

 

One way would be using "parmTemplates" method to get the parm templates inside the folder. This is a tuple, so, if u know the order of your parm or folder in this tuple, just access that. If it´s another folder, just use the method again until u reach the parm level.

Since I make lot´s of changes in the parameters orders until I finish the tool, this way was kind of problematic.

 

And since I didn´t found a way to create a node selector parm template with restrictions (like selecting only cameras), I went another way.

I manually created a hidden parm in the location I wanted, with it´s parms and restrictions already done. Then, I used it as a reference to create other parameters, just unhided them. And since I can use "createAfter" method, I just created the other parameters after this hidden one.

 

sorry for the terrible english! I hope it makes sense!

Link to comment
Share on other sites

Hey,

 

Thanks for your reply. I appreciate it. I ended up using the parmTemplates method to access the folder parmTemplates and get all parmTemplates inside this folder. Anyways thanks. But I didn't get your approach for creating node selector parmTemplates. Which 'createAfter' method did you use ? Can you give me an example if possible ?  

 

Cheers

-J

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