mel

How to modify existing panels in Maya using MEL or Python?

I've been writing tools in Maya for years using MEL and Python. I'd consider myself an expert in custom window/gui design in Maya except for one area; modifying existing panels and editors. Typically, I'm building tools that need totally custom UIs, so its customary for me to build them from scratch. However, recently I've found mysel...

How to query any constraint's target list without knowing the constraint type?

In Maya, I have a list of constraints gathered by the following code. I want to iterate the constraints and query the targets for each of them: cons = ls(type='constraint') for con in cons: targets = constraint(query=True, targetList=True) The problem, there is no general constraint command for manipulating all constraints. Inste...

How do I attach a MEL UI to Maya's UV Texture Editor?

I do know how to create a MEL UI window and add content to it. I don't know how to "pin" that UI to a Maya window such as the UV Texture Editor. Ideally I would like to have the ability to control which side of the UV Texture Editor my UI attaches to and have it move and minimize with the window. Is such a thing possible? ...

MEL: How do I select an end effector of a particular IK handle?

Hi there, Everytime I create a new IK handle in Maya via MEL, it creates an end effector named "effector1", or "effector2", depending on what is in my scene. I don't want to rely on the auto-name of the end effector, so I'm wondering if there is a way to either: a) name the effector at the create-time of the IK handle, or b) select t...

Creating a simple hierarchy structure in Maya using mel/python

So I want to create a very simple structure out of group and locator nodes in Maya which will then be exported for use in my game level. e.g. Group_Root group_parent - group1 - locator1 - group2 - locator2 - group3 There is only one Group_Root in the file, there are many group_parents ( each uniquely named ...

Maya MEL script to create implicit surfaces

I am trying to write a MEL script that will draw simple implicit surfaces in Maya. I have had a search online but could not find that much on the topic. Does anyone know how to create a MEL script to draw a simple implicit surface in Maya? Thanks in advance. ...