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,
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
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 10:05 PM.

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