Here's a Mel I made to speed up initial UV creation. It automatically creates oriented UVs for the selected meshes and a UV layout for all the objects in the current selection on a single texture sheet. It cuts hard edges and uses the new Auto Seams command (Maya 2017 Update 4 or 2018) to create UV shells which it then…
Hi there! Right now I am hard-coding a piece of code, and I dont know almost anything about mel (but i am trying) The thing is I want this code works for any cam i have selected, right now only work if the camara names that way setAttr "cameraShape1.filmFit" 3; setAttr "cameraShape1.overscan" 1; setAttr…
Once again I have run into a bit of a wall Mel. I tried to write a script that get uv shells without having to select the uvs themselve one shell at a time. global proc string getUVShells()<br>{<br> string $shellList[];<br> string $objects[] = `ls -o -sl`;<br> int $shellIds [];<br><br> for ($obj in $objects)<br> {<br> int…
Hi guys, so I'm looking to create a script that exports my selection as .fbx with some specific options, I've searched the help and I can't figure out how to set these options specifically. Basically I want to export the .fbx with these options turned off even if the user has turned them on in the GUI so I'm looking for a…
Guys, I've been using Maya 2017 for a while and have always used a simple MEL script that moved my object to the origin, froze transform and then launch export selected so that I could export it to engine, but here at work I'm using Maya LT 2018 and for some reason export selected doesn't work. I can't find any…
I thought this would be easy, but I was totally wrong. Is there a way to get a ring of faces in mel, I figured out how to get an edge ring, but not a face ring. Pickwalk can do it, but that requires the user to select two faces where I only want the user to have to select one.
I'm trying to select several objects and move any uv set not "map1" to map1 and delete the leftover, now unused, uv set. I pulled a mel script I found off another thread. However when you have multiple objects selected it errors on line 7 saying it "Doesn't work for muliple objects selected." I'm guessing it's a diff from…
Hey Everyone, My work let me release this script that mel guru "Naughty Nathan" wrote for us awhile back. At the time there was nothing like this that I was aware of. I'm not sure if there is anything like it out there now, but I thought I would post it here just in case anyone wanted to use it. You can download it here.…
Hello folks! I am building a quick tool in Maya 2015 where you can import 3d models into your viewport. the method works by creating snapshots of your model and create an obj of it. And then load the model by clicking its icon. I have found a way to create snapshots of your model and save it into disk. Now the problem is…
when you select an object, the attribute editor allows you to see all the shaders assigned to it in different tabs, what I would like to do is have a script that essentially does a "select objects with materials" hypershader command on the currently active tab of the attribute editor without opening the hypershader (which…