code


We used a scriptJob that would be executed when attributes change.
int $job=`scriptJob -ac data1.timeChange "updateData"`;

updateData is a procedure to increment timeChange:
global proc updateData(){
setAttr data1.timeChange (`getAttr data1.timeChange`+0.01);
refresh;
}


To stop the animation, you can kill the scriptJob in this manner:
scriptJob -k $job;

Now, you can just start the data in our created enviroment,
by modifying the
data1.timeChange attribute.

It will then continuously increment the
timeChange,
without having to update the
currentTime.
 
 

This website has been archived and is no longer maintained.