CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 02-22-2009, 04:12 PM   #1
LeeGriggs
Expert
 
LeeGriggs's Avatar
portfolio
Lee Griggs
Technical author
Solid Angle
Madrid, España
 
Join Date: May 2003
Posts: 868
Send a message via MSN to LeeGriggs
Render odd frames - 1, 18, 37 through command shell.

Hi, I was wondering if there was a way to render a number of frames, say - 1, 18, 37 through a dos command shell using one scene file.

The only render flag I have seen is -s and -e for start and end.

So I tried:

render -r mr -s 1 -e 1 -s 18 -e 18 -s 37 -e 37 C:\mayascene.mb

However this just rendered frame 37 and ignored the others.

I was hoping to do this through a command shell, rather than use render management software like smedge.

cheers,
lee
__________________
LeeGriggs.com
LinkedIn

Twitter


 
Old 02-22-2009, 05:06 PM   #2
earlyworm
car unenthusiast
 
earlyworm's Avatar
Will Earl
craftsperson
Grizzly Country, Canada
 
Join Date: Mar 2005
Posts: 1,685
As far as I know Maya doesn't offer custom frame selection (1-3, 4, 6, 12-34, etc) when rendering - or at least doesn't expose the option to do so either through the Render Globals or the commandline.

In your example you could just split the 'render' command up into three different lines...

render -r mr -s 1 -e 1 C:\mayascene.mb
render -r mr -s 18 -e 18 C:\mayascene.mb
render -r mr -s 37 -e 37 C:\mayascene.mb

Or come up with a wrapper command to spit out the command lines based on certain arguments (ie. myrender -frames 1 18 37 c:\mayascene.mb), although I'm not too sure how you'd do this using a windows batch file.
 
Old 02-23-2009, 03:23 PM   #3
LeeGriggs
Expert
 
LeeGriggs's Avatar
portfolio
Lee Griggs
Technical author
Solid Angle
Madrid, España
 
Join Date: May 2003
Posts: 868
Send a message via MSN to LeeGriggs
Thanks for that Earlyworm. I was hoping to get around it as I have a lot of scenes to render out, but I think this is the only way.

cheers,
lee
__________________
LeeGriggs.com
LinkedIn

Twitter


 
Old 02-23-2009, 03:23 PM   #4
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 05:20 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.