Extend object animation from another object

27 views
Skip to first unread message

yann19

unread,
Aug 13, 2018, 5:26:57 PM8/13/18
to Python Programming for Autodesk Maya
Hi everyone,

I would like some advice as I am trying to copy and extend the animation of an object from another object in which I am having trouble with.
I have a attached a simple scene, where there are 2 objects - ball01 and ball02.

  • `ball01` has animation keyframe from 1-10 while, 
  • `ball02` has animation keyframe from 10-20, with frame 10 of each object at the same position.

I tried using parentConstraint which seems to work but that would ends up `ball01` losing its initial animation from frame 1-10.

Any other ways that I can try out with?

Many thanks in advance for any advice!
test.ma

yann19

unread,
Aug 13, 2018, 5:34:03 PM8/13/18
to Python Programming for Autodesk Maya
Would like to add on another question that I have forgotten to mention - If my scene may or may not have animation layers... Will it affects such animation-extensions?

yann19

unread,
Aug 14, 2018, 12:10:01 PM8/14/18
to Python Programming for Autodesk Maya
Hii all, any takes on this?

Simon Payne

unread,
Aug 14, 2018, 1:07:22 PM8/14/18
to python_in...@googlegroups.com
Sure. Use your parentconstraint. But bake off the keyframes : select>select key>bake animation. I recommend hilighting trans and rots in the channel box and using the ‘from channel box’ option. This will save the animation. Then delete the constraint. Shift the second object’s animation to start at the end of the first. Constrain again and bake the rest. Delete the constraint. 

Alternatively, python or mel using xform to match the positions in a range loop for one object’s anim, then the next range for the other....but seriously, just bake it 😉

Simon

Sent from my iPhone

On 14 Aug 2018, at 17:10, yann19 <yang...@gmail.com> wrote:

Hii all, any takes on this?

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1f0150a8-5004-4e3e-a08a-f273b0d5df32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

yann19

unread,
Aug 14, 2018, 2:41:35 PM8/14/18
to Python Programming for Autodesk Maya
Hi Simon, 

Thanks for getting back to me. I am a little confused about your solution, especially on the first constraint.
Do correct me if I am wrong..

`ball01` has animation keyframe from 1-10 while `ball02` has animation keyframe from 10-20 and I am trying to copy the frames from `ball02` to `ball01`.

In your method, you mentioned about baking the keys. So I have did that to `ball01` in which there exists a keyframe animation that ranges from 1-10. Going forward to do the first parentConstraint, I suppose it will be from `ball01` constraint to `ball02`? As soon as I did that, the initial animation on `ball01` will be gone.. 
Reply all
Reply to author
Forward
0 new messages