Awesome! This is exactly what I was looking for. My experience in mel is pretty limited and it probably would have taken forever for me to write this so I very much appreciate it! Thanks Bartalon! P.S. For me It's not retaining the current selection for some reason. I'm using maya 2014 extension. EDIT: Seems like I have to…
Does anyone know if it's possible to set the align to edge option for the translate tool in maya to a single hotkey? The tool option is hidden inside menus and it's slowing down my workflow. The marking menu for this is ok but I'd rather not have to select the option and pick an edge, I'd like it to use whatever I already…
It sets any edge that is pre-selected under your cursor as the active component and sets the axis orientation to "component" so the manipulator will be aligned to the direction of that edge. If a face is pre-selected, orientation will be set to that face. Using the script with no pre-selected component will reset the…
You rock man. Everything is working perfectly :) One last question! :D Ok. So first off I've decided that my main usage will be your original script with retaining the current selection (the other one will be a secondary situational hotkey). Is it possible to make the script switch back to multi component mode? Right now…
It's set up to work with pre-selection only, so if your mouse is in the Script Editor to run it, there won't be any pre-selection to query. You'll want to set it up as a custom hotkey for it to work properly. If you just want to test the script, make sure the script editor is active and, before executing the code, make…
Alright I think I got it working again for 2015 and 2016. Let me know if there are any issues. If in Edge, Face, or Multi mode, the script will look at what's pre-selected and set your manipulator to that edge's axis (or face normal). Running the script while nothing is pre-selected will reset the axis orientation settings…
Your marking menu gives me an idea, beefaroni. Later today I'm going to update the script to use orientation of faces / vertices if selected rather than doing nothing, because why not
Bartalon's script looks at the component you're hovering over; or "pre-selected" when you run the script via hotkey. I'm too tired and cranky to mess with more Maya to see how that works in a marking menu, I thought that's what you set up. :)
Hmm. So with the hotbox setup I have. I can align my manipulator to an edge, switch to another component (face/vertex/etc) and then select "custom axis" to go back to the manipulator I saved. With this, it seems to "forget" when I go to custom axis.