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 Tools Display Modes
  06 June 2012
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?
  06 June 2012
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().
  06 June 2012
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.
  06 June 2012
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).
  06 June 2012
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

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
Society of Digital Artists

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

All times are GMT. The time now is 11:51 PM.

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