davidp247

10-06-2004, 03:33 AM

Hi everyone, I need some help turning my list thingy here into an expression. I know the equations of how to make this work but i lack the mel knowledge to fully create the script.

So if i could get some help from you mel masters that would be much appreciated.

dave

Expression for "Blink" (which is a set driven key on an object).

start

1. check the value of "HeadSqshStrch" (which is a set driven key on an object).

2. capture that value.

3. if it's less the 0 then take the captured value for "HeadSqshStrch" which we'll call (X) and put it into this equation. (X) / 15 = (Y).

4. Take this new value (Y) and put it into this equation. (Y) * 2 = (Z).

5. Set the value of "SqshBlinkFix" (which is a set driven key on an object) to the newly created value of (Z)

6. Capture the value of (Z) (which is "SqshBlinkFix") and put it into this equation.

(Z) * 0.1 = (A).

7. Check the value of ""Blink" (which is a set driven key on an object)

8. Capture that value of "Blink" which we will call (B)

9. Now take (A) and (B) and put it into this equation. (A) * (B) = (C)

10. Now take the newly created value of (C) and set value of "SqshBlinkFix" to (C).

end

So if i could get some help from you mel masters that would be much appreciated.

dave

Expression for "Blink" (which is a set driven key on an object).

start

1. check the value of "HeadSqshStrch" (which is a set driven key on an object).

2. capture that value.

3. if it's less the 0 then take the captured value for "HeadSqshStrch" which we'll call (X) and put it into this equation. (X) / 15 = (Y).

4. Take this new value (Y) and put it into this equation. (Y) * 2 = (Z).

5. Set the value of "SqshBlinkFix" (which is a set driven key on an object) to the newly created value of (Z)

6. Capture the value of (Z) (which is "SqshBlinkFix") and put it into this equation.

(Z) * 0.1 = (A).

7. Check the value of ""Blink" (which is a set driven key on an object)

8. Capture that value of "Blink" which we will call (B)

9. Now take (A) and (B) and put it into this equation. (A) * (B) = (C)

10. Now take the newly created value of (C) and set value of "SqshBlinkFix" to (C).

end