PDA

View Full Version : Copy/Paste multiple joints keys


flumpa
08-15-2007, 08:19 PM
Hi

Is it posible to select multiple joints in a rigg and Copy/Paste the keys front or back in time to the original joints?
I always got the problem that ondly one joint will past his keys to all of the other.

I want to do this:
I select 3 joints in my rigg, the "shoulder" ,"elbow" and the "hand".
Then i select my Keys that i want to copy "100 to 120", and paste to "80 -> 100".

This script exemple select all animation in my scen. and the Copy/Paste works fine!
Is it poseble to modify this skript so it ondly grabs animation from selected joints?
Right now the problem is that i get all keys in the whole rigg/Scen when i use this skript.


{
$SEL = `ls -typ animCurveTA -typ animCurveTU -typ animCurveTL`;
select -r $SEL;
}

// Henrik

hibigibees
08-30-2007, 02:38 AM
hi there,

ofcourse u can copy paste to multiple source and targets - but we must tell maya which is sources and targets & from which one should be copied from where...

// select joints or controls or anything which has keys and run this... (please put this as a mel button or make it a function and call it in ur ui or something)

global string $mySourceNodes[]; clear $mySourceNodes;
$mySourceNodes = `ls -sl`;

// select the targets in the same order and run this...

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

if( size($mySourceNodes) )
{

if(size($tmp) == size($mySourceNodes))
{

for($i=0;$i<size($tmp);$i++)
{
copyKey $mySourceNodes[$i];
pasteKey $tmp[$i];
}

}
else
confirmDialog -title Info
-message ("Select the same no of targets which is ... " + size($mySourceNodes))
-button " OK ";

}
else
error "Source array is empty";


so this will work too - you can select sources and targets in a particular order and also modify this script to do it too....

or use dkAnim script to export import for huge amount of animation transfer - u also have options to do a search and replace ....

reg, sriram

flumpa
09-03-2007, 09:37 PM
Sweet pie :love:

Will try it tomorrow

CGTalk Moderation
09-03-2007, 09:37 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.