3D Lingo Dictionary > L-N > newModel

 

newModel

Syntax

member( whichCastmember ).newModel( newModelName {, whichModelResource } )

Description

3D command; creates a new model in the referenced cast member. The newModelName must be unique, as the command fails if a model by that name already exists. All new models have their resource property set to void by default. You can use the optional second parameter to specify a model resource to create the model from.

Examples

This statement creates a model called New House within the cast member 3D World.

member("3D World").newModel("New House")

Alternatively, the model resource for the new model can be set with the optional whichModelResource parameter.

member("3D World").newModel("New House", member("3D World").modelResource("bigBox"))