moved code from root to /src
This commit is contained in:
parent
46363150d0
commit
8984e75bee
7 changed files with 2 additions and 2 deletions
52
src/properties/bake_to_id.py
Normal file
52
src/properties/bake_to_id.py
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
from bpy.types import (PropertyGroup)
|
||||
from bpy.props import (EnumProperty, BoolProperty, IntProperty, StringProperty)
|
||||
|
||||
|
||||
class BakeToIDProperties(PropertyGroup):
|
||||
source: EnumProperty(
|
||||
items=[
|
||||
('MATERIAL_INDEX', 'Material Index', "It takes the material index as ID basis", 0)
|
||||
],
|
||||
name="Source",
|
||||
description="From where should the IDs be taken",
|
||||
default = "MATERIAL_INDEX"
|
||||
|
||||
)
|
||||
target: EnumProperty(
|
||||
items=[('VERTEX_COLORS', 'Vertex Colors', "It bakes the ID to the vertex colors", 0)],
|
||||
name="Target",
|
||||
description="To where should the IDs should be baked to",
|
||||
default="VERTEX_COLORS"
|
||||
)
|
||||
|
||||
source_materials_remove_all : BoolProperty(
|
||||
name="Remove all source materials",
|
||||
default=False,
|
||||
description="Removes every material except the first one."
|
||||
)
|
||||
|
||||
target_vertex_color_attribute_name: StringProperty(
|
||||
name="Color Attribute",
|
||||
default="ID_MASK",
|
||||
)
|
||||
|
||||
adv_total_hues: IntProperty(
|
||||
name="Total Hues",
|
||||
default=10,
|
||||
min=1,
|
||||
soft_max=360,
|
||||
)
|
||||
|
||||
adv_total_satuations: IntProperty(
|
||||
name="Total Satuations",
|
||||
default=10,
|
||||
min=1,
|
||||
soft_max=100,
|
||||
)
|
||||
|
||||
adv_total_brightnesses: IntProperty(
|
||||
name="Total Brightnesses",
|
||||
default=10,
|
||||
min=1,
|
||||
soft_max=100,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue