Plugin Marketplace
Sign in

Documentation

Lua API: every module and type
Lua API · Class

FloatOrPercentage

A value the API hands your plugin; call its methods to read or change it.

API version1.0.0manifest.json"project.plugin": "1.0.0"From PrusaSlicer3.0.0-alpha13Editor stubsDownload .zip

Fields

is_percentageboolean—

Methods

#get_abs_value

method
floatOrPercentage:get_abs_value(ratio_over: number) → number

Get absolue float value.

Parameters
ratio_overnumber
A value to be used as baseline for percentage.
Returns
numberAbsolute
float value

    ↑↓ move↵ openAPI 1.0.0