PDA

View Full Version : Dynamics Keyframing/Baking



ArtiA
12-02-2007, 12:24 PM
Hey, I am working on a scene where I have 2 objects interacting with eachother, it works all fine :) (yay lw dynamics).
But I have to export this to wirefusion, and wirefusion doesn't understand lw dynamics but only normal keyframes for animation.

Now I wonder if it's possible to convert or bake the dynamics from objects into frames?

When I checked the motion properties, I saw Motion baker but that didn't help :p

Any ideas?

dpont
12-02-2007, 12:49 PM
If you have a MDD applied to an object (BDD should work, not tested)
You could use the Maya2LW2_MDDMotionIA.ls Lscript from faulknermano:
http://www.newtek.com/forums/showthread.php?t=57796

I remember that it works with ODE plugin too.

Denis.

Sensei
12-02-2007, 12:58 PM
I assume that by dynamic you meant one single item which motion shall be baked to keyframes?

Motion Baker should be used with care - because it's replacing existing motion which rely on what was replaced (infinite loop of dependencies; who was first egg or hen), you need to bake to another channels, then in Graph Editor copy one by one channel to original one, removing motion modifiers and dynamics..

dpont
12-02-2007, 01:49 PM
Sure, if you your objects are motion animated you should
use Motion Baker, overwriting existing channel if you
make a safe copy of your scene.

The lscript above is for Dynamics applied as displacement
for points, to get motion in graph editor instead.

But at least, for any case, you can get exportable motions.

Denis.

ArtiA
12-02-2007, 02:05 PM
Motion Baker should be used with care - because it's replacing existing motion which rely on what was replaced (infinite loop of dependencies; who was first egg or hen), you need to bake to another channels, then in Graph Editor copy one by one channel to original one, removing motion modifiers and dynamics..

When I try aplying motion baker to it nothing really happens.

What I have is a scene with a domino effect with boxes.
They are just animated by using the calculate in the dynamics tab using HardFX and collision.

What I am trying to figure out is to make the animations done by calculate into keyframes. I am not even sure if that would be possible.

dpont
12-02-2007, 02:38 PM
HardFX is not a motion applied to the whole object,
but as you can see it is added in the displacement tab,
that means it animates the object per point,
this could be easy to convert it to object position motion,
but less to get the object rotation motion.
A lscript like above can do the job but needs a baked mdd file,
HardFX is saved as bdd file instead of mdd file,
(SoftFX or ClothFX use mdd format)
so this become a bit more complicated,
in displacement tab, under HardFX, you could use
MDD_Scan to get and save an mdd file,
apply the lscript to get a 'modified' motion
for the whole object, ...
In the last step you will need to use Motion Baker
to get animation keyframes for the object from
the motion modifier.

I remember also the point index need to be
increased in the Lscript here to work.

Denis.

dpont
12-02-2007, 02:51 PM
Edit: If you have a thousand or more dominos,
this is really a tedious work...

Denis.

ArtiA
12-02-2007, 02:55 PM
I think I understand now, thanks Denis

Although I wonder how I am going to do it with 150+ domino blocks.
There is no other option to solve this easier?

*edit*


I see >.> maybe I should animate them by hand :)

ArtiA
12-02-2007, 04:44 PM
Well, I couldn't get it all to work what you said Denis, I must be doing something wrong, however I found an alternate way.

When all the dominoes were calculated with HardFX, I used in the editFX, the option commands > makepath.
It created a new null with the keyframes on it which I then saved as a motion file and then reload it on the domino block and it worked :)

One thing is certain, I have to apply this to every domino block but it's doable.

Thanks