-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathlib_blend.py
68 lines (66 loc) · 1.78 KB
/
lib_blend.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
56
57
58
59
60
61
62
63
64
65
66
67
68
default_blend_lib = {
'Collection': 'collections',
'Material': 'materials',
'World': 'worlds',
'Object': 'objects',
'NodeTree': 'node_groups'
}
import_lib_blend = {
'APPEND_BLEND_MATERIAL': {
'bl_idname': 'spio.batch_import_blend',
'name': 'Append All Materials',
'description': '',
'ext': 'blend',
'icon': 'MATERIAL',
'prop_list': {
'action': 'APPEND',
'sub_path': 'Material',
'data_type': 'materials'
},
},
'APPEND_BLEND_COLLECTION': {
'bl_idname': 'spio.batch_import_blend',
'name': 'Append All Collections',
'description': '',
'ext': 'blend',
'icon': 'OUTLINER_COLLECTION',
'prop_list': {
'action': 'APPEND',
'sub_path': 'Collection',
'data_type': 'collections'
},
},
'APPEND_BLEND_OBJECT': {
'bl_idname': 'spio.batch_import_blend',
'name': 'Append All Object',
'description': '',
'ext': 'blend',
'prop_list': {
'action': 'APPEND',
'sub_path': 'Object',
'data_type': 'objects'
},
},
'APPEND_BLEND_WORLD': {
'bl_idname': 'spio.batch_import_blend',
'name': 'Append All Worlds',
'description': '',
'ext': 'blend',
'prop_list': {
'action': 'APPEND',
'sub_path': 'World',
'data_type': 'worlds'
},
},
'APPEND_BLEND_NODETREE': {
'bl_idname': 'spio.batch_import_blend',
'name': 'Append All Materials',
'description': '',
'ext': 'blend',
'prop_list': {
'action': 'APPEND',
'sub_path': 'NodeTree',
'data_type': 'node_groups'
},
}
}