Hi Chris
Thanks a lot for looking in to the code for me. I understand what you did, and it does create the cubes along the animation. I played around with it, and as you suggested tried creating a variable with the end frame. I also renamed all of the trail cubes and added them into a group.
Code:
int $i = 5; // start frame
int $end = 48; // end frame
for($i; $i < $end ; $i = $i + 5) {
select pCube1;
duplicate -rr -n pCube_trail01;
currentTime($i);
}
select "pCube_trail*"; // select all trail cubes
group -name grp_trails01; //group them
I was wondering how to use this in an expression. I notice that the currentTime actually moves the time line to the whatever $i is as fast as it can compute it. Ive been trying to figure out how to get it to run it real time. So i was thinking of somehow referencing the current frame (frame command), sort of like in #15 expressions section in The Artists Guide to MEL video. but I havent been successful at all. Im not sure if im going about this the wrong way.
I know this code is a mess but this is what i could come up with
Code:
int $i;
if (frame == 1){
select pCube1;
duplicate -rr -n pCube_trail01;
select "pCube_trail*"; // select all trail cubes
group -name grp_trails01; //group them
int $i = 1;
}
$i = $i + 1;
Maybe you can point me in the right direction...
i tried Animated snapshot, and it does indeed do basically what this code does, but i was looking to create the duplicates as its animating. I watched the tutorial on it, and Sunder had a neat trick with having it trail behind, but the duped trail pieces also move.
Thanks!
PS. Love the front page redesign!