Procedure calling on particle collision and count frames?

Anonymous

Procedure calling on particle collision and count frames?

Anonymous
Not applicable

hi there,

i'm trying to get a procedure call on particle collision, count 6 six frames, and stop the procedure.

for example, say: particle 1 collide with pCube1, dies and call the procedure (so far so good) then something happens for 6 frm (or whatever number of frames you like) and then it stops. 

i've been stuck on this for a while... both with expressions or mel code.

thanks
f

0 Likes
Reply
375 Views
2 Replies
Replies (2)

Anonymous
Not applicable

for those who might be interested... i ended up with this:

 

int $crt = `currentTime -q`;
int $cnt = $crt + 5;
for($i = $crt; $i <= $cnt; $i++){

$tmr = `currentTime -edit $i`;

print ($tmr + "\n");

}


f

0 Likes

Anonymous
Not applicable

a different approach: 


// procedure

global proc cnt(int $i) {

print ($i + ".\n");

}

// expression

int $i;

if ($i <6) {

cnt($i);

$i++;

} else {

print "hello\n";

$i =0;

}


thanks
f

0 Likes