Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 11-06-2005, 01: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, 8 views)
Dann is offline   Reply With Quote
Old 13-06-2005, 05: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, 8 views)
Dann is offline   Reply With Quote
Old 13-06-2005, 10: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, 11 views)

Last edited by Dann : 14-06-2005 at 12:25 AM.
Dann is offline   Reply With Quote
Old 13-06-2005, 11: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
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Female Head, Marlon John marlonjohn Work In Progress 18 13-01-2011 08:44 AM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.