Jump to content

referencing channel using switch routing


peppino3d

Recommended Posts

Hello,

I've got a little question about the correct syntax for referencing a channel:

I've got two identical nodes plugged into a switch and the switch plugged in the third node.

Depending on the switch status (0,1) I would like to have the third node channel referencing either the first or the second node (with suffix 0 or 1):

graph

null_0 null_1

switch1 (0,1)

null3

current null3 expression:

ch("../null_0/myvalue")

theoretical new null3 expression:

ch("../null_"`ch("../switch1/value")`"/myvalue")

Any help on the correct syntax? :)

thanks

Peppino

Link to comment
Share on other sites

Cannot test either (back home on holiday) but will try as soon as I'm back to the office

Thanks it makes sense! :)

P

Cannot test currently, but I guess it's:

ch("../null_" + ch("../switch1/value") + "/myvalue")

Backticks is for evaluation expressions in string parameter fields.

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