SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / systematic scene/image plane setup with MEL
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 28-09-2006, 10:19 PM   #1
Jasonnator
Registered User
 
Join Date: Jul 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Jasonnator is offline   Reply With Quote
Old 29-09-2006, 02:45 AM   #2
Xander-0
Registered User
 
Xander-0's Avatar
 
Join Date: Feb 2005
Location: This Place
Posts: 220
Thanks: 0
Thanked 2 Times in 1 Post
Default

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

http://X4nd5r.deviantart.com
Xander-0 is offline   Reply With Quote
Old 29-09-2006, 10:56 AM   #3
Jasonnator
Registered User
 
Join Date: Jul 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Jasonnator is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 03:41 PM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.