Settings
[Desktop Automation]
This Lua objects facilitates storing and retrieving settings. The settings must be registered first and can be made persistent be using the load and save methods. These settings are independent from the Netfabb settings. The LuaSettings object is created by the command createsettingsgroup of the system object.
These settings are stored as %APPDATA%\netfabb\parameters\settings.xml.
Properties
None.
Methods
Name | Syntax | Description |
---|---|---|
finddouble | result = luasetting:finddouble(name:string) | Returns the settings with the given name |
findinteger | result = luasetting:findinteger(name:string) | Returns the settings with the given name |
load | luasetting:load(); | Loads the settings |
registerdoubleoption | luasetting:registerdoubleoption(name:string, min, max, default:number ) | Register a setting with a identifier and the min, max and default value. |
registerintegeroption | luasetting:registerintegeroption(name:string, min, max, default:number) | Register a setting with a identifier and the min, max and default value. |
save | luasetting:save(); | Save the settings |
setdouble | luasetting:setdouble(name:string, value:number) | Sets the value for the given setting |
setinteger | luasetting:setinteger(name:string, value:number) | Sets the value for the given setting |