ya your doing good making something like this if your just starting to get familiar with mel. as far as code organization, you should be trying to use global variables less, and use function arguments and returns in there place, This makes it easier to read the code, and also prevents conflicts with pre-existing global…
Hey guys, I posted a while back on a MEL script interface tool for materials I created. I have completely revamped it and it's a hundred times better now! For those who might have missed my last post, this tool is designed to eliminate the annoying RMB radial menu for assigning/creating new materials and choosing material…
ya has nothing to do with the file location on line 116, and 117 there is a variable that is used but not defined anywhere, from his code i cant really tell if it was supposed to be a argument, or a global variable from a other procedure.
I'm self-taught in MEL/programming so I don't know the best or correct way to organize code heh :\ Line 116 and 117 were the problems, it was calling a global variable that wasn't defined inside the procedure. I have updated the link and it should work now! Sorry about that. Latest Version Here
Bartalon i was asking myself if you could (i don't know if it's possible but it seems so) make an option : --> generate dDo material list. Like this user will not have to import the fbx. All shaders informations should be saved into the code. And those materials will be generated smoothly with a single user click. What do…
The dDo material presets come with Quixel's dDo software and can be found inside the Swatches directory. The file you are looking for is dDo.fbx. The dDo materials are separate from my tool and are shown here just to illustrate how the tool works. Additionally, if you own dDo, the Material List tool (but not the Material…
Thanks for the feedback everyone. Truth be told, this tool is actually part of a larger tool: ultimately a one-stop shop for texturing. The biggest part will be the largely automatic selection, deletion, assigning, and renaming of materials and their respective nodes (such as "place2dtexture1" or shading groups, etc.) so…
That's strange. I took a look at the 2012 MEL command reference and there doesn't appear to be any "intArray" commands, which explains the error. You may not be able to use Multiple Select mode until you get 2013.
Good job, assigning new mats feels much faster now. :) I get an error in 2012 with multi select mode, when I turn it on and check on some checkbox it says // Error: Cannot find procedure "intArrayInsertAtIndex". // . Also one for intArrayRemove for clicking select or delete button.