Skip to content

Latest commit

 

History

History
101 lines (41 loc) · 2.14 KB

File metadata and controls

101 lines (41 loc) · 2.14 KB

Model

Summary

A 3D model widget

Instance Properties

NameReturn TypeDescription
indexnumber
Read-only
The index of the active Model Widget
layerLayer
Read/Write
The layer the model is on
groupGroup
Read/Write
The group this model is part of
transformTransform
Read/Write
The transformation of the Model Widget
positionVector3
Read/Write
The 3D position of the Model Widget
rotationRotation
Read/Write
The 3D orientation of the Model Widget
scalenumber
Read/Write
The scale of the Model Widget

Class Methods

Model:Import(filename)

Imports a new model from the MediaLibrary/Models folder

Returns: Model (Returns the Model instance)

Parameters:

NameTypeDefaultDescription
filenamestringThe filename of the model to be imported

Example

Model:Import("Andy.obj")

Instance Methods

model:Select()

Adds this model to the current selection

Returns: nil

Example

myModel:Select()

model:Deselect()

Removes the model from the current selection

Returns: nil

Example

myModel:Deselect()

model:Delete()

Deletes this model

Returns: nil

Example

myModel:Delete()