Skip to content

Cannot access focus property in LaserScript #212

@TheAssassin

Description

@TheAssassin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions