A guide widget
Name | Return Type | Description |
---|---|---|
index | number Read-only | The index of the active widget |
layer | Layer Read/Write | The layer the guide is on |
group | Group Read/Write | The group this guide is part of |
transform | Transform Read/Write | The transform of the Guide Widget |
position | Vector3 Read/Write | The 3D position of the Guide Widget |
rotation | Rotation Read/Write | The 3D orientation of the Guide Widget |
scale | number Read/Write | The scale of the Guide Widget |
Creates a new cube guide with a default size using the transform for position and orientation
Returns: Guide (A new cube guide)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
transform | Transform | The transform of the Guide Widget |
myGuide = Guide:NewCube(Transform:New(0, 5, 2)
Creates a new sphere guide with a default size using the transform for position and orientation
Returns: Guide (A new sphere guide)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
transform | Transform | The transform of the Guide Widget |
myGuide = Guide:NewSphere(Transform:New(0, 5, 2)
Creates a new capsule guide with a default size using the transform for position and orientation
Returns: Guide (A new capsule guide)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
transform | Transform | The transform of the Guide Widget |
myGuide = Guide:NewCapsule(Transform:New(0, 5, 2)
Creates a new cone guide with a default size using the transform for position and orientation
Returns: Guide (A new cone guide)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
transform | Transform | The transform of the Guide Widget |
myGuide = Guide:NewCone(Transform:New(0, 5, 2)
Creates a new ellipsoid guide with a default size using the transform for position and orientation
Returns: Guide (A new ellipsoid guide)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
transform | Transform | The transform of the Guide Widget |
myGuide = Guide:NewEllipsoid(Transform:New(0, 5, 2)
Creates a new custom guide from a 3d model. Note that custom guides have to be convex so your model will be "wrapped" as a convex hull
Returns: Guide (A new custom guide based on the convex hull of the model)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
transform | Transform | The transform of the Guide Widget | |
model | Model | The Model to use for the custom guide |
myGuide = Guide:NewCustom(Transform:New(0, 5, 2), myModel
Adds the guide to the current selection
Returns: nil
myGuide:Select()
Removes the guide from the current selection
Returns: nil
myGuide:Deselect()
Deletes the guide
Returns: nil
myGuide:Delete()
Scales the guide (scale can be non-uniform as some guide types can be stretched)
Returns: nil
Parameters:
Name | Type | Default | Description |
---|---|---|---|
scale | Vector3 | The scale vector for scaling the Guide Widget |
myGuide:Scale(Vector3:New(2, 0, 0)