Script.location Property

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

Description

Gets which standard location this script is located.

Syntax

"script_var" is a variable referencing a Script object.

# Get the value of the property.
propertyValue = script_var.location
"script_var" is a variable referencing a Script object.
#include <Core/Application/Script.h>

// Get the value of the property.
ScriptSourceLocations propertyValue = script_var->location();

Property Value

This is a read only property whose value is a ScriptSourceLocations.

Version

Introduced in version January 2025