Overview
Last updated
Was this helpful?
Last updated
Was this helpful?
This section documents the global variables available in the OSL (Origin Script Language) environment.
Global variables are predefined variables that are accessible from anywhere in your script without requiring declaration or initialization.
The global variables are organized into the following categories:
- Variables providing information about the system, OS, and environment
- Variables related to the current user and user settings
- Variables for current date, time, and related values
- Variables for tracking mouse, keyboard, and input devices
- Variables related to the display, window, and UI state
- Variables for network status and connectivity information
- Variables related to files and file types
Global variables can be used directly in your code without declaration:
For some global variables (like those in objects), you need to use the dot notation to access their properties: