## DisposeRenderingCache

### Description

Disposes of the rendering cache, including materials, shaders and internal rendering data, to free some memory space.
Note: The rendering cache is disposed of automatically by Softimage. Depending on the user settings for rendering (File > User Preferences > Rendering), the rendering cache can be set to empty after a render pass, after a frame preview, or when closing a render region.

### Scripting Syntax

    DisposeRenderingCache();

### Examples

#### VBScript Example

    ' ===============================================================================
    '   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

### See Also

RenderAllPasses RenderPasses