GradientDirection
Gradient direction for the 3D view gradient background. Available values: - Vertical: Gradient transitions vertically (bottom color to top color). - Horizontal: Gradient transitions horizontally. - RadialFarthest: Radial gradient centered in the viewport, extending to the farthest side. - RadialFarthestCorner: Radial gradient centered in the viewport, extending to the farthest corner.
Import
import ScriptingApi as api
# Access the class
# GradientDirection is available via api.GradientDirection
Enumeration Values
Enumeration Direction from GradientDirection
| Value | Description |
|---|---|
GradientDirection.Vertical | Vertical option |
GradientDirection.Horizontal | Horizontal option |
GradientDirection.RadialFarthest | RadialFarthest option |
GradientDirection.RadialFarthestCorner | RadialFarthestCorner option |
Usage Example
import ScriptingApi as api
# Access enumeration values
value = api.GradientDirection.Vertical