allViewFit problem with command line

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 06 June 2012   #1
allViewFit problem with command line

I made a simple script to render a hardware preview of a file for selected Maya files but it sometimes renders something that's useless since the camera isn't fitting everything. The problem is that -preRender "allViewFit(1);" doesn't work from the command line. Is there a trick to getting that to work?
 
Old 06 June 2012   #2
Could you please elaborate.

If I needed to implement that, then I would have ran a python script inside maya. In the script I would iterate the file scenes, open them one by one, run allViewFit, and render.

If by command line, you meant the os command line, and it's crucial to run it from outside, then I would have used commandPort().
 
Old 06 June 2012   #3
sorry - I should have been more specific. I'm doing a hardware render preview of documents with a batch render script. The individual command is like this:

Render -r hw2 -preRender "allViewFit(1);" -of jpg -x 640 -y 480 -rd "${docDir}" "${f}"

I'm guessing that because Maya isn't actually creating a view, it has to be initialized somehow.
 
Old 06 June 2012   #4
I understand, but I just think that if this approach doesn't fit your needs, you should simply tailor a new script to do that and more (in python for example).
 
Old 06 June 2012   #5
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.
 
Thread Closed share thread



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 07:15 AM.


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