hello im trying to find a way to set the world position of a object, to a absolute value, even after it;s transformations have been frozen. from the GUI it;s easy enough, to just use the input field in the top right corner set to absolute mode, the problem is doing it from script. i tried xform -a -ws -t 0 0 0; and move -a…
I'm trying to create a script which stores the current materials applied to the asset, then apply one material to the whole thing, then be able to paste my original materials back on at a later. Is that possible, and what command should I use to query what materials are assigned to my faces.
I can't get this working, if I remove the break the script works, but it creates too many erroneous groups, with the break in there it creates a single group, but then when I run the script again it ignores the if statement? Any idea what I'm doing wrong? string $transforms[] = `ls -tr`;for ($t in $transforms) { if ($t ==…
I'm trying to select UV shells by index and then run some code and then select the next UV shell and run that same code, etc. Imagine if you wanted to scale each UV shell by 50%, that's not what I need to do, but if I could figure out how to select each shell one at a time in the script that would solve my problem. Is this…
Im making a UI that will control all the light shaders in the scene at once without having to go into the nodes of each one everytime. I can get every attribute I want except the values from the dropdown optionmenus in the attribute editor. How can I get this value and change it? Im looking at the script editor with echo.…
I just started using textFieldButtonGrp and I can't figure out how to reduce its width, the text field is always the same width making my UI super wide. What is the trick to specifying a width? Here's my simple window. string $window = `window -toolbox true -sizeable true -resizeToFitChildren true`; rowLayout…
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…
I need to trigger a bit of code to run when the user saves the file, I tried scriptJob -e "SceneSaved" "runScriptJobProc"; The problem with that is the script job executes the code after the save is complete, I need to pause the save, run my code and then let the save continue. Does anyone know if there's a command for…