Friday, November 14, 2008

Swing

Autodesk Smoke tips & Tricks - Swing

Swing, swing baby, swing, swing to the left, swing to the right, swing, swing ....
... Ok, enough, back to business !!

Here's what we're going to do, as you pull the 'X fade' up, 'A' will swing faster and higher (I should have have use 'B' instead) .

Add 'A' and 'X' to the screen.


Add 2 new axis, axisE and axisC, connect axisE to A, and connect axisC to X.



In axisE, pull the centreY to the top of character 'A', this is the center of the swing.

In axisE rotation Z, enter expression :

sin(frame/10)*(axisC.position.y/5)

Now, you can control the swing of 'A' with axisC positionY, the higher the value, the faster and higher the swing.

Ok, are you ready to swing now....

... swing baby, swing, swing to the left, swing to the right, swing ...

No comments: