Changeset View
Changeset View
Standalone View
Standalone View
oscurart_tools/oscurart_shapes.py
| Context not available. | |||||
| verticess = [(-1, 1, 0), (1, 1, 0), (1, -1, 0), (-1, -1, 0)] | verticess = [(-1, 1, 0), (1, 1, 0), (1, -1, 0), (-1, -1, 0)] | ||||
| edgess = [(0, 1), (1, 2), (2, 3), (3, 0)] | edgess = [(0, 1), (1, 2), (2, 3), (3, 0)] | ||||
| mesh = bpy.data.meshes.new("%s_data_container" % (SEL_OBJ)) | mesh = bpy.data.meshes.new("%s_data_container" % SEL_OBJ) | ||||
| object = bpy.data.objects.new("GRAPHIC_CONTAINER", mesh) | object = bpy.data.objects.new("GRAPHIC_CONTAINER", mesh) | ||||
| bpy.context.scene.objects.link(object) | bpy.context.scene.objects.link(object) | ||||
| mesh.from_pydata(verticess, edgess, []) | mesh.from_pydata(verticess, edgess, []) | ||||
| Context not available. | |||||
| verticess = [(-.1, 1, 0), (.1, 1, 0), (.1, 0, 0), (-.1, 0, 0)] | verticess = [(-.1, 1, 0), (.1, 1, 0), (.1, 0, 0), (-.1, 0, 0)] | ||||
| edgess = [(0, 1), (1, 2), (2, 3), (3, 0)] | edgess = [(0, 1), (1, 2), (2, 3), (3, 0)] | ||||
| mesh = bpy.data.meshes.new("%s_data_container" % (SEL_OBJ)) | mesh = bpy.data.meshes.new("%s_data_container" % SEL_OBJ) | ||||
| object = bpy.data.objects.new("GRAPHIC_CONTAINER_AS", mesh) | object = bpy.data.objects.new("GRAPHIC_CONTAINER_AS", mesh) | ||||
| bpy.context.scene.objects.link(object) | bpy.context.scene.objects.link(object) | ||||
| mesh.from_pydata(verticess, edgess, []) | mesh.from_pydata(verticess, edgess, []) | ||||
| Context not available. | |||||