first commit

This commit is contained in:
Michel Fedde 2024-01-29 21:11:49 +01:00
commit 73df699a09
8 changed files with 482 additions and 0 deletions

24
panels/panel_advanced.py Normal file
View file

@ -0,0 +1,24 @@
import math
import bpy
class BakeToIDAdvancedMenu(bpy.types.Panel):
bl_idname = "PANEL.BAKE_TO_ID_MAP_PT_SETTINGS_ADVANCED"
bl_parent_id = "PANEL.BAKE_TO_ID_MAP_PT_SETTINGS"
bl_label = "Advanced"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = "Tool"
bl_options = {'DEFAULT_CLOSED'}
def draw(self, context):
layout = self.layout
props = context.scene.bake_to_id_props
layout.label(text="Colors")
layout.prop(props, "adv_total_hues")
layout.prop(props, "adv_total_satuations")
layout.prop(props, "adv_total_brightnesses")
layout.label(text="Max ID-count: " + str(
math.pow(math.pow(props.adv_total_hues, props.adv_total_satuations), props.adv_total_brightnesses)))