JScript Configuration

Configuration is a global object accessible in the JScript document operation.

This object allows building a simple user interface for scripted operations within the Configuration phase and read the values set by user in the Execution phase of the scripted operation.

Methods and properties

The forceInitial parameter was added in version 2013.1 and it is an optional parameter and should not be used if not necessary. If it is set to true, it prevents the last used value to be remembered. That may be useful, if there is no sensible universal initial value and instead the initial value is computed at runtime (for example from the size of the actual image being processed).

speech bubble iconRecent comments

user iconPAEz on October 29th 2013 0

If I have an Edit Box with an initial value of 1 and then when it pops up I change it to 0.5 when the script runs the value of Configuration.property will be 1.
I can set the initial value to 1.000001 then it will appear as 1 in the config popup but it will be 1.00000001...etc in the script.
Also if the initial value is 0.55 it will be in the script something like 0.5500000001...etc , thats not such a big prob, but not being able to have an initial int value and then change it to a float is a problem.

user iconVlasta on October 30th 2013 0

Yes, it can cause problems. Even 1.0 is treated as int. I'll try to find a good solution for this. For now, one of the possible workaround is using "1" and then convert it to number in the Exe script. Or if the value has a meaningful range, using Slider with for example in 0 and 100 as minimum and maximum and divide the value by 100 in the Exe script.

The 0.55 to 0.5500000001 conversion is probably caused by float accuracy.

user icon