Complex UV Layout in Maya
Over the last couple of years UV layout in Maya has changed for the better. In this course we're going to be taking a look at some of those changes as we UV map an entire character
# 1 28-09-2006 , 10:19 PM
Registered User
Join Date: Jul 2004
Posts: 13

systematic scene/image plane setup with MEL

I am working on a project with someone and I need a mel script to set up image planes with certain positions and size attributes.

I have tried using the echo all commands then saving the generated code as a mel script but the script does not give the desired result when executed.

psuedo code:
1. go to the saved layout four view
2. select top camera
3. create image plane in the environment section
4. user will plug in the appropriate file
5. resize the image plane attributes to 75 x 75
6. move image plane by modifying position attributes to 0, -17.5, 0

The obvious obstacle will be the user inputting the image plane since everyone's project directory structure may be different.

I have spent hours trying to get this to work so I am asking some of the very good mel scripters to chime in on this one.

# 2 29-09-2006 , 02:45 AM
Xander-0's Avatar
Registered User
Join Date: Feb 2005
Location: This Place
Posts: 220
actually, if I remember correctly, there's actually a command to reference the default project directory, or the current one. Something like that.

My question is - why do you want this script, anyways? It can really only be used once per scene, and is so simple to set up manually that there's no real need for it. If you were doing this, say, 100 times, then there might be call for such a script, but as it is.... (and even if you did want 100 planes with images on them, you wouldn't use them all as part of the built-in image plane anyways.... well, at least I wouldn't).


Book Wise

https://X4nd5r.deviantart.com
# 3 29-09-2006 , 10:56 AM
Registered User
Join Date: Jul 2004
Posts: 13
that call to the current working project might help quite a bit. Any chance on digging that up?

I am writing this script because I am working on a collaborative project where people can enter and submit geometry to be used. This script would insure that everyone had the exact same reference image placement to work from.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads