orgeeizm
08-10-2003, 08:39 PM
Lets say I make a box and duplicate it 100 times and having
them placed randomly on the X and Z planes and I would like to animate each box rising up the Y direction with each Y values of the box being incremented randomly. I know how to do this normally in C++ with a graphics lib and it would be something like this pseudocode assuming the boxes are already created:
animateAllBoxesToHeaven()
{
integer index;
for index = 0 to 100
{
box[index].y -= random(3);
}
}
main()
{
animateAllBoxesToHeaven();
}
Basically after I create the scene with the random boxes, how would I or where would I code the MEL script to keep the boxes animated going up and up with random increments throughout the whole range of time my animation regardless how long it is.
So if the frame range was 0-360, the script would go from frame 0 till 360 but I only write it once.
http://www.orgeeizm.net/pix/boxquestionss.jpg
CRAP!!! Sorry Moderator, i put this on the wrong section, shouldve been on the MEL section. :banghead:
them placed randomly on the X and Z planes and I would like to animate each box rising up the Y direction with each Y values of the box being incremented randomly. I know how to do this normally in C++ with a graphics lib and it would be something like this pseudocode assuming the boxes are already created:
animateAllBoxesToHeaven()
{
integer index;
for index = 0 to 100
{
box[index].y -= random(3);
}
}
main()
{
animateAllBoxesToHeaven();
}
Basically after I create the scene with the random boxes, how would I or where would I code the MEL script to keep the boxes animated going up and up with random increments throughout the whole range of time my animation regardless how long it is.
So if the frame range was 0-360, the script would go from frame 0 till 360 but I only write it once.
http://www.orgeeizm.net/pix/boxquestionss.jpg
CRAP!!! Sorry Moderator, i put this on the wrong section, shouldve been on the MEL section. :banghead:
