PDA

View Full Version : Selecting multiple object animation betwreen certain keyframes...


2scale
02-06-2008, 08:09 PM
Looking for a way to select all animation on joints and my control handles which have keyable attributes between a specified time range. My mel sucks, so excuse me if I ask to keep it simple. I was trying to use the selectKey -time range string but it doesnt seem to select the added attribites in the channel box. Any suggestions and help would be great.


Thanks, Jere

JellyFire
02-11-2008, 03:49 PM
I'm not in front of maya at the moment, so this might not be 100%
Something like this anyway:


string $sel[] = `ls -sl`;

for ($obj in $sel){

selectKey -addTo -attribute "translate" -attribute "rotate" -time "1:100";

}


Try that out, if it's not right, check the help for the selectKey command. If you can't sort it out give me a shout and I'll check it in maya tomorrow.
Christian

unsmoothed
02-11-2008, 05:43 PM
you can slick that down with:

for ($obj in ` ls -sl`)
selectKey -addTo -an "objects" -t (` playbackOptions -q -min` + ":" + ` playbackOptions -q -max`);

CGTalk Moderation
02-11-2008, 05:43 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.