Have a look at what you get in the Attribute Editor when you select the
“defaultRenderGlobals” node. It’ll give you some hints as to what is going
on. By the looks of it, resolution is hooked up to “defaultResolution”
which is another node. You can change the attributes from there.

If you aren’t familiar with selecting nodes by name,

   1. try the little box to the top of the GUI, it’ll have a little fly-out
   menu to allow you to “Select by name”.
   2. Otherwise, they will all be available via the Outliner and can be
   filtered from there too, if you untick “Show DAG Objects only”,
   3. and thirdly there is cmds.select('defaultRenderGlobals').

Hope it helps!
​

On 15 July 2015 at 18:22, Tim Crowson <[email protected]> wrote:

> Thanks. I've used this for certain attributes, but I can't figure out
> resolution specifically.
>
> For example, *cmds.getAttr("defaultRenderGlobals.resolution")* throws an
> error: "Error: Message attributes have no data values." Hence some
> confusion....
>
>
> On Wed, Jul 15, 2015 at 11:40 AM Kurian O.S <[email protected]> wrote:
>
>> welcome to maya world ;)
>>
>> if you do a listAttr on renderglobals you will see all the attrs which
>> connected to renderglobals eg :
>>
>> cmds.listAttr("defaultRenderGlobals")
>> # Result: [u'message', u'caching', u'isHistoricallyInteresting',
>> u'nodeState', u'binMembership', u'macCodec', u'macDepth', u'macQual',
>> u'comFrrt', u'renderAll', u'ignoreFilmGate', u'quality', u'resolution',
>> u'clipFinalShadedColor', u'enableDepthMaps', u'enableDefaultLight',
>> u'currentRenderer',etc .....] #  list was long so i just removed bunch of
>> items
>>
>> then you can say
>>
>> cmds.setAttr("defaultRenderGlobals.imageFormat", 8) #this will set jpg as
>> image format.
>>
>> Hope this help
>>
>>
>> On Wed, Jul 15, 2015 at 8:07 AM, Tim Crowson <[email protected]> wrote:
>>
>>> Hey folks,
>>>
>>> I did a quick search through this group's threads and couldn't really
>>> find the answers I was looking for...
>>>
>>> I am still quite a novice with how Maya does things. I touched the tip
>>> of the iceberg a few months ago but got pulled onto other things. I'm
>>> struggling with how to set render settings in Maya. Specifically, I'm
>>> wanting to set things like render resolution, aspect ratio, image format,
>>> render cam.
>>>
>>> On a related note, I'm also curious about how to set render paths
>>> properly. In Softimage there is a root path field in the scene settings,
>>> but Maya seems to want to me to set this in the Project Settings. Any
>>> insight here?
>>>
>>> Thanks for your help! Someday I won't be a Maya noob anymore, I promise.
>>>
>>> -Tim
>>>
>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CAPh%3D1bnFvhgVG%2BPKW%3DqFs4d08%3DfqoHuaWekRTsihm4mPVxeVeA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPh%3D1bnFvhgVG%2BPKW%3DqFs4d08%3DfqoHuaWekRTsihm4mPVxeVeA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> --:: Kurian ::--
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CANEMyhOiiGvCr9Bbjq6NPYMEG_4sSGhXqoU7DY6Teo%2BN-mvzPA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CANEMyhOiiGvCr9Bbjq6NPYMEG_4sSGhXqoU7DY6Teo%2BN-mvzPA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPh%3D1b%3Dw3GkHVzvNiFgHodRz_W28SqCjyqcfbTWVHF%3Dw8VY3nQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPh%3D1b%3Dw3GkHVzvNiFgHodRz_W28SqCjyqcfbTWVHF%3Dw8VY3nQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Marcus Ottosson*
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAPsMrQNpfemPt2P2C5SjxEc_05E3o96wW9FtpBdOGD8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to