Skip to main content

GradientDirection

Other

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

ValueDescription
GradientDirection.VerticalVertical option
GradientDirection.HorizontalHorizontal option
GradientDirection.RadialFarthestRadialFarthest option
GradientDirection.RadialFarthestCornerRadialFarthestCorner option

Usage Example

import ScriptingApi as api

# Access enumeration values
value = api.GradientDirection.Vertical

See Also