render
マテリアル、シェーダ、および内部レンダリング データを含むレンダリング
キャッシュを消去して、メモリ空間を解放します。
注: レンダリングキャッシュは Softimage によって自動的に消去されます。
このタイミングはレンダリングのユーザ設定([ファイル] > [ユーザ設定] > [レンダリング])に応じて決定され、レンダ
パスの後、フレーム プレビューの後、またはレンダ領域を閉じたときのいずれかのタイミングで、レンダリング
キャッシュを空にすることができます。
DisposeRenderingCache(); |
' ===============================================================================
' 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
|