When using get("focus"); in a LaserScript file, an empty string (or some other broken value) is returned. Only when you set("focus", ...) before, a value will be returned.
I want to use the user-specified (negative) focus adjustment for a specific material configured within VisiCut for a cut test to receive realistic values. Before that, I want to perform a focus test, so I need to change the focus to 0 (device focus is on the material surface).
My current workaround is to prompt the user for the material thickness from the script, causing an annoying message before the job is sent to the device.
When using
get("focus");in a LaserScript file, an empty string (or some other broken value) is returned. Only when youset("focus", ...)before, a value will be returned.I want to use the user-specified (negative) focus adjustment for a specific material configured within VisiCut for a cut test to receive realistic values. Before that, I want to perform a focus test, so I need to change the focus to
0(device focus is on the material surface).My current workaround is to prompt the user for the material thickness from the script, causing an annoying message before the job is sent to the device.