ExportAllPassesToMI2

Deprecated

6.0 (replaced by ExportRenderArchiveAllPasses)

Description

Exports all passes, either pass by pass or frame by frame, to MI2 files.

A render pass creates a picture layer of a scene that can be composited with any other passes to create a complete image. You can export a scene to the MI2 file format so it can be rendered in an alternate way.

When exporting an XSI scene, you can specify several options, from the number of frames to how the scene's polygons will be approximated. The MI (mental images) file format (*.mi) is the basic render file format to which scenes are exported and rendered by the mental ray rendering software.

You can use MI files to test a distributed rendering setup. XSI always creates one MI file per frame, so for 10 frames of animation, 10 MI files are created. Only one frame should be needed to test distributed rendering.

MI2 format files are rendered using the ray3 executable.

Scripting Syntax

ExportAllPassesToMI2( [PassCentric] )

Parameters

Parameter

Type

Description

PassCentric

Boolean

True for pass-centric rendering or False for frame-centric rendering.

Default Value: True

Examples

VBScript Example

'
' This example shows how to export MI2 files to the installation directory
'

' Open the following scene
OpenScene InstallationPath( siFactoryPath ) _
   & "\Data\XSI_SAMPLES\Scenes\Simulation_Particles_DrinkingFountain.scn", false

' Export the default pass frame by frame to MI2
ExportAllPassesToMI2 False

' If you look in the Browser, you will see the following files were created:
'  Echo.1.mi2
'  Echo.2.mi2
'  ...
'  Echo.99.mi2
'  Echo.100.mi2

See Also

ExportMI2File



SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index