' ===============================================================================
' Note: There is no scripting equivalent of setting user preferences for
' rendering, so first you need to disable the Empty Rendering Cache >
' After Render Pass option (see File > User Preferences > Rendering)
' and then run this script:
' ===============================================================================
' Create a new scene
NewScene , false
' Add a cone with some animation
Set oCone = CreatePrim( "Cone", "MeshSurface" )
SaveKey oCone & ".kine.local.posx," _
& oCone & ".kine.local.posy," _
& oCone & ".kine.local.posz", _
1
SetValue "PlayControl.Key", 3
SetValue "PlayControl.Current", 3
Translate oCone, _
6.94824213992454, _
2.46082959410157, _
-0.246082959410157, _
siRelative, _
siView, _
siObj, _
siXYZ
SaveKey oCone & ".kine.local.posx," _
& oCone & ".kine.local.posy," _
& oCone & ".kine.local.posz", _
5
' Render all passes frame by frame
RenderPasses "Passes.Default_Pass", 1, 3
' Manually empty the rendering cache
DisposeRenderingCache |