Jump to content

reference multiparm parameter into multiparm label


Recommended Posts

Hi,I have a multiparm block (list) folder with 2 parameters : 1)label and 2)integer parameter with different values for each parm instance.

I would like each instance of the label to reference its pair instance of integer parameter (and then hide the integer parm so users can only see the label displaying its value). I tried writing this: `ch("intparm#")` into the label field, but it seems to always look at intparm1, even for additional instances.

Is there a way to do this somehow? Maybe force a python script into the label field? Any other workarounds?



Link to comment
Share on other sites

  • 4 weeks later...

Hey Filip,

it's possible via this expression: `ch("number_"+substr($CH,rindex($CH,"_")+1,1000000))`

In order for this to work you have to name you parameter "label_#". The expression slices the string based on the last "_". That way you get the current index with which you can look up other parameters.

See the attached file for more info :)




Edited by LucaScheller
  • Thanks 2
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...