Message 1 of 8

Not applicable
09-19-2019
12:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
What I'd like to do is control the translation limits for a control based on the twist attribute of a second control. I've created an expression within the Expression Editor and it works once when I hit Edit. However, I want it to evaluate every time the twist value changes. I'm pretty sure I've seen it done before but I'm drawing a blank on how to do it.
float $twistValue = `getAttr("torso_CTL.twist")`; if ($twistValue < -10) transformLimits -tz 0 200 -etz 1 1 CTRL_throttleHandle; else if ($twistValue >= -10 || $twistValue <= 10) transformLimits -tz 50 250 -etz 1 1 CTRL_throttleHandle; else transformLimits -tz 100 300 -etz 1 1 CTRL_throttleHandle;
Solved! Go to Solution.