KeyShot Forum

Technical discussions => Extending KeyShot => Scripting => Topic started by: INNEO_MMi on May 29, 2020, 01:42:56 AM

Title: Input dialog with double values
Post by: INNEO_MMi on May 29, 2020, 01:42:56 AM
Hello all,

I am trying to build a user interface which contains double values. I encountered the problem that I can only increase/decrease the input value by an integer value (up/down arrow).
Is it possible to define a smaller step size?

regards

Markus


    # Values UserInterface
    values = [
     ...
     (lux.DIALOG_LABEL, "--"),
     (lux.DIALOG_LABEL, "Import-Optionen:"),
     ("tesselationInput", lux.DIALOG_DOUBLE, "   Tesselierung:", 0.02, (0.001, 1.0)),
     ...]

     # Initialize UI
     optionsUI = lux.getInputDialog(title = ..., desc =..., values = values, id = "....")