ScriptInput.targetOperatingSystem Property

Parent Object: ScriptInput
Defined in namespace "adsk::core" and the header file is <Core/Application/ScriptInput.h>

Description

Specifies the operating systems this script or add-in will be displayed in the "Scripts and Add-Ins" dialog and where it will be automatically run on startup, if that option is specified. Defaults to WindowsAndMacOperatingSystem

Syntax

"scriptInput_var" is a variable referencing a ScriptInput object.

# Get the value of the property.
propertyValue = scriptInput_var.targetOperatingSystem

# Set the value of the property.
scriptInput_var.targetOperatingSystem = propertyValue
"scriptInput_var" is a variable referencing a ScriptInput object.
#include <Core/Application/ScriptInput.h>

// Get the value of the property.
OperatingSystems propertyValue = scriptInput_var->targetOperatingSystem();

// Set the value of the property, where value_var is an OperatingSystems.
bool returnValue = scriptInput_var->targetOperatingSystem(value_var);

Property Value

This is a read/write property whose value is an OperatingSystems.

Version

Introduced in version October 2023