|
@@ -134,17 +134,6 @@ box_faces = [
|
|
|
(4,5,3,1), # top: front_top_left, front_top_right, back_top_right, back_top_left
|
|
|
]
|
|
|
|
|
|
-# box_mat = bpy.data.materials.new('MyBoxMaterial')
|
|
|
-# box_mat.use_nodes = True
|
|
|
-
|
|
|
-# if box_mat.node_tree:
|
|
|
-# box_mat.node_tree.links.clear()
|
|
|
-# box_mat.node_tree.nodes.clear()
|
|
|
-
|
|
|
-# box_output = box_mat.node_tree.nodes.new(type='ShaderNodeOutputMaterial')
|
|
|
-# box_shader = box_mat.node_tree.nodes.new(type='ShaderNodeBsdfDiffuse')
|
|
|
-# box_mat.node_tree.nodes['Diffuse BSDF'].inputs[0].default_value = (.125, .179, .263, 1)
|
|
|
-# box_mat.node_tree.links.new(box_shader.outputs[0], box_output.inputs[0])
|
|
|
|
|
|
box_mesh = bpy.data.meshes.new('MyComputerBoxMesh')
|
|
|
box_mesh.from_pydata(box_vertices, [], box_faces)
|