Thursday, August 09, 2007

UPDATE

Even better, here's a copy, paste keys script that should have been a Maya basic years ago...

http://www.highend3d.com/maya/downloads/mel_scripts/animation/copyKey2-639.html

COPY CHANNEL ATTRIBUTES SCRIPT


Some of the smaller things that maya makes difficult are sometimes annoying. Here's a script that will copy all selected attribute channel values from object A to B.

global string $gChannelBoxName;
string $attrList[] = `channelBox -q -sma $gChannelBoxName`;
string $sel[] = `ls -sl`;
string $attr;

for($attr in $attrList) {
setAttr ($sel[0] + "." + $attr) `getAttr ($sel[1] + "." + $attr)`;
}
;

No comments: