Duplicate, and Constrain MEL script

Here is a script that duplicates an object and then constrains it to another animated object. In this case a stack of low res, dynamically animated coins are replaced by textured coin model.

string $mySel[] = `ls -sl`; int $arraySize = `size $mySel`; print $arraySize; int $i = 0; for ($i = 0; $i < $arraySize; $i++) { string $dupPenny[] = `duplicate penny1`; select $dupPenny; group -name ("pennyGRP" + $i); CenterPivot; select $mySel2[$i]; select -tgl ("pennyGRP" + $i); pointConstraint -offset 0 0 0 -weight 1; orientConstraint -offset 0 0 0 -weight 1; }

This script also groups the new coin, so it can be offset.

3D dynamics

Rigid body dynamics in anaglyph 3D

Created in cinema 4D. For dynamics check out this tutorial. For the stereo rig in C4d I read these instructions, but actually just placed two cameras a “little bit” apart, side by side.

To composite this render, a stereo pair of left and right camera image sequences, I used the “Set Channels” effect in After Effects. On the left camera renders, I removed green and blue, leaving a red image, on the right I removed the red, leaving cyan. The blend mode is “Add”. The result will give a 3D depth effect if viewed through red/cyan filtered 3D glasses.



3D anaglyph dynamics test from Maya. To composite this render, a stereo pair of left and right camera image sequences, I used the “Set Channels” effect in After Effects. On the left camera renders, I removed green and blue, leaving a red image, on the right I removed the red, leaving cyan. The blend mode is “Add”. The result will give a 3D depth effect if viewed through red/cyan filtered 3D glasses.

Cloth Animation



Test of Maya nCloth dynamic animation. Click image above to play. Click here to download.