Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # select object on motion path- needs animation keys already set
- from pymel.core import *
- duplicates = 5
- startFrame = 0
- endFrame = 100
- offsetAmnt = float(endFrame)/float(duplicates)
- sl = selected()
- objectList = sl[:-1]
- pathCrv = sl[-1]
- for o in objectList:
- offsetBy = 0
- for d in range(0,duplicates):
- dup = duplicate(o)
- moPath = pathAnimation(dup, c=pathCrv ,startTimeU = startFrame+offsetBy, endTimeU = endFrame+offsetBy, follow=1, fm=1,fa="x")
- offsetBy += offsetAmnt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement