Is there a way to launch a wizard from a script? I want to put the slabwizard on a buttion.
I tried to use a button down script to write the LastWizard value to the machine.ini file and the, set the action of the button up to be Load Last Wizard. While I can write to the ini file, it does not seem to allow me to overwrite LastWizard setting. Still in search of a solution.
I’m getting rustier on Mach4 as the day goes by since switching over to Centroid.
I see there is no API for it, but wizards are Lua programs just like macros and modules. I would look at some examples of how modules are run from a screen button and see if that works.
This is a video I referenced a lot when I was writing modules.
The wizard is a compile object so I dont know the innards. Wow ever, it seem you dont need to because just adding a requirement statement, cause the wizard to launch. This script will fire the wizard!
local inst = mc.mcGetInstance()
local profile = mc.mcProfileGetName(inst)
local path = mc.mcCntlGetMachDir(inst)
package.path = path .. “\Wizards\SlabWizard.mcc”
package.loaded.SlabWizard = nil
require “SlabWizard”