Adrian Herbez Rotating Header Image

Posts Tagged ‘MEL’

XML Library for MEL

This is an oldie but a goodie, and one of the most generally useful things I built with MEL (Maya Embedded Language). I was frustrated that there was no straightforward way to import XML data into a MEL script, so I wrote a library to make such data available within Maya. It’s a bit of a workaround, as it creates empty transform nodes to hold each XML element, but doing it that way meant that the structure could be queried after the fact.

I’m sure this could be done in a much better way, now that Maya supports Python, but this was written before that was the case. If you’d like to know more about it, head here

projects , ,

psShotList.mel


I’ve created a script that provides a method for organizing camera switching and shot placement within Maya. At startup, it provides a camera view, along with a list of all cameras currently in the scene. Selecting a camera from the list will update the view through the camera.

Clicking on the “Add Shot” button will add a snapshot through the current camera (tied to the current frame) in the lower “Shot List” area. You can add as many shots as you like, changing the current time and selecting various cameras. The script maintains proper ordering of the shots based on frame number.

Once you have some shots created, you can click on any one of them to set the current time to the corresponding frame and the camera view to the corresponding camera. Right-clicking on any of the snapshots will give you options to change the time, the camera, or to delete that shot. The script is available here.

projects ,

Maya 2, MEL scripting finals and feedback

So here we are at the end of the summer semester, both live and online. Since I wanted to give my (online) students as much time as possible to submit their projects, I gave them until the closing date of the course. As a result, it makes it impossible for me to offer feedback on the class site, so I’ll be posting it here:

teaching , ,

Revised Maya site

I’ve updated my materials for my Maya students- while the revamped Maya 2 section is still on the way, the Maya 1 and MEL sections have been upgraded, and I’ve started on a “Maya tidbits” page, which has a variety of small examples I’ve created to demostrate one thing or another in response to a student question. This will continue to grow over time, but has a handful of examples so far.

The new Maya site is here

teaching ,