animknight Posted December 16, 2013 Share Posted December 16, 2013 (edited) 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 December 17, 2013 by magicknight Quote Link to comment Share on other sites More sharing options...
animknight Posted December 17, 2013 Author Share Posted December 17, 2013 Bump Quote Link to comment Share on other sites More sharing options...
gui Posted December 26, 2013 Share Posted December 26, 2013 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! Quote Link to comment Share on other sites More sharing options...
animknight Posted December 27, 2013 Author Share Posted December 27, 2013 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 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.