<node3d>.save

Save the node to a file

 

<node3d>.save(
    filename    

)

 

filename

Specifies the file name to save the node to.


Remarks

This command will save the node to the specified filename. The extension of the specified filename is used to determine which model format to save the node to. Currently, the supported formats for saving are .ive and .osg.

Return Value

True/False

Example

# Load a model
model = viz.addChild('mini.osgx')

# Save to IVE format
model.save('mini.ive')