-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcolor_matching_panel.py
33 lines (24 loc) · 1.07 KB
/
color_matching_panel.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Nikita Akimov
#
# GitHub
# https://github.com/Korchy/blender-color-matching
from bpy.types import Panel
from bpy.utils import register_class, unregister_class
class COLORMATCH_PT_Panel(Panel):
bl_idname = 'COLORMATCH_PT_panel'
bl_label = 'ColorMatch'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = 'ColorMatch'
def draw(self, context):
self.layout.prop(context.window_manager.colormatching_vars, 'source_color')
self.layout.operator('colormatch.color_match', text='Search NCS (NCl)').db = 'NCS'
self.layout.operator('colormatch.color_match', text='Search RAL Classic').db = 'RAL_C'
self.layout.operator('colormatch.color_match', text='Search RAL Design').db = 'RAL_D'
self.layout.operator('colormatch.color_match', text='Search RAL Effect').db = 'RAL_E'
self.layout.operator('colormatch.color_match', text='Search PANTONE (PMS)').db = 'PANTONE'
def register():
register_class(COLORMATCH_PT_Panel)
def unregister():
unregister_class(COLORMATCH_PT_Panel)