Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   systematic scene/image plane setup with MEL (https://simplymaya.com/forum/showthread.php?t=23351)

Jasonnator 28-09-2006 10:19 PM

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.

Xander-0 29-09-2006 02:45 AM

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).

Jasonnator 29-09-2006 10:56 AM

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.


All times are GMT. The time now is 02:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018