Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 24-09-2014 , 06:29 AM
Registered User
Join Date: Jan 2011
Posts: 18

2 if statements in 1

How can I do this through nodes or an expression? This is for a rig.

If "x" is equal to or greater then y and if "z" is equal to or greater then "c"
B equals 1
if not B equals 0.

Thanks

# 2 24-09-2014 , 04:02 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
Create an expression and put in your variables like so:
Code:
$x = myCube.translateX; //or whatever, same for y, z, c.
if ($x >= $y && $z >= c){
    $B = 1;
}
else {
    $B = 0;
}

I'm sure you could do this with nodes, but the expression seems pretty straightforward.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads