PDA

View Full Version : Mel script to build the command line for me?


GregNeumayer
11-28-2005, 07:58 PM
I've been tediously building my command line scripts when I want to render a 600 frame sequence 10 frames at a time. What's the best way to get a command line? I started figuring out command lines by printing the help, then stealing some of the code that showed up in the console. I save it to a text file, then go through and modify any flags that need to be like the step, processors, and frame number, usually. Is there a better way to do this? I feel like I'm playing a text RPG. Shouldn't computer life be beyond this text-based method? I guess what I'm looking for is a MEL script or otherwise that will take my render settings, ask me how many frames I'd like to render at a time before resetting it's brain (to avoid the VRAM ceiling), and print me a nice little text file that I can paste into a Terminal window. Does something exist? Or am I going about the whole command-line render thing the wrong way?

Here's a sample of my latest command line render from last night, so you can understand what I'm talking about. Tonight, I'll go through and change the file name to my current iteration, change the frame numbers for the frames I want rendered, and then paste it to Terminal again. Is there a better way?

Thanks,
Greg (Mac OSX)
(also posting this to "maya")

p.s. If the maya renderer could take frame range numbers like "001-034, 078, 095-105" that would be really helpful too. Is there a method?

Sample of my text file I build each night:
render -n 2 -s 101 -e 200 -b 1 -proj "/Volumes/Seagate400/CLIENT PROJECTS/COSMIC CUBE/MayaCube" "/Volumes/Seagate400/CLIENT PROJECTS/COSMIC CUBE/MayaCube/11_21fCube.mb"
render -n 2 -s 201 -e 300 -b 1 -proj "/Volumes/Seagate400/CLIENT PROJECTS/COSMIC CUBE/MayaCube" "/Volumes/Seagate400/CLIENT PROJECTS/COSMIC CUBE/MayaCube/11_21fCube.mb"
render -n 2 -s 301 -e 400 -b 1 -proj "/Volumes/Seagate400/CLIENT PROJECTS/COSMIC CUBE/MayaCube" "/Volumes/Seagate400/CLIENT PROJECTS/COSMIC CUBE/MayaCube/11_21fCube.mb"
render -n 2 -s 401 -e 500 -b 1 -proj "/Volumes/Seagate400/CLIENT PROJECTS/COSMIC CUBE/MayaCube" "/Volumes/Seagate400/CLIENT PROJECTS/COSMIC CUBE/MayaCube/11_21fCube.mb"
render -n 2 -s 501 -e 600 -b 1 -proj "/Volumes/Seagate400/CLIENT PROJECTS/COSMIC CUBE/MayaCube" "/Volumes/Seagate400/CLIENT PROJECTS/COSMIC CUBE/MayaCube/11_21fCube.mb"
etc......

ghostlake114
11-29-2005, 12:56 AM
http://localhost:4449/Maya7.0/en_US/Commands/cat_Rendering.html
rendering category help could help a lot
---
And more about render command
http://localhost:4449/Maya7.0/en_US/Commands/render.html
---
hope help

djx
11-29-2005, 01:46 AM
http://www.highend3d.com/maya/downloads/mel_scripts/rendering/misc/3850.html

I havent used it, but it sounds like it might help.

GregNeumayer
11-29-2005, 03:21 AM
Ghostlake, your links aren't working for me. Can you make them absolute? Thanks much.

djx, that sounds like something that might help. Too bad I'm Mac-based.

-G

ghostlake114
11-29-2005, 06:41 AM
No, this is not the internet link, it come from maya help server..press F1 and try to find it :)

CGTalk Moderation
11-29-2005, 06:41 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.