Search found 2 matches

by rabbi_joe
Thu Aug 08, 2013 2:51 pm
Forum: Python
Topic: transform orientations with scripting
Replies: 0
Views: 858

transform orientations with scripting

hi everybody, what i want to do in a script is to change the lokal orientation of an objekt to a CTO. I tried to do this with: bpy.ops.transform.transform(mode = 'ALIGN') and than reading the ratation of the object to rotate the mesh then in the oposite direction. "bpy.ops.transform.transform(mode =...
by rabbi_joe
Thu Aug 08, 2013 2:40 pm
Forum: Python
Topic: How to call from python function that require View3D context
Replies: 4
Views: 4285

hi dvochin, i used your code with bpy.ops.transform.create_orientation(oContextOverride, name="CTO", use=True, overwrite=True) because "use=True" normaly works only in 3dView. And it worked. But now i want to transform my Objekt with "Align to Transform Orientation". I tried to do this: bpy.ops.tran...