anyone know how to write a mel script in maya to create a window that allows me to quick change the currentUnit settings? so far im stuck here : string $window = `window`; columnLayout; string $node = `currentUnit`; attrEnumOptionMenu -label "Unit" -attribute ($node + " -linear"); showWindow $window; which is obviously…
Hey everyone, I'm trying to run a basic script in Maya 2018 and it always crashes. Does anyone else have this problem, and if so what's the work around. Select a single ojbect and run this mel ConvertSelectionToEdges; selectUVBorderComponents {} "" 1; I'm trying to select all texture border edges in a shelf button, but I…
Hey Guys, Quick question. I have a rig I need to sort out for a friend in Maya. It needs an FK system put into play so he can bake out for Unity. So as a quick fix I have duplicated the joints, put them in there own group and I am now looking to constrain the "bake out" skeleton to the rig... However all the joints are the…
i'm looking to create a script ( if there isn't one out there already ?? ) that will average the length of a selection of edges. the practical application would be for creating belts and straps etc eg : layout your poly strips across a live surface make the necessary tweaks run the script to give the cross section a…
We are looking for a freelance Python & Mel scripter / Tech artist to work on an immediate exciting project. Do you think you fit the following? Have examples of your scripting / Tool dev work Are comfortable prototyping tools & scripts in Maya Have experience with rigging, geometry placement/vertex deformation,…
try this: * open maya * open the script editor * under the history menu check on "echo all commands" this will mean that everything you do will now show up in the script editor. You can then either copy or paste these commands into your script or look them up on the documentation.…
EDIT: Seems that it isnt loaded hmmm. The mel file is in the maya environment path. Odd. What I would do is use fileDialog and restrict it to texture formats. I just tried auto sourcing AEfileTextureBrowser through my userSetup.mel and that didnt work or atleast I dont think it did. Tried sourcing it in the script and…
Hi all! I am trying to do a script who can do two diferent things depending if something is selected or not. I am looking a command like the “object exists,” let’s say… if( something is selected ) { // do this } else { // do this instead } I think it could be something like this but is not working if ( `ls -sl True` ) {…
Hi, like the title says, is it possible to enter multi select mode, then select some edges and some faces in the viewport, then in MEL somehow store the selected edges in variable1 and store the faces in variable2.
Hi, I'm just trying to create a blinn material in which it has the attached 2D texture. I got some mel line but it seems like they are not connecting to the blinn material. Here is the command so far string $myBlinn = `shadingNode -asShader blinn`;hyperShade -assign $myBlinn;string $selection[] = `ls…