乐琢 Urdro Posted April 11, 2012 Share Posted April 11, 2012 Hi, all Is there anyway to get a parameter name which is in a multiparm blcok folder? The Image shows the result that I want. For example, when the user put "+" button ,and a new parameter will be created, its value is the parameter's name. And My question may be similar with this. But I didn't get help from it. Any suggestion will be grateful ,thanks! Quote Link to comment Share on other sites More sharing options...
乐琢 Urdro Posted April 11, 2012 Author Share Posted April 11, 2012 I'm doing this for /out to generate render command script. For some reason I can't use Hqueue. So I want split the render task by this way. When I need to render a 100 frames, and the numbers of parameter is 2, the first parameter will show "...1-50", and second will show "...51-100". When the number is 5, there will be 5 parameters and show "...1-20", "...21-40", "...41-60", "...61-80", "...81-100" Well, I hope my poor english make my point clear. Quote Link to comment Share on other sites More sharing options...
zoso060 Posted April 12, 2012 Share Posted April 12, 2012 I'm doing this for /out to generate render command script. For some reason I can't use Hqueue. So I want split the render task by this way. When I need to render a 100 frames, and the numbers of parameter is 2, the first parameter will show "...1-50", and second will show "...51-100". When the number is 5, there will be 5 parameters and show "...1-20", "...21-40", "...41-60", "...61-80", "...81-100" Well, I hope my poor english make my point clear. Using python (where 'node' is the null1 object): # To get the parameter count parmCount = node.parm('folder_name').eval() # And then loop through them to access each parameter for i in xrange(1, parmCount+1): cmdParm = node.parm('cmd%d' % i) print cmdParm.name(), cmdParm.eval() # , etc.. . Is this what you meant? Jesse Quote Link to comment Share on other sites More sharing options...
乐琢 Urdro Posted April 12, 2012 Author Share Posted April 12, 2012 Using python (where 'node' is the null1 object): # To get the parameter count parmCount = node.parm('folder_name').eval() # And then loop through them to access each parameter for i in xrange(1, parmCount+1): cmdParm = node.parm('cmd%d' % i) print cmdParm.name(), cmdParm.eval() # , etc.. . Is this what you meant? Jesse Thanks for replying. While what I need is each parameter has exactly the same expreesions or scripts, and can return different value, because their parameter's name is different. Your method needs to write different expressions in each parameter. Quote Link to comment Share on other sites More sharing options...
乐琢 Urdro Posted April 12, 2012 Author Share Posted April 12, 2012 (edited) I think my qeustion is same like this:Sidfx link but there isn't help either. Edited April 12, 2012 by Urdro 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.