Start Maya with Render Globals presets

267 views
Skip to first unread message

Arvid Schneider

unread,
Nov 23, 2015, 10:41:24 AM11/23/15
to Python Programming for Autodesk Maya
Hi, is there a way to start maya with custom render global settings.
Even when I set preferred renderer to Arnold, sometimes mayas software renderer is still enabled at startup.
Is there a way to force the loading of plugin, and enabling mtoa as a renderer, and then set some custom attributes in render globals. Eg. Setting all Gamma values to 1?

Because right now, when starting maya in an untitled scene, it uses mtoa default settings. Or is there a way to change the default mtoa render settings some where?

Arvid

Arvid Schneider

unread,
Nov 23, 2015, 10:43:32 AM11/23/15
to Python Programming for Autodesk Maya
Ok, this is for the mtoa part#

Is there a way to create default maya render global settings?

Marcus Ottosson

unread,
Nov 23, 2015, 10:52:55 AM11/23/15
to python_in...@googlegroups.com

There is a “Default Scene” option in the “New Scene” option dialog.

Typical use would be:

  1. Create a new scene
  2. Set your intended defaults
  3. Save this scene somewhere global
  4. Make this the default scene.

--
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/9d23dd78-9e29-47c8-b27f-a430931e5434%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Peter Makal

unread,
Nov 23, 2015, 2:07:59 PM11/23/15
to Python Programming for Autodesk Maya
Hm, and what about using userSetup.py to do this? link
(this is more of a question than an answer)


On Monday, November 23, 2015 at 4:52:55 PM UTC+1, Marcus Ottosson wrote:

There is a “Default Scene” option in the “New Scene” option dialog.

Typical use would be:

  1. Create a new scene
  2. Set your intended defaults
  3. Save this scene somewhere global
  4. Make this the default scene.
On 23 November 2015 at 15:43, Arvid Schneider <arvidsc...@gmail.com> wrote:
Ok, this is for the mtoa part#

Is there a way to create default maya render global settings?

On Monday, November 23, 2015 at 3:41:24 PM UTC, Arvid Schneider wrote:
Hi, is there a way to start maya with custom render global settings.
Even when I set preferred renderer to Arnold, sometimes mayas software renderer is still enabled at startup.
Is there a way to force the loading of plugin, and enabling mtoa as a renderer, and then set some custom attributes in render globals. Eg. Setting all Gamma values to 1?

Because right now, when starting maya in an untitled scene, it uses mtoa default settings. Or is there a way to change the default mtoa render settings some where?

Arvid

--
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.



--
Marcus Ottosson
konstr...@gmail.com

Marcus Ottosson

unread,
Nov 23, 2015, 5:07:00 PM11/23/15
to python_in...@googlegroups.com
userSetup.py is only run once during start-up, it sounds like what is needed is to ensure that every new scene has these new defaults.

But there is a callback you could use if scripting it is the way to go, such that a particular function runs whenever a new scene is started.

On 23 November 2015 at 19:07, Peter Makal <piotr...@gmail.com> wrote:
Hm, and what about using userSetup.py to do this? link
(this is more of a question than an answer)

On Monday, November 23, 2015 at 4:52:55 PM UTC+1, Marcus Ottosson wrote:

There is a “Default Scene” option in the “New Scene” option dialog.

Typical use would be:

  1. Create a new scene
  2. Set your intended defaults
  3. Save this scene somewhere global
  4. Make this the default scene.
On 23 November 2015 at 15:43, Arvid Schneider <arvidsc...@gmail.com> wrote:
Ok, this is for the mtoa part#

Is there a way to create default maya render global settings?

On Monday, November 23, 2015 at 3:41:24 PM UTC, Arvid Schneider wrote:
Hi, is there a way to start maya with custom render global settings.
Even when I set preferred renderer to Arnold, sometimes mayas software renderer is still enabled at startup.
Is there a way to force the loading of plugin, and enabling mtoa as a renderer, and then set some custom attributes in render globals. Eg. Setting all Gamma values to 1?

Because right now, when starting maya in an untitled scene, it uses mtoa default settings. Or is there a way to change the default mtoa render settings some where?

Arvid

--
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.



--
Marcus Ottosson
konstr...@gmail.com

--
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/15ac08d6-61f6-45dd-a5ea-6a46eb74e21e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Arvid Schneider

unread,
Nov 24, 2015, 6:43:02 AM11/24/15
to Python Programming for Autodesk Maya
In the best case, id like to have a config file, which is being parsed in the userSetup where I can define default show settings. 
Thats the idea
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.



--
Marcus Ottosson
konstr...@gmail.com

--
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.



--
Marcus Ottosson
konstr...@gmail.com

Arvid Schneider

unread,
Dec 5, 2015, 10:40:00 AM12/5/15
to Python Programming for Autodesk Maya
I found a way using mtoa.hooks, and a json config file to set default values based on different validations.
Thanks for the push in the right direction
Arvid
Reply all
Reply to author
Forward
0 new messages