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…
um you want to iterate through the selection and print information about each thing right ? I don't do mel (I will literally fight you if you try to make me) but according to google this should give you a start $things = `ls-sl`; for ($i in $things) { print $i; } or if you're being sensible and use python/pymel instead you…
Hello ! :) I'm trying to get the Camera's name of an active View ( like "persp" or "Camera5" ). string $activeView = `getPanel -withFocus`; string $camName = `modelPanel -q -cam $activeView`; print $camName; So far, it works well. But I would like to detect if the focused panel have a working camera, and if not, get the…
Im trying to make a script similar to 3dsmax's bridge tool which works on uneven number of edge selection. The idea is to take the edge selection of the border and appends to create a poly and then triangulate and then quadrangulate. Im stuck at the part on how to plug the String variable of the Edge selection into…
Hello pollycounters . I have been working on a maya scene specially on Xgen . and i have a " rand() " expression that i put in my clumping modifier . The problem is it has a range from (3,7) and i want to combine it with another " rand() " exp. but with a negative value (-3,-7) . But when i do that the " compiler " if i…
Hey guys, I'm having a weird problem with a code. Actually code itself runs and works well. But when I try to put it in a procedure, it says "undeclared variable" about a variable that I only declare and use in that procedure. Here is the code: (it is the $selVerts variable in tokenize row that it says undeclared. and also…