Notifications
Clear all
[Closed] Bake animation?
Feb 09, 2010 10:55 am
Hello,
is there a way via maxscript to bake the animation of a scene?
Im still trying to solve my problem with a pflow + dynamic mesh creation appearing in the viewport but not in the rendered sequence.
Ideally I need a way to keyframe all the objects (most of the objects are created via a script at runtime) in the scene at each keyframe.
Thanks
2 Replies
Feb 09, 2010 10:55 am
-- select all objects you want to bake, then run this code
sel = selection as array
pa = #()
for i = 1 to sel.count do append pa (point())
for t = animationrange.start to animationrange.end do (
sliderTime = t
for i = 1 to sel.count do with animate on pa[i].transform = sel[i].transform
)
for i = 1 to sel.count do (
sel[i].parent = undefined
sel[i].transform.controller = pa[i].transform.controller
delete pa[i]
)
This won’t work correctly with Bipeds nor with bones with IK controllers but maybe that’s all you need?
– MartinB
Feb 09, 2010 10:55 am
more info here:
http://forums.cgsociety.org/showthread.php?f=206&t=851853
cheers!