Render Settings Window

677 views
Skip to first unread message

Chi Ngai Lai

unread,
Apr 3, 2014, 5:15:26 AM4/3/14
to python_in...@googlegroups.com
Hi,

May I know how to use Maya Python to access/modify All the tabs, options, checkboxes (ie, Enable Color Management), and attributes inside the Maya Render Settings Window, it seems quite tricky to do this, I hope you could help me or share some learning resources for these stuffs, thank you very much in advanced.

Cheers,
Parker

Ricardo Viana

unread,
Apr 3, 2014, 5:58:06 AM4/3/14
to python_in...@googlegroups.com
Leave script editor open with echo all commands and see what it does when you change the values. It spits out the commands it is performing.
At least that's how I managed to script vray render settings.

--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/e9f8b363-46a4-4100-922d-7b4cb6d158ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Sent from Mobile

Chi Ngai Lai

unread,
Apr 3, 2014, 6:54:20 AM4/3/14
to python_in...@googlegroups.com
I tried in this way, but most of the actions or the "commands" shown in the script editor are not the exact ones you could use while scripting.

Chi Ngai Lai

unread,
Apr 3, 2014, 7:04:27 AM4/3/14
to python_in...@googlegroups.com
For example, "Enable Color Management" checkbox doesn't be reflected correctly in the script editor while "echo all commands" is activated, so anyone could help? Thank you so much.

Marcin Majewski

unread,
Apr 3, 2014, 7:15:25 AM4/3/14
to python_in...@googlegroups.com
Enable Color Management is controlled by createMayaSoftwareCommonGlobalsTab.mel. You can check this with whatIs mel command. If you enable color management checkbox you will see "changeColorProfileEnabled" in script editor. In script mentioned above you can find attributes that need to be changed to set input or output color profile. You need to set defaultRenderGlobals.outputColorProfle or inputColorProfile depending on your needs.


2014-04-03 13:04 GMT+02:00 Chi Ngai Lai <predat...@gmail.com>:
For example, "Enable Color Management" checkbox doesn't be reflected correctly in the script editor while "echo all commands" is activated, so anyone could help? Thank you so much.
--
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_m...@googlegroups.com.

Chi Ngai Lai

unread,
Apr 3, 2014, 10:14:34 AM4/3/14
to python_in...@googlegroups.com
Hi Marcin,

I appreciate your helpful tips.

I was wondering, are there all the attributes inside the Render Settings Panel could be found in this  createMayaSoftwareCommonGlobalsTab.mel ? 

Once again thank you for your help. 



On Thursday, April 3, 2014 7:15:25 PM UTC+8, marcin wrote:
Enable Color Management is controlled by createMayaSoftwareCommonGlobalsTab.mel. You can check this with whatIs mel command. If you enable color management checkbox you will see "changeColorProfileEnabled" in script editor. In script mentioned above you can find attributes that need to be changed to set input or output color profile. You need to set defaultRenderGlobals.outputColorProfle or inputColorProfile depending on your needs.
2014-04-03 13:04 GMT+02:00 Chi Ngai Lai <predat...@gmail.com>:
For example, "Enable Color Management" checkbox doesn't be reflected correctly in the script editor while "echo all commands" is activated, so anyone could help? Thank you so much.

--
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+unsub...@googlegroups.com.

Marcin Majewski

unread,
Apr 3, 2014, 2:17:15 PM4/3/14
to python_in...@googlegroups.com
These attributes can be found in defaultRenderGlobals node attributes. Script is only used to set this attributes. You can list node attribures using listAttr command. Type listAttr defautRenderGlobals and you will see all availabe attributes.


To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/a3e9aa38-08ed-405f-9179-795c1f5b303f%40googlegroups.com.

Chi Ngai Lai

unread,
Apr 3, 2014, 8:49:19 PM4/3/14
to python_in...@googlegroups.com
Appreciate your help, it's awesome, man!

Cheers,
Parker

Reply all
Reply to author
Forward
0 new messages