Alter pixel aspect ratio in python

Become a member of the CGSociety

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

 
Thread Tools Display Modes
  08 August 2015
Alter pixel aspect ratio in python

Hey guys,

I'm writing a script in python which alters render settings, specifically the pixel aspect ratio.

Here are both bits of code I've tried:
mc.setAttr("defaultResolution.pixelAspect", 1)
mc.setAttr("vraySettings.pixelAspect", 1)

Both alter the vraySettings node and the defaultResolution node but fail to change the settings in the Render Settings window so when the render settings window is re-open the settings are changed back to the value stored before my script is run.

Any help would be awesome,
Cheers
 
reply 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 02:47 PM.


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