|
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
|
|
|
|
I got a work around for that
calulate the device aspect with the given render resolution and set it too
|
|
|