well these are all the regular processes but the unified sampling is not a parameter on the miDefaultOptions node it comes as a sting options and i kind of figured that the way to query that value is
getAttr("miDefaultOptions.stringOptions[28].value") if i do a listAttr miDefaultOptions that doesn't list the unified sampling its just list stringOptions On Mon, Aug 19, 2013 at 12:02 PM, Kurian O.S <kuria...@gmail.com> wrote: > You can also use listAttr to get all the available attrs from a node > > > On Sunday, August 18, 2013, Christopher Stewart wrote: > >> 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. >> > > > -- > --:: 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 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. > -- 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.