I am working in global, however when I enter edit mode I would like to change to LOCAL. The python code is missing something.

bpy.context.scene.type = 'LOCAL'

  • 1
    $\begingroup$ The transform orientation you describe is a property of the SpaceView3D. If you are using operators in your script look at passing the constraint_orientation parameter available in many operators. It would be better to share your script and explain the final result you want to achieve, you may be better off using a matrix with bmesh operators. $\endgroup$ – sambler Jun 24 '19 at 8:45

On the 3D header, there is a button where you can change it from Global to Local. Local

Hope that answers your question :)

| improve this answer | |
  • $\begingroup$ in python script please. $\endgroup$ – Michael Teiniker Jun 15 '19 at 11:00
  • $\begingroup$ OK, I wasn't sure if that was what you wanted. Unfortunately, I don't know python :) :( Sorry $\endgroup$ – RBlong2us Jun 15 '19 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.