CreateModelAndConvertToRef
 
 
 

CreateModelAndConvertToRef

Introduced

v6.0

Description

Creates a new model with the selected object as children and converts to a reference.

Scripting Syntax

oReturn = CreateModelAndConvertToRef( [Objects], [FileName] );

Return Value

Nothing

Parameters

Parameter Type Description
Objects String What objects to include in the new reference model.

Default Value: Current selection

FileName String The filename where to create the reference model.

Default Value: A browser prompts the user to specify an output filename and path

Examples

JScript Example

/*
        This example demonstrates how to create a referenced model using CreateModelAndConvertToRef
*/
// Create a referenced model
NewScene( null, false );
var obj = CreatePrim( "Cube", "MeshSurface" );
CreateModelAndConvertToRef();

See Also

ConvertToRefModel MakeModelLocal