This repository was archived by the owner on Dec 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprops.py
More file actions
39 lines (31 loc) · 1.25 KB
/
props.py
File metadata and controls
39 lines (31 loc) · 1.25 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
import bpy
from . PBR_DB_Connect import *
class PBRDBIMPORTER_Props(bpy.types.PropertyGroup):
materialConnection = PBR_DB_Connect("materials")
lightSourcesConnection = PBR_DB_Connect("lightsources")
camerasConnection = PBR_DB_Connect("cameras")
materialList: bpy.props.EnumProperty(
name="List of base material presets",
description="List of base material presets",
items=materialConnection.getListOfNames()
)
lightSourceList: bpy.props.EnumProperty(
name="List of light source presets",
description="List of light source presets",
items=lightSourcesConnection.getListOfNames()
)
cameraList: bpy.props.EnumProperty(
name="List of camera presets",
description="List of camera presets",
items=camerasConnection.getListOfNames()
)
assignMaterialToObject: bpy.props.BoolProperty(
name="Add material to selected objects",
description="If checked, the new created material will be assign to selected objects",
default=False
)
addFakeUserToMaterial: bpy.props.BoolProperty(
name="Add Fake User to material",
description="If checked, the new created material will get a fake user attribute",
default=True
)