View Single Post
# 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.