12
This commit is contained in:
1 parent
ff796c9c6f
commit
1161e51690
29 files changed
+985
-1
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import bpy,os,json
|
||||
D=r'C:\roblox\Ornament-Generator-RNG\3d model\furniture';os.makedirs(D,exist_ok=True)
|
||||
for name,label in [('Bench_0','bench'),('Lamp_1','lamp')]:
|
||||
root=bpy.data.objects[name]
|
||||
obs=[o for o in root.children_recursive if o.type in {'MESH','CURVE'} and not o.hide_render and not o.hide_get()]
|
||||
bpy.data.libraries.write(os.path.join(D,label+'_source.blend'),set([root]+obs),fake_user=True)
|
||||
print(label,json.dumps({'parts':[o.name for o in obs],'materials':{m.name:[n.type for n in m.node_tree.nodes] for o in obs for m in o.data.materials if m and m.use_nodes}}))
|
||||
Reference in new issue
Block a user