Hi!
Lets say I wanted to get the name of the previous node and set it into a string attribute. Is there a function that would allow that?
-Olivier
Vex: how to get the name of a node into a string
5936 3 1- olivierth
- Member
- 1010 posts
- Joined: April 2017
- Offline
- bonsak
- Member
- 459 posts
- Joined: Oct. 2011
- Offline
- Mielwen
- Member
- 22 posts
- Joined: May 2020
- Offline
Hi!
In a wrangle write:
s@nodename = chs("nodename");
then press the button right next to the text field under the down arrow to create a spare parameter.
That will create a text field, in there you can write a hscript expression by putting it in brackets,
so to get the name of the previous node you'd write:
`opinput(".",0)`
that will return the name of the node in your first input;
Hope that helped,
cheers
In a wrangle write:
s@nodename = chs("nodename");
then press the button right next to the text field under the down arrow to create a spare parameter.
That will create a text field, in there you can write a hscript expression by putting it in brackets,
so to get the name of the previous node you'd write:
`opinput(".",0)`
that will return the name of the node in your first input;
Hope that helped,
cheers
- olivierth
- Member
- 1010 posts
- Joined: April 2017
- Offline
-
- Quick Links