"Scripted Expression" for driving the "Copy Rotation Constraint's Influence" on Piero's "Toe Control Bones"

posted to: Rigging the Leg

@theluthier You could use the "Greater Or Equal  Comparison Operator" as "Scripted Expression" for driving the "Copy Rotation Constraint's Influence" on Piero's "Toe Control Bones":

-var >= 0 

"Positive  X Rotations" gives "0" ("FALSE") as "Driver Value" and "Unrotated" or "Negative X Rotations" give "1" ("TRUE") as "Driver Value".

File is here.

  • spikeyxxx replied

    Oh, I never thought of using Booleans in Scripted Expressions. Great tip Ingmar! 

    Although I personally would use var<=0 in this case, but that's nitpicking and I don't know enough about Python, but that might even be just as fast (it would be in C/C++).

  • Ingmar Franz(duerer) replied

    spikeyxxx You're absolutely right using "var <= 0" instead of "-var >= 0" since it's the simpler expression.

  • spikeyxxx replied

    Yeah, it probably doesn't matter for the computer, but for me it's easier to read and understand :D