LUAMeshGroup
[Desktop Automation]
LUAMeshGroups are used to organize the meshes within a tray. Each LUAMeshGroup can contain meshes and subgroups. The root group of a tray is stored in LUATray:root.
Properties
| Property | Read/write | Type | Description |
|---|---|---|---|
| meshcount | read | Number | Get the number of meshes within the group |
| name | Read/write | String | Name of the meshgroup |
| parent | read | LUAMeshGroup | The parent meshgroup |
| outbox | Read | LuaOutbox | The bounding box of the mesh group |
Methods
| Name | Syntax | Description |
|---|---|---|
| addmesh | Newtraymesh = Tray:addmesh(Mesh:LUAMesh; Name:String; Color:Integer) | Add a LUAMesh to the group with the given name and color. Returns the new traymesh. |
| addsubgroup | Subgroup = tray:addsubgroup(Name:String) | Add a new subgroup to the group |
| deletesubgroup | Tray:deletesubgroup(Subgroup:LUASubgroup) | Remove and delete a subgroup including all of its contents. |
| getmesh | Mesh = tray:getmesh(Index:Integer) | Get a TLUATrayMesh from the group |
| getsubgroup | Subgroup = tray:getsubgroup(Index: Integer) | Get a subgroup by index |
| removemesh | Tray:removemesh(Mesh: TLUATrayMesh) | Removes a mesh from the group |
