ToolpathList
This object holds a list of toolpaths for another object.
Properties
.Count
Interaction: Read Only
Returns:(integer) the number of toolpaths in the list
.IsEmpty
Interaction: Read Only
Returns: (bool) true if the toolpath list is empty
Methods
:GetAt( POSITION pos)
Returns: the toolpath at the current position
- pos (POSTION) current position in list
:GetHeadPosition()
Returns: (POSITION) a variable to allow access to the head of the list of toolpaths
:GetNext( POSITION pos)
Returns: Both the toolpath at the current position AND a new value for position pointing to the next item in the list (or nil if at end of list)
- pos (POSTION) current position in list
Example Code:
Note: GetNext(pos) is returning two values local pos = uuid_list:GetHeadPosition() local id while pos ~= nil do id, pos = uuid_list:GetNext(pos) DO SOMETHING WITH ID end
:GetPrev( POSITION pos)
Returns: Both the toolpath at the current position AND a new value for position, pointing to the previous item in the list (or nil if at start of list)
- pos (POSTION) current position in list
:GetTailPosition()
Returns: (POSITION) a variable to allow access to the tail (end) of the list toolpaths
References
Please Note: The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at Vertric Developer Information