11.5.11
#copy animation 2 object
# copy animation from source(1st click) to target (2nd click)
#instalation
-copy this code and run in maya script editor (Python Tab)
import maya.cmds as mc
MIN=int(mc.playbackOptions( q=True,minTime=True,))
MAX=int(mc.playbackOptions( q=True,maxTime=True,))
source=[i for i in mc.ls(sl=True,)][0]
target=[i for i in mc.ls(sl=True,)][1]
listattr=[x for x in mc.listAttr( source,r=True, k=True )]
for i in listattr:
mc.copyKey( source, time=(MIN,MAX),attribute=i, option="curve" )
mc.pasteKey(target)
#enjoy..
# copy animation from source(1st click) to target (2nd click)
#instalation
-copy this code and run in maya script editor (Python Tab)
import maya.cmds as mc
MIN=int(mc.playbackOptions( q=True,minTime=True,))
MAX=int(mc.playbackOptions( q=True,maxTime=True,))
source=[i for i in mc.ls(sl=True,)][0]
target=[i for i in mc.ls(sl=True,)][1]
listattr=[x for x in mc.listAttr( source,r=True, k=True )]
for i in listattr:
mc.copyKey( source, time=(MIN,MAX),attribute=i, option="curve" )
mc.pasteKey(target)
#enjoy..
ijin copy... :D
silahkan...