Main Content

saveas

(To be removed) Save virtual reality world associated with virtual reality animation object

saveas will be removed in a future release.

Description

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.

example

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']);

Figure VR Plane Take-Off contains objects of type hgjavacomponent, uimenu, uipanel, uitoolbar.

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

expand all