data.nodescript.application.common.cleanup.nodescript Maven / Gradle / Ivy
#set ($maxAccessoryNumber = ${node_accessory_count} - 1)
#set ($maxMacroNumber = ${node_macro_count} - 1)
## begin - clear all accessories and macros
#foreach ($currentAccessoryIndex in [0..$maxAccessoryNumber])
delete accessory $currentAccessoryIndex
set accessory ${currentAccessoryIndex} name=""
#end ## #foreach
#foreach ($currentMacroIndex in [0..$maxMacroNumber])
delete macro $currentMacroIndex
set macro ${currentMacroIndex} name=""
#end ## #foreach