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