not necessarily, you can provide your version of the script and ask the person who'll use your rig to run it everytime he uses your rig. Then, run the original version when he's done, so it doesn't screw his RMB in case you do something you shouldn't in your script. Alternately, you can trigger your script yourself with a scriptJob
Le mercredi 1 juillet 2020 08:06:29 UTC-4, Soham Parmar a écrit : > > Oh so that means if i share the rig file that function wont be available > in different machines we haven't edited on that pc, am i right? > > thanks! > > On 01-Jul-2020, at 3:27 AM, vince touache <[email protected] > <javascript:>> wrote: > > one way or another, you'd have to override the dagMenuProc from maya, > which is in MEL. But if you want to do it in python, nothing prevents you > from calling some python code inside the MEL proc, and passing the > objectName, I suppose. > > Run (in MEL): > whatIs dagMenuProc > to find the proc on your machine > Then go to the dagMenuProc function, and from here, you can do whatever > you want, since the name under your cursor is given (by $object) > > hope this helps > > Le vendredi 19 juin 2020 00:08:18 UTC-4, Soham Parmar a écrit : >> >> Hi Guys, >> I wanted to make custom markingMenu button like "IK / FK Snap" whenever i >> RMB on "IK_ctrl". I don't want that markingMenu button on other controllers. >> can anybody please help, I want to do in python. >> >> Thanks. >> > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/dea2503e-5a1c-46bb-9813-5b48aabe65cao%40googlegroups.com > > <https://groups.google.com/d/msgid/python_inside_maya/dea2503e-5a1c-46bb-9813-5b48aabe65cao%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/01f9680e-9d96-4c3d-a2bb-9102664c371do%40googlegroups.com.
