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.…
I have the following script that selects all the children of the selected object but only those with the namespace "*Control1" (shoulderControl1, fingerControl1 etc) // select all the children of the selected object select -hi ; // place all selected objects with a specific name into an array string $selected[ ] = `ls -sl…
Hello everyone. I model a lot of shapes with wide flowing curved surfaces. I already wrote a script to convert my selected poly edge to a curve and automatically rebuild it with a specified number of spans. I do this so that I can have a nice smooth guide to conform my verts to. The problem is that I have to do this…
Hi there, I'm trying to use setAttr, but insert my own variable name from earlier in my script. I keep getting a syntax error, can anyone see what I'm doing wrong here. I'm trying to apply a planar map to a polygon object and then set the projection height to 400, but I can't figure out why my variable name is causing a…