You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you add this input to a ScriptDialog, the function ScriptDialog.GetInputValue() will return the index of the chosen option. This is unclear from reading the documentation. Some developers might expect that it returns the string that represents the chosen option.
Suggestion for clarifying the description:
AddInputCheckbox(
name: str, value: bool, hint: str = ""
) -> None
Adds a checkbox input control with string value
Args:
name (str): Name of control
value (bool): Initial value
hint (str, optional): Text to display in hint panel
Note:
ScriptDialog.GetInputValue() will return the integer index of the selected option for this input type