Most setting changes will be reflected in the script editor's output. So: setAttr "miDefaultOptions.maxSamples" 2;
could become: import maya.cmds as cmds cmds.setAttr('miDefaultOptions.maxSamples', 2) The Python syntax is often very similar and easy to convert. You could use the "getAttr" command to check a value, and change it if needed, or simply force each parameter to be what you'd like without a check. There are examples given in Maya's python documentation (at the bottom of each command's page). Sometimes you will not get a result in the script editor when changing settings. Often enabling 'echo all commands' from the script editor's History menu will garner a result. Cheers, Christopher On Sun, Aug 18, 2013 at 10:47 PM, Arjun Thekkummadathil <3dar...@gmail.com>wrote: > Hi > I am trying to write a code to do some checks for render parameter and i > would like to know how to access the parameters on the render > settings>quality tab for example > how to check if unified sampling is checked on/off > am using maya 2012 > > -- > 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 python_inside_maya+unsubscr...@googlegroups.com. > To post to this group, send email to python_inside_maya@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- ---- Christopher Stewart Vancouver, BC 3D TD | VFX IT -- 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 python_inside_maya+unsubscr...@googlegroups.com. To post to this group, send email to python_inside_maya@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.