Expressions Question

   360   1   0
User Avatar
Member
70 posts
Joined: March 2016
Offline
Hey all, Im currently working on a machine rig and I am trying to write an if statement for when I would like it to transform.


So have a master control Null and one of the parameters is a switch from 0 to 1. 0 being the static pose and 1 being the transformed posed. But I can seem to get the if statement to work?. I want it to do if the switch is on move to the transformed position otherwise just follow the Rig controls value. Am I doing this correctly of should I try it another way? Basically Im trying to make a set driven key with expressions.

So for example currently I have if(ch("Transformation")==1, 30, ch("../Control/Jaw_Rotation"));

Mac OS Sonma
Houdini Indi 20.0.688


any and all advice would be greatly appreciated!
User Avatar
Member
2625 posts
Joined: June 2008
Offline
It's not VEX so you don't need the semi-colon.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links