Thanks, I figured those attrs were on a different node, but I didn't know what node to look at.
For setting framerate, am I right in thinking I need to target yet another node, some preference node? I can work with attributes, as long as I know which node I need. I just don't know what nodes are out there and which ones have the attributes I want... Thanks for your help! On Wed, Jul 15, 2015 at 12:40 PM Kurian O.S <[email protected]> wrote: > Okay defaultRenderGlobals, defaultRenderQuality and defaultResolution > those are separate nodes in maya, if you want to get rez then > cmds.getAttr("defaultResolution.width") > cmds.getAttr("defaultResolution.height") > > As Marcus said you can select each of them and see what attrs there :) > > On Wed, Jul 15, 2015 at 10:22 AM, 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. >> > > > > -- > --:: 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/CANEMyhNzE36W9jTEbEX7YpaJ7qtVDBDNBdUN%3DFx0-8X-%2B%2Buafw%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CANEMyhNzE36W9jTEbEX7YpaJ7qtVDBDNBdUN%3DFx0-8X-%2B%2Buafw%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%3D1bnmoS3TK%2BdpT_vfc4VwMtiKR7G-mJKxzpapp5dHEo-%2BuA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
