-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmvr_objects.py
56 lines (47 loc) · 1.33 KB
/
mvr_objects.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
#
# BlendexDMX > MVR Objects
#
# http://www.github.com/open-stage/BlenderDMX
#
import bpy
import math
import mathutils
import uuid
import json
from bpy.props import (IntProperty,
FloatProperty,
BoolProperty,
FloatVectorProperty,
PointerProperty,
StringProperty,
CollectionProperty)
from bpy.types import (PropertyGroup,
Collection,
Object,
Material)
class DMX_MVR_Object(PropertyGroup):
"""Universal MVR object... in the future, make this specific
SceneObject, Truss, Layer..."""
name: StringProperty(
name = "Name",
description = "Name",
default = ""
)
collection: PointerProperty(
name = "Collection of objects",
type = Collection)
uuid: StringProperty(
name = "UUID",
description = "UUID",
default = str(uuid.uuid4())
)
object_type: StringProperty(
name = "Object type",
description = "Simple object classification",
default = "SceneObject" #Layer, Truss,
)
classing: StringProperty(
name = "Classing",
description = "Grouping/Layering",
default = ""
)