Hi guys, i am trying to extract numeric value of a name. For example i have listed an edge and i got : // Result: pCube1.e[17] // How can i extract just the number, so i can get something like this: / Result: 17// I tried using match command, but i can't achieve result i want, string $node = "pCube1.e[17]";string $suffix =…
Does anyone know a nice way to clean edits from a single attribute on a referenced node? I know you can clean all edits i.e.: file -cleanReference "refRN"; And that you can specify which type of edits to clean using the -editCommand flag. What I would really like to be able to do, however, is to clean edits on a…
Hi, this code is modified by bodizz (he gave me the blinn command ) but I want to add lambert material also so I changed in the Blinn material command. After changing the blinn command they both are working as a Lambert command or lambert material how can I make it unique. proc createMat(){ string $sel[] = `ls -sl`; string…
Perhaps it has something to do with certain other polyEvaluate flags returning array values, so all return values must be an array. From what I understand of MEL, a variable can't be redefined once it's been set as something like it can in Python. That's probably why `ls -sl` always returns an array for a single object…
I'm writing a simple script for my wife, when I click this button it checks to see if one of the UV sets is named lightmap and should producer an error and stop. If it doesn't find light map it should run the second part of the script. For some reason even when light map exists as a UV set it runs the error, but then also…
Hello, I am trying to figure out how to build an array with faces that have a particular material assigned to it. I have found bit of info here and there, and this is what i came up with. string $matchingFaces[]; //this will be used later to select facesConvertSelectionToFaces; // just select all the faces of the…
After completing the body portion of the rig with advanced skeleton, I run into this error when trying to set the Face portion under Choose Geometry. I was following the Joshua Jones tutorial and after looking through it a few times I haven't noticed having done anything differently, no one seemed to run into this error.…
So im writing this code that reads if User has partial uvs selected global proc string getNormalizeType(){ string $objSel[] = `ls -sl -o`; //get objects only float $UVBBox[] = `polyEvaluate -bc2`; global string $normalizeType; int $flattenListNum = size(`ls -sl -fl`); int $UVCount[] = `polyEvaluate -uvcoord`; if (`size…