How can we reference a channel in a VEXpression ?
Docs say: In the snippet, you can read/write the value of a parameter on the node using parameter_id.
So I created a spare float called b.
Now in a wrangle I typed:
@get_b = b_b;
It throws error. I tried a bunch of other ways too with no luck.
Any help?
Reference a channel in a VEXpression ?
4916 4 1- A-OC
- Member
- 253 posts
- Joined: 7月 2006
- Offline
- tamte
- Member
- 8845 posts
- Joined: 7月 2007
- Offline
the referencing by purely typing name works only for existing parameters that are bound to the variables inside assets containing VEXpression field
to get the value of any spare parm you'd need to use ch() function or better corresponding expression to parm type (chf() for float parm, chv() for vector, chi() for int, etc.)
so in Wrangle it would be
f@get_b = chf(“b”);
to get the value of any spare parm you'd need to use ch() function or better corresponding expression to parm type (chf() for float parm, chv() for vector, chi() for int, etc.)
so in Wrangle it would be
f@get_b = chf(“b”);
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- A-OC
- Member
- 253 posts
- Joined: 7月 2006
- Offline
- ivanmalek
- Member
- 143 posts
- Joined: 9月 2017
- Offline
- BabaJ
- Member
- 2129 posts
- Joined: 9月 2015
- Offline
It appears your not using the full syntax required for chf when using op_id.
http://www.sidefx.com/docs/houdini/vex/functions/chf.html [www.sidefx.com]
I don't know, never used that variant and whether or not it's ok to use it like you have tried.
http://www.sidefx.com/docs/houdini/vex/functions/chf.html [www.sidefx.com]
I don't know, never used that variant and whether or not it's ok to use it like you have tried.
-
- Quick Links