-
Notifications
You must be signed in to change notification settings - Fork 7
/
properties.py
51 lines (37 loc) · 1.27 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
import bpy
from bpy.props import StringProperty, BoolProperty, EnumProperty, IntProperty
class AUDACITYTOOLS_PR_properties(bpy.types.PropertyGroup) :
'''name : StringProperty() '''
send_strip : StringProperty(
name = "Sent strip",
default = "",
)
record_start : IntProperty(
name = "Record start",
default = -1,
)
record_end : IntProperty(
name = "Record end",
default = -1,
)
audacity_mode : bpy.props.EnumProperty(
name="Mode",
description="",
items=(
("STRIP", "Strip", ""),
("SELECTION", "Selection", ""),
("SEQUENCE", "Sequence", ""),
("RECORD", "Record", ""),
),
)
### REGISTER ---
def register():
bpy.utils.register_class(AUDACITYTOOLS_PR_properties)
bpy.types.Scene.audacity_tools_props = \
bpy.props.PointerProperty(type = AUDACITYTOOLS_PR_properties, name="Audacity tools properties")
bpy.types.WindowManager.audacity_tools_pipe_available = \
bpy.props.BoolProperty(default = False)
def unregister():
bpy.utils.unregister_class(AUDACITYTOOLS_PR_properties)
del bpy.types.Scene.audacity_tools_props
del bpy.types.WindowManager.audacity_tools_pipe_available