10
$\begingroup$

If the y location of a certain object is greater than 0, I want to add a fixed amount to another object's driven channel. How do I achieve that?

$\endgroup$

1 Answer 1

18
$\begingroup$

A Python expression you can use is:

valueIfTrue if isConditionTrue else valueIfFalse

This is known as a ternary conditional operator see:
https://stackoverflow.com/questions/394809/ternary-conditional-operator-in-python

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .