LUAMeshGroup
[Desktop Automation]
LUAMeshGroups are used to organize traymeshes (also: "meshes", really: "parts") within a tray. Each LUAMeshGroup can contain traymeshes 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 traymeshes 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 meshgroup |
Methods
Name | Syntax | Description |
---|---|---|
addmesh | Newtraymesh = tray:addmesh(Mesh:LUAMesh; Name:String; Color:Integer) | Add a LUAMesh as a new traymeshes to the group with the given name and color. Returns the reference to 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 | traymesh = tray:getmesh(Index:Integer) | Get a traymesh from the group |
getsubgroup | Subgroup = tray:getsubgroup(Index: Integer) | Get a subgroup by index |
removemesh | tray:removemesh(Mesh:traymesh) | Removes a traymesh from the tray group |