Hi,
I’d love to have an automatic switch between two transform orientations when entering and exiting edit mode, and so that such switch would include a custom orientation that I created manually for a given scene.
To be exact, I want the transform orientation to be switched to LOCAL when entering edit mode and then to a specific custom orientation <your_custom_orientation_name_hehe> when exiting back to object mode.
That itself would cover most of my needs, provided that I could turn this feature on and off easily - with a hotkey or a dedicated button.
There could even be a dedicated menu with two settings, like:
1) choose auto transform orientation for edit mode,
2) choose auto transform orientation for object mode.
That, of course, would be a further step after figuring out the code. I mean, it’s basically triggering one simple action to follow another, but if I only knew Python
I guess the code would have to be run in the beginning of each Blender session (before being turned into an add-on, which I’m considering).
I just often catch myself forgetting to change transform orientation, and ruining my perfectly planar geometry (tough hard-surface requirements, you know).
If it’s not too complicated, I would appreciate any help with this riddle.
Btw. I’m not sure whether I chose the right post category. Maybe it should go to python support.
I’m just working with Transform Orientations at low level, but for a separate project (mechanical blender).
What you say is factible as a simple addon, just store the transform orientation on object mode, and the transform orientation on editmode (on value change). When switching between them change to the value stored.
On mblender project they are implemented the operator handlers, which make simple to implement this kind of things.
Also, the value of transform orientation on edit mode, could be stored linked to the object being editing. This way, when switching to edit mode you will have the transform orientation you previously set for this object.
I don’t necessarily need different orientations for specific objects, just a specific orientation for edit mode in general, with any object. Though, this is a nice idea, too.
Thing is…
…I have no idea how to do this since I can’t code. I may have sounded smarter than I actually am.
If someone helps with coming up with the code, I may be able to design UI for it and I will learn how to code it.
Wow, thank you very much, Mauge!
It works super smooth and will be very useful. I first had a problem with custom transform, but then realized that I need to respect capital letters, which doesn’t matter with default orientations. So when I created a custom transform called ‘Face’, it wouldn’t work if I swapped ‘OBJECT’ for ‘FACE’ (all caps). It has to be ‘Face’.