Conditionnal gcode on current selected tool
-
Hi everybody
Is that possible to do conditionnal gcode on current selected tool ?
For example in pause.g file :
if selectedTool = 'T0' do something...
Or something like that.
Thanks !
-
yep have a look at
state.currentTool
in the object model
That returns an integer which is the current tool number
Also have state.previousTool and state.nextTool which could be useful during tool change macros if you need to have logic based on that.
-
Thanks, it works !
Could you please tell me where I can find all the object models I can work with ?
Best regards
-
@duetlover there's a plugin under general which allows you to browse the whole object model