Hi, so I created this code which executes fine in the script edtior, it toggles the checker map on/off each time you run the script in the UV editor. //This works fine int $uvToggleChecker = !$uvToggleChecker; if ($uvToggleChecker == 1) { print ("UV checker map turned on."); } else if ($uvToggleChecker == 0) { print ("UV…
Hello awesome polycount folks, I'm currently digging into more advanced rigging techniques, just started scritping and I've a probably easy mel scripting question. I want to have a single Enum attribute "slider" that changes the translation of an object (to later on snap locators to each others and switch through different…
hey there, I'm back again with another problem I'm having which I cannot find an answer for on the Internet so I need your help again.. I'm trying to create a little script to help me creating simple symetrical objects by creating a mirrored base object. But I'm stuck on not being able to select certain edges to do…
I'm trying to create a one-click export for FBX using the scripting commands listed here: http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=GUID-76CF67F4-BBBB-48C6-AE48-6EF6975CB870 I have this block of MEL : <div>//units settings </div><div> FBXExportScaleFactor 1.0 ; </div><div> FBXProperty…
I am trying to teach myself how to script with Maya. I am starting with MEL and I am having problems with a more complex situation. I am trying to select all objects and delete them from the scene except for two objects that can be found on every scene. Those two objects can be found together on the same scene or…
Hey Guys, I am currently trying to get a few contextual hotkey scripts running after some inspiration from this forum (see perna 3ds max Hotkey topics). The System behind Maya and Mel in general is really difficult for me to wrap my head around though. Currently I have a hotkey script that will enable the normal point snap…
Hi, In my #MEL command browse button is not working I'm getting an error // Error: line 56: Object 'rsTxtPath' not found. ANY IDEA? proc ScreenCaptureWin() { global string $rsTxtPath, $rsTxtName; string $sn = `file -q -sn`; string $cfp = `dirname( $sn )`; if (`window -exists ScreenCapture`) //closes window if already open…
As far as I'm aware, most UI elements in Maya can be added in custom UI windows.For example, you can create windows with a scene's viewport ("modelEditor"), blend shape editor ("blendShapeEditor") and the node editor ("nodeEditor"). You can arrange them however you want and as many as you want. But so far I haven't managed…
Hello everyone, I'm trying to learn MEL scripting coming from a background of Unity C#. Currently I'm working on a script that moves all selected vertices to 0 on the x-axis. I borrowed this script from another forum but it doesn't seem to work when the object has moved: string $verts[] = `ls -sl -fl`;<br> for($vert in…
Congrats on your first(?) script! I know what you've gone through - I've been where you are myself: looking at the Maya UV editor and realize just how limited it is. Relative transforms on multi-shell selections is just one thing out of many that is missing. I disagree though that the information is hard to find. I would…