Tuesday, 1 November 2011

simple offset script

very simple but useful offset script which will offset every selected objects SELECTED keyframes (selected in the timeslider) by 1 (can be adjusted by changing $offset var)

int $offset=1 ; string $mySel[]=`ls -sl` ; float $range[]=`timeControl -q -rangeArray $gPlayBackSlider` ; for($i=0;$i<size($mySel);$i++) keyframe -edit -relative -time ($range[0]+":"+$range[1]) -timeChange ($i*$offset) $mySel[$i] ;

No comments:

Post a Comment