11.5.11

COPY ANIMATION V01

#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..

2 comments:

Post a Comment
  1. ijin copy... :D

  2. silahkan...

Post a Comment