Changeset View
Changeset View
Standalone View
Standalone View
oscurart_tools/oscurart_meshes.py
| Context not available. | |||||
| VERTICE.select = False | VERTICE.select = False | ||||
| if nombre is False: | if nombre is False: | ||||
| for VERTICES in ODATA.verts[:]: | for VERTICES in ODATA.verts[:]: | ||||
| if VERTICES.co[0] < (offset): | if VERTICES.co[0] < offset: | ||||
| VERTICES.select = 1 | VERTICES.select = 1 | ||||
| else: | else: | ||||
| for VERTICES in ODATA.verts[:]: | for VERTICES in ODATA.verts[:]: | ||||
| if VERTICES.co[0] > (offset): | if VERTICES.co[0] > offset: | ||||
| VERTICES.select = 1 | VERTICES.select = 1 | ||||
| ODATA.select_flush(False) | ODATA.select_flush(False) | ||||
| bpy.ops.object.mode_set(mode="EDIT", toggle=0) | bpy.ops.object.mode_set(mode="EDIT", toggle=0) | ||||
| Context not available. | |||||
| apply_modifiers=True, | apply_modifiers=True, | ||||
| settings="RENDER", | settings="RENDER", | ||||
| calc_tessface=True) | calc_tessface=True) | ||||
| OBJECT = bpy.data.objects.new(("%s_Freeze") % (ACTOBJ.name), MESH) | OBJECT = bpy.data.objects.new("%s_Freeze" % ACTOBJ.name, MESH) | ||||
| bpy.context.scene.objects.link(OBJECT) | bpy.context.scene.objects.link(OBJECT) | ||||
| Context not available. | |||||