SimplyMaya Forums

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

Home / forum / Animation / Mel Scripts & Programming / Oh my aching head
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 11-06-2005, 12:54 AM   #1
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default Oh my aching head

This is going to tax all but the best of you, so beware.

Since mayabatch does not support the vector renderer and running the vectorize command from the command line is annoying, I decided to try and write a script to launch vector renders. Most of the script is just extracting the render global settings and converting it to info the vectorize command can understand.

Where it fails is when I try and run the vectorize command, it always trucates my command at 128 characters. I cannot run this with so few.

Anyone who can figure this out will be my new hero for the week. Of course you're all be welcome to keep a copy for yourselves.

:headbang:

While you're in there, if anyone get's it working could you look and see how to get the camera from the Popup menu into the vectorize command?

Thanks to any superstars who can help me.

-dann
Attached Files
File Type: mel vectorbatch.mel (8.5 KB, 10 views)
Dann is offline   Reply With Quote
Old 13-06-2005, 04:43 PM   #2
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

OK, since I seem to have stumped you all so far, I thought I'd try another approach where I moved the vector command into it's own procedure.

The problem I've having now is that even thoguh I've defined my variables as being global, I get errors that they are not defined. How does one define a global variable? The docs say just add the word global, but clearly there must be more to it than that since I did that and it didn't work.
Attached Files
File Type: mel vectorbatch_global.mel (9.1 KB, 10 views)
Dann is offline   Reply With Quote
Old 13-06-2005, 09:51 PM   #3
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

OK, at this point I guess I'm just talking to myself.

Anyways dann, what you need to do id get the syntax right. For the most part, I got everything working for you. However I cannot get the script to read the camera selected in the popup menu and the output directory. I know you want that info in your vectorize command, but I'm not sure how to do it. Maybe someone else here can help you.

Attached Files
File Type: mel vectorbatch.mel (9.3 KB, 13 views)

Last edited by Dann : 13-06-2005 at 11:25 PM.
Dann is offline   Reply With Quote
Old 13-06-2005, 10:50 PM   #4
vladimirjp
Subscriber
 
vladimirjp's Avatar
 
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871
Thanks: 0
Thanked 4 Times in 3 Posts
Default

im not much of a mel guy dann.
try asking dann, he might know.
__________________
Image dump
vladimirjp 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
Female Head, Marlon John marlonjohn Work In Progress 18 13-01-2011 07:44 AM

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.