Hi! I'm actually working with the "2009.3" version of the FBX exporter on Maya... First I was really surprised when I seen the "Maya Mel Scripting" section in the FBX documentation... But is there no way to export a selection? :D I already tried to add the "select -r" before the "FBXExport -f [filename]" function but it…
just wondering if any of the more technical maya users, know if there is a way to pass on a variable from your python script to a function your accessing through the maya.mel.eval() method. haveing a problem with the "attributExists" mel function not being available in python, so im trying to get it doing something like.…
I've got some faces selected on multiple objects through a script and I need to only select the faces from the object with a certain name, is there a way to remove from my selection or remove from my array in Mel? I was thinking the name of the object would be enough to identify which faces I want, but I can't figure out…
still cant figure out how to check for a string in a string in mel, but if mel is required you could always do this. string $layers[] = `ls -type "displayLayer"`;for ($i in $layers){ if (python("'LPL'" + "in" + "'" + $i +"'")) { setAttr($i + ".visibility", 1); }} though as you seen it is most easily done via python edit:…
I am attempting to write what I assume is a pretty simple mel script to achieve this behavior: • Select shortest edge path based on current selection of two verts • Switch to edge component mode • Set selected edges to hard I got as far as finding this: polySelect -shortestEdgePath 10 100 pPlane1;, but got stuck trying to…
Highend3d is a phenomenal resource for MEL scripts. You might also want to check out cgtalk.com's Maya MEL forum -- they have a lot of good advice. cgtalk MEL forum However, in case you want to just copy one set of UV from one model to another, you can do the following: 1) Select the model you want to transfer the UVs…
Probably because it's literally set to "donothing" ? Try do -command "print 0" See if that does something. If it does then you probably just need to pass in a string that drives it all. It's been a long time since I touched mel so I can't help much more I'm afraid. But what you'd probably have to do, is register your…
Things like doDelete should be avoided (there are exceptions but I will not go into details here). It is not a MEL-command but a function call to some MEL script, meaning it's better that you learn what said script does (hint: many scripts do a lot of things you can live withouit). You can find out what script by using the…
Here is the problem : I created a mel script for exporting very lot of objects at the same time. But I need to edit each Collada file and to replace the content of some line... Problem is after exported the object I added a function for opening the exported file one more time and edit some lines after parsing of the…
Hello all! I'm taking my first steps into MEL scripting for work, I've done things in other languages before but new to MEL. I only needed some basic stuff and it seemed as I was testing each line of this code separately, they all work fine, but I run the whole script and it seems to either do things in the wrong order or…