View Single Post
# 2 21-11-2008 , 03:30 PM
bendingiscool's Avatar
Subscriber
Join Date: Jul 2006
Location: London
Posts: 567
ok so far I have a simple switch statement to make some objects, later the objects will be replaced with the animation clips...

/////////////////////////////
proc objMaker(int $val) {

switch($val) {
case 1:
polySphere; //be replaced by a certain clip
break;

case 2:
polyCone; //be replaced by a certain clip
break;

case 3:
polyCube; //be replaced by a certain clip
break;
}
}

objMaker(1)
/////////////////////

What I want to do is work out, for instance, if it goes past a certain point on the grid, or reaches a certain frame, etc, then apply an animation clip, or in the mean time do whatever command I have in the different cases.

Many thanks

Chris