retiming a whole scene, then removing the retime curve.

retiming a whole scene, then removing the retime curve.

mettam
Advocate Advocate
1,686 Views
4 Replies
Message 1 of 5

retiming a whole scene, then removing the retime curve.

mettam
Advocate
Advocate

Is it possible to retime a whole scene with a retime curve I get from editorial?

 

And then, once the retime has been applied, remove the retime curve. This might mean baking everything, but would be cooler if curves and tangents would remain in their adjusted state once the retime curve has been removed. 

 

Does anyone know if this can be done?

0 Likes
1,687 Views
4 Replies
Replies (4)
Message 2 of 5

mcw0
Advisor
Advisor

Not knowing what the retime curve will look like, your best bet is to bake every frame to maintain all the tangents.

Message 3 of 5

mettam
Advocate
Advocate

I haven’t found a way to bake a scene and remove the retime curve. How would I do this? 

Message 4 of 5

mcw0
Advisor
Advisor

I don't use Maya's timewarp.  I would assume that if Maya allows you to create a scene timewarp that it would also provide a way to bake the results and remove the time warp.

 

But if you aren't finding this to be the case, you can do this manually.  You can find the timewarp anim curve to get all the regular animation curves attached to it.  I'm not in Maya right now so these are the general steps.

 

string $tw[] = `ls -type "animCurveTT"` will get the timewarp curve.

string $animCurves[] = `listConnections -s 0 -d 1 -type "animCurve" $tw[0]` will get all the animation curves.

And to get all animated nodes in your scene, use:

string $animatedNodes[] = stringArrayRemoveDuplicates(`listConnections -s 0 -d 1 -scn 1 $animCurves`) on all the anim curves from the previous step.

 

Then select those animated nodes and use "Bake Simulation" (I believe that's the menu name).  Once baked, you can delete the timewarp curve.

 

Message 5 of 5

Anonymous
Not applicable

1. Animate all items.

2. Add and adjust Timewarp keys.

3. Select all nodes w animation and go Edit/ Keys/ Bake Simulation [check and adhere to Options Box settings first].

4. Create an Animation Layer containing all selected animated nodes.

5. Select Bottom Animation Layer and RT-click Merge Layers [first making sure that Merge Layers/ Options Box/ Bottom Layer Selected is ON].

6. Disable Timewarp to confirm it has baked down with the animation properly before deleting.

 

This is confirmed to work w Maya 2018.  Can't speak to others.  Perform each step in exactly [EXACTLY!] in this order.  Practice on a simple scene like an animated box to become familiar with all the steps.  Once you are, it's fast and easy.