Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   shelf button for edit pivot (https://simplymaya.com/forum/showthread.php?t=62190)

clomaka 25-02-2020 10:30 PM

shelf button for edit pivot
 
I use the edit pivot function a lot (the one that's found in the move/rotate/scale options window). It's a lot like the slide edge function but the edit pivot lets you select the specific component to line up to and it brings back your gismo. It's a pain to always have to bring up the options window every single time, so I'm looking to make a shelf button for it. Playing with the mel script that fires off, I can make a button that sets the pivot a specific direction, but I haven't been able to find a way that puts me into the component selection mode that pressing the edit pivot button does. Any ideas?

jsprogg 04-04-2020 04:20 AM

1 First make sure you are on the shelf that you want to copy to. 2 copy the script below to your shelf by opening the script editor at the bottom right of your scene (if it's not empty click edit/clear all ) then paste in the script. Now go to the file tab and click save script to shelf, give it a name and choose Mel. Hopefully this is what you wanted.

ctxEditMode;
manipMoveValues Move;
toolPropertyShow;
dR_updateToolSettings;
manipMoveValues Move;
toolPropertyShow;
dR_updateToolSettings;
manipMoveValues Move;
toolPropertyShow;
dR_updateToolSettings;


All times are GMT. The time now is 10:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018