LibLaserCut icon indicating copy to clipboard operation
LibLaserCut copied to clipboard

Cannot access focus property in LaserScript

Open TheAssassin opened this issue 1 year ago • 1 comments

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.

TheAssassin avatar Mar 05 '24 00:03 TheAssassin

Turns out not even a single property is ever provided to script users initially. This is quite unintuitive. If a cut profile is selected, for instance, the focus (offset), the chosen power and speed values would be really, really useful to have.

TheAssassin avatar Mar 07 '24 22:03 TheAssassin