Palette Operators¶
- bpy.ops.palette.color_add()¶
Add new color to active palette
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.palette.color_delete()¶
Remove active color from palette
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.palette.color_move(*, type='UP')¶
Move the active Color up/down in the list
- Parameters:
type (Literal['UP', 'DOWN']) – Type, (optional)
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.palette.extract_from_image(*, threshold=1)¶
Extract all colors used in Image and create a Palette
- Parameters:
threshold (int) – Threshold, (in [-inf, inf], optional)
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.palette.join(*, palette='')¶
Join Palette Swatches
- Parameters:
palette (str) – Palette, Name of the Palette (optional, never None)
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.palette.new()¶
Add new palette
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]
- bpy.ops.palette.sort(*, type='HSV')¶
Sort Palette Colors
- Parameters:
type (Literal['HSV', 'SVH', 'VHS', 'LUMINANCE']) – Type, (optional)
- Returns:
Result of the operator call.
- Return type:
set[Literal[Operator Return Items]]