It's seems not be possible. When I retrieve the parmTemplates() of the FolderParmTemplate (which is a multiparm folder), it would return the template for parameter parm#, not the actual instance parm1, parm2, etc So I cannot use the .setLabel(“myNewLabel”) function on specific instances.
I also tried the following, without success:
group=node.parmTemplateGroup()parmPlate=node.parm("parm3").tuple().parmTemplate()# this actually returns the parmTemplate of the instanceparmPlate.setLabel("myNewLabel")node.setParmTemplateGroup(group)
This is definitely not possible I'm afraid. The best you could do would be to use an actual Label type parameter and set that to your desired value and it would remain for the life of that instance.
Graham Thompson, Technical Artist @ Rockstar Games
Since I only need two different labels to be displayed for my parameter instance, I also thought of creating a copy of the instance paramater with a different label, and toggle between the two parms based on which label I have to display on the user interface.
A little bit of effort to adjust the scripts in my pyhton module, but it can be done I guess. I'm just not a big fan of the idea of adding unnecessary parms, especially in a multiparm folder, that's already not super snappy.
The label type paramater seems to do the trick, thanks! But interestingly when you set the value for myLabelParm.set(“My label”), it would set the value for the Label1 field, not for the actual main label.
That's an issue because I would like the text to be justified to the left, and not floating around like mad when you resize the window. Only the main label stays on place.
I bet there's some kind of RFE already for labels alignment options.
Also, labels this kind of labels misalignment with everything else is really triggering me
Andr The label type paramater seems to do the trick, thanks! But interestingly when you set the value for myLabelParm.set("My label"), it would set the value for the Label1 field, not for the actual main label.
That's an issue because I would like the text to be justified to the left, and not floating around like mad when you resize the window. Only the main label stays on place.
I bet there's some kind of RFE already for labels alignment options.
Also, labels this kind of labels misalignment with everything else is really triggering me