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 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…
Hey guys! Wanted to share this simple yet handy tool to quickly align objects or components to world axis. I made a marking menu to quickly acces to the desired axis with a hotkey. If you are interested I might upload it soon.
Hi guys I have one doubt I assigned this procedure to the button (as a command) but when I click on the ( button1 ) it is refrencing that character. Is that possible when I again hit that button it should remove the refrenced character using any alternate key (like holding alt + Button1) or (ctrl + button1). To remove the…
Hi, I've made a script for work to help speed up the process for baking shadows ground plane. It works how I like apart from all of sudden, it keeps adding duplicates of the button to the shelf rather than just updating it. Would anyone mind looking at the script and telling me what is causing this? Feel free to provide…
I have an if statement that I want to use to see if the object is selected or the polygon face is selected, when I use the right click menu to switch to face mode it appears to mess up the -q -polymeshFace and it will return true even though I'm in object mode. Does anyone know how to reliably query if you have faces…
Hi Folks, been using maya 2013 for a new folio piece and I want to UV some bits before I start plonking them about. I usually use the UV tool Xform by Stefan David (http://www.stefandavid.com/posts/xformuv/) It is a really great tool and I use it a lot but on this version of Maya,the actual Xform window is too small and…
I'm currently optimising some very tri heavy meshes and wondered if something that can be scripted to sort a bunch of selected meshes based on their tri count. I have found this script that sounds like its the exact sort of thing I need but it doesnt seem to work.…
Hello everyone I'll explain the whole problem just in case I'm just thinking wrong ^^ but essentially i'd like to fetch the tangent basis of vertex (in world space) So I'm building race tracks using a 'straight' mesh that i bend using a Flow path along an EP curve. I need to parametrize that track using a serie of…
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.…