Friday, November 7, 2008

Beat Bar Animation

Autodesk Smoke Tips & Tricks - Beat Bar Animation

Since we are talking about beat bar previously, i would continue with another expression technique with beat bar.

Ready a beat bar still frame like below, here i got 10 levels beat per-bar.
Make the clip 11 frames long. And using the top crop, 1st frame crop evrything out, 2nd frame reveal only the 1st lower beat, 3rd frame reveal 2 lower beats, 4th reveal 4 beats...., go on until all beat reveal at frame 11.
Set the crop animation to 'Constant', and set the right button to 'Rev + Cycle'. Extend the animation to a longer duration, here i set 250 frames.
Play the beat bar and see what's happening, it should be run continuously now. Using the still frame beat bar, load it many times as media, the more the better. Arrange each bar side by side.
At media2, enter expression : eval(media.media1.crop.top, frame-2)
At media3, enter expression : eval(media.media1.crop.top, frame-4)
At media4, enter expression : eval(media.media1.crop.top, frame-6)
continue this pattern until the last media.
Note that when you entering expression, you don't have to type everything everytime, just use the up or down arrow key to scroll through the previous entry, and change just the number that need to be changed.

Remember to ON all the crop for all medias.
Now play the bars, it will create kind of wave pattern where the 1st bar transfer the value to the 2nd bar, then 2nd bar will transfer the value to 3rd bar. By using this techniques with crop top and crop bottom, you can create pixel drawing on screen, like for example a smiling face.

By the way, you can do this manually, just animate the first bar like above mentioned, copy it to other bars, then offset each bar animation by using TranslationX or with TRACK view. However, by using expression, i would only need to do it once, if i change my animation, i only need to change the 1st bar.

No comments: