Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Changing the render resolution of Maya render with script?
  RSS 2.0 ATOM  

Changing the render resolution of Maya render with script?
Rate this thread
 
63288
 
Permlink of this thread  
avatar
  • himkhu
  • Posted: 04 January 2012 11:34 PM
  • Total Posts: 4
  • Joined: 16 December 2009 07:39 AM

Hi all
Here I am trying to change the resolution of maya with the help of python script and gettig an abnormal behavior of Maya.

Here is the peice of that script which changes the render resolution

import maya.cmds as cmds

cmds.setAttr(’defaultresolution.width’,1920)
cmds.setAttr(’defaultresolution.height’,1080)

and it changes my pixel aspect to .75

i have tried adding line to fix that also but doesn’t respect that line

cmds.setAttr(’defaultresolution.pixelAspect’,1)

it seems that it chages but dosen’t reflect it

You have to selet the deaultresolution node to update



Replies: 0
avatar
  • himkhu
  • Posted: 05 January 2012 06:16 PM

I got a work around for that

calulate the device aspect with the given render resolution and set it too



Replies: 0