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?


A Python expression you can use is:

valueIfTrue if isConditionTrue else valueIfFalse

This is known as a ternary conditional operator see:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.