A 3D model widget
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 |
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 |
Model:Import("Andy.obj")
Adds this model to the current selection
Returns: nil
myModel:Select()
Removes the model from the current selection
Returns: nil
myModel:Deselect()
Deletes this model
Returns: nil
myModel:Delete()