Model
Summary
A 3D model widget
Instance Properties
Name | Return Type | Description |
---|---|---|
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:
Name | Type | Default | Description |
---|---|---|---|
filename | string | The filename of the model to be imported |
Example
Instance Methods
model:Select()
Adds this model to the current selection
Returns: nil
Example
model:Deselect()
Removes the model from the current selection
Returns: nil
Example
model:Delete()
Deletes this model
Returns: nil
Example
Last updated