View
An export view with its own camera. Get it from Model.activeView. Changing its camera doesn’t move the camera in the desktop window.
Properties
Section titled “Properties”camera
Section titled “camera”camera:
Camera
The view’s camera. Assign a Camera to change it.
Methods
Section titled “Methods”writeImage()
Section titled “writeImage()”writeImage(
filename,options?):void
Renders the committed model to a PNG file. Existing files are overwritten; the folder
must exist. Call it outside operations. Throws RangeError for invalid arguments and
ModelError when rendering or writing fails. Scripts only: plugins get a
PermissionError, since they write files through PluginFiles.save.
Parameters
Section titled “Parameters”filename
Section titled “filename”string
options?
Section titled “options?”Returns
Section titled “Returns”void