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…
I'm looking to click a button and run a bunch of lines of code and at the end update my variable so when I click the button the second time it runs some different lines of code. I tried this, but it's complaining about redeclaring the variable. What's the cleanest way to do a simple toggle where the state changes each time…
Sorry if the title is a little confusing, I am trying to have a procedure that containts a proxy text that will be replaced after, but the only way I can create the procedure is if I declare the variable inside the procedure and that ruins my intention // Create variable string $vartest = "test"; // Check print print…
Hi everyone, I’m trying to recreate this kind of anime coloring/shading style from One Piece (image attached). What I’m specifically trying to achieve: * Strong cel shading with soft transitions in some areas (like the face and hair) * Intense glow/red eye effect * Clean but dynamic highlights in hair (not overly…
Good afternoon everyone! I'm trying to make a quick exporter, but I'm having a bit of difficulty... //Grab a list of everything selectedstring $lsS[] = `ls -sl`;//Loop through the list and export selectedfor ($i = 0; $i < `size ($lsS)`; $i ++){ //Remove organization suffix string $filename = ("/data/forUnity" +…