-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_scene_property_group.py
41 lines (32 loc) · 1.09 KB
/
model_scene_property_group.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
import bpy
from bpy.types import PropertyGroup
from bpy.props import StringProperty, BoolProperty
from bpy.utils import register_class, unregister_class
from . import tools
class ModelScenePropertyGroup(PropertyGroup):
collection_name : StringProperty(
name = "",
description = "A collection containing the models to generate the dataset",
search = tools.Tools.searchCollectionNames
)
model_name : StringProperty(
name = "",
description = "Mesh model from the collection of models",
search = tools.Tools.searchModelNames
)
material_mode : BoolProperty(
name = "Scene material mode",
default = False,
description = "All copies of models in the scene will have one material (individual material mode settings are not taken into account)"
)
classes = [
ModelScenePropertyGroup
]
def register():
for cl in classes:
register_class(cl)
def unregister():
for cl in reversed(classes):
unregister_class(cl)
if __name__ == "__main__":
register()