-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproperties.py
More file actions
40 lines (35 loc) · 1.6 KB
/
properties.py
File metadata and controls
40 lines (35 loc) · 1.6 KB
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
# SPDX-License-Identifier: GPL-3.0-or-later
import bpy
from bpy.props import EnumProperty, BoolProperty
from bpy.types import PropertyGroup
class CRM_Props(PropertyGroup):
targetRmode: EnumProperty(
name='Target Rotation Mode',
description='Target Rotation Mode for the conversion.',
items=[
("XYZ", "XYZ Euler", "XYZ Euler - Rotation Order - prone to Gimbal Lock (default)."),
("XZY", "XZY Euler", "XZY Euler - Rotation Order - prone to Gimbal Lock."),
("YXZ", "YXZ Euler", "YXZ Euler - Rotation Order - prone to Gimbal Lock."),
("YZX", "YZX Euler", "YZX Euler - Rotation Order - prone to Gimbal Lock."),
("ZXY", "ZXY Euler", "ZXY Euler - Rotation Order - prone to Gimbal Lock."),
("ZYX", "ZYX Euler", "ZYX Euler - Rotation Order - prone to Gimbal Lock."),
("AXIS_ANGLE", "Axis Angle (WXYZ)", "Axis Angle (WXYZ) – Defines a rotation around some axis defined by 3D-Vector."),
("QUATERNION", "Quaternion (WXYZ)", "Quaternion (WXYZ) – No Gimbal Lock but awful for animators in Graph Editor."),
],
default='XYZ'
)
jumpInitFrame: BoolProperty(
name="Preserve current frame",
description='Preserve the current frame after conversion is done.',
default=True
)
preserveLocks: BoolProperty(
name="Preserve Locks",
description="Preserves lock states on rotation channels.",
default=True
)
preserveSelection: BoolProperty(
name="Preserve Selection",
description="Preserves selection.",
default=True
)