-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproperties.py
62 lines (52 loc) · 1.7 KB
/
properties.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import bpy
from . import misc_functions
from bpy.props import (StringProperty, BoolProperty, IntProperty, FloatProperty, FloatVectorProperty, EnumProperty, PointerProperty)
from bpy.types import (Panel, Operator, AddonPreferences, PropertyGroup)
class NTZEDGCRV_ignitproperties(bpy.types.PropertyGroup):
bShowOptions : BoolProperty (
name="Show Options",
description="Reveals options.",
default = False,
)
customEdgeCurveSettings_List = [
("UNSET", "Unset (Use Last Known)", "", "", 0),
("USE", "Custom", "", "", 1),
]
customEdgeCurveSettings : EnumProperty (
items = customEdgeCurveSettings_List,
name = "Use Custom Edge Curve Settings",
default = "USE"
)
useEdgeFlowCheckbox : BoolProperty(
name="Use Edge Flow",
description="Applies edge flow to the newly created edge loops. (Default: True)",
default = True
)
numSegmentsSlider : IntProperty(
name="Segment Num",
description="Number of segments to add. (Default: 1)",
default = 1,
min = 1,
soft_max = 16
)
numIterationsSlider : IntProperty(
name="Num Iterations",
description="Number of iterations. (Default: 1)",
default = 4,
min = 1,
soft_max = 128
)
tensionSlider : IntProperty(
name="Tension",
description="Tension (Default: 180)",
default = 180,
max = 500,
min = -500
)
minAngleSlider : IntProperty(
name="Minimum Angle",
description="Minimum Angle (Default: 0)",
default = 0,
max = 180,
min = 0
)