Model

Summary

A 3D model widget

Instance Properties

NameReturn TypeDescription

index

number Read-only

The index of the active Model Widget

layer

Layer Read/Write

The layer the model is on

group

Group Read/Write

The group this model is part of

transform

Transform Read/Write

The transformation of the Model Widget

position

Vector3 Read/Write

The 3D position of the Model Widget

rotation

Rotation Read/Write

The 3D orientation of the Model Widget

scale

number 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

filename

string

The 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()

Last updated