Tagged Questions

0
votes
1answer
61 views

How can I call a method on a python object through mel?

Hi, How to resolve this. Following error occurs from maya. I am doing the following in Filemenu.mel file. this runs at the startup. python("import saveCentral_fromPath"); . . …
2
votes
1answer
157 views

(Windows) Set Maya playblast compression option in MEL

Maya Version 2009 (though earlier and later solutions might work) I've got a script which renders 10 smallish images using Playblast. For hundreds of animations. In Playblast usin …
1
vote
1answer
108 views

Delete keyframe

Hi all I would like to know the command in mel to be able to delete all the keyframe created by me. Thanks for the help
1
vote
1answer
104 views

Add/Remove frameLayouts in a window using MEL

How would one go about adding/removing frameLayouts from a window in MEL? I have a window with "add" and "remove" buttons at the top, and I want the user to be able to add/remove …
2
votes
3answers
48 views

Can I get the exact selection order in component level?

I have a polygon (say "pCube1"), if I select vertices in the following order: pCube1.vtx[5] pCube1.vtx[4] pCube1.vtx[2] then execute: string $sel[] = `ls -sl -flatten` …
0
votes
1answer
62 views

How do I determine the number of selected objects in maya?

Hi I have what I'm sure is a very basic question. I am trying to make a quick and dirty utility that can import nasty poser clothes and sort them out for maya. most poser clothes …
0
votes
1answer
53 views

How can I animate the CVs of curve through MEL scripting using variables?

So, I think I hit a limitation of MEL, but if there's a simple solution out there, it doesn't hurt to ask. I was trying to animate the CVs of curve like so: proc animateCurve( in …
1
vote
2answers
463 views

How can I write a mel script that writes particle expressions?

How can I write a mel script that writes particle expressions?
2
votes
2answers
343 views

How do I use the paint attribute tool to paint values into objects located at mesh vertices

I have laid out the info here on my blog: a href=http://www.hodge.net.au/sam/blog/?p=176 Basically I would like to be able to paint the scale offset of a bunch of geometry huggin …
1
vote
1answer
153 views

How to Create Geometry on Nurbs Surface Isoparms in Maya

I want to write a tool in MEL that creates a predefined piece of geometry (polygon) along the isoparms of a nurb? (think thorns on a branch. thorns are polygons, and branch is nu …
1
vote
2answers
217 views

How can I select all the animation curves in a scene using MEL

Hi y'all, i'm trying to select all of the animation curves in my scene using MEL. I know I can select all joints using: select -r `ls -type joint`; but what's the node type fo …
1
vote
1answer
124 views

Getting the distance from two locators

Hello Everyone, This question is related to the "ripple particles" that I have already posted. Thanks for helping out Julian. I think I want to take the whole ripple of particle …
1
vote
2answers
165 views

getting the volume of an arbitrary closed mesh

Hopefully using Mel in Maya, I'd like to find the volume of a closed polygonal mesh. Anyone know how to do this, or if it's even possible? Thanks, Matt