Search found 22 matches

by wretch1958
Sun Apr 29, 2012 8:11 am
Forum: Python
Topic: armature_add() function positioning error
Replies: 3
Views: 1249

armature_add() function positioning error

vec1 = [0, 0, 0] bpy.ops.object.armature_add(view_align=False, enter_editmode=False, location=vec1, rotation=(0, 0, 0), layers=(True, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False)) vec1 = [0, 0, 5] bpy.ops.object....
by wretch1958
Sat Apr 28, 2012 3:12 am
Forum: Python
Topic: import myScript vs. imp.reload(myScript) to get latest
Replies: 3
Views: 1066

Thank you: "stiv" and "CoDEmanX"
by wretch1958
Fri Apr 27, 2012 9:52 am
Forum: Python
Topic: import myScript vs. imp.reload(myScript) to get latest
Replies: 3
Views: 1066

import myScript vs. imp.reload(myScript) to get latest

Open a new Blender file from Python console: import "myScript" ****this will get old version of myScript.py. Make code changes to myScript.py through external editor. From existing Blender window, close Blender file, then open new Blender file and new Python console. "myScript" not currently in cons...
by wretch1958
Thu Apr 12, 2012 12:10 pm
Forum: Python
Topic: why need OBJECT mode to set ..data.vertices[n].select ?
Replies: 0
Views: 639

why need OBJECT mode to set ..data.vertices[n].select ?

bpy.ops.object.mode_set(mode='EDIT') bpy.context.tool_settings.mesh_select_mode[0] = True bpy.context.tool_settings.mesh_select_mode[1] = False bpy.context.tool_settings.mesh_select_mode[2] = False #switch to OBJECT bpy.ops.object.mode_set(mode='OBJECT') bpy.data.objects[obname].data.vertices[0].se...
by wretch1958
Mon Apr 09, 2012 6:49 am
Forum: Python
Topic: bpy.context.mode = EDIT vs. EDIT_MESH
Replies: 1
Views: 1083

bpy.context.mode = EDIT vs. EDIT_MESH

bpy.ops.object.mode_set(mode=bpy.context.mode) The above call, essentially just reseting edit mode to what it already is (as captured by bpy.context.mode) should work for all modes, I would think, but while it works for EDIT and SCULPT modes, it does not work for EDIT mode because the mode_set argu...
by wretch1958
Thu Apr 05, 2012 12:44 am
Forum: Python
Topic: object EDIT mode/how set: vertex, edge, or face select mode
Replies: 7
Views: 8864

Thank you 'ldo', that works great.
by wretch1958
Thu Mar 29, 2012 6:54 am
Forum: Python
Topic: object EDIT mode/how set: vertex, edge, or face select mode
Replies: 7
Views: 8864

object EDIT mode/how set: vertex, edge, or face select mode

bpy.ops.object.mode_set(mode='OBJECT') bpy.ops.object.mode_set(mode='EDIT') The above API commands allow me to switch between OBJECT and EDIT modes. Once I am in EDIT mode, is there a Python command to specify or switch between Vertex Select Mode, Edge Select Mode, and Face Select Mode????? My goal ...