Main Content

saveas

Save virtual reality world associated with virtual reality animation object

Description

example

saveas(h, filename) saves the world associated with the virtual reality animation object, h in filename variable. After saving, this function reinitializes the virtual reality animation object from the saved world.

saveas(___ '-nothumbnail') suppresses creating a thumbnail image used for virtual world preview.

Examples

collapse all

This example shows how to save the world associated with h.

h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = 'asttkoff.wrl';
h.initialize();
h.saveas([tempdir,'my_asttkoff.wrl']);

Input Arguments

collapse all

Virtual reality animation object, specified as an Aero.VirtualRealityAnimation object.

Name of .wrl file, specified as a character vector or string. h is saved in the .wrl file name specified in filename.

Data Types: char | string

Version History

Introduced in R2007b