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
On Tuesday, November 24, 2015 at 11:43:02 AM UTC, Arvid Schneider wrote: > > 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 > > > On Monday, November 23, 2015 at 10:07:00 PM UTC, Marcus Ottosson wrote: >> >> 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 <[email protected]> wrote: >> >>> Hm, and what about using userSetup.py to do this? link >>> <http://help.autodesk.com/view/MAYAUL/2015/ENU/?guid=Python_Python_in_Maya#GUID-C0F27A50-3DD6-454C-A4D1-9E3C44B3C990__WS17956D7ADBC6E7362626226A117AE335D4A-7FFF> >>> (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. >>>> >>>> >>>> - >>>> >>>> http://download.autodesk.comµ/global/docs/maya2014/en_us/index.html?url=files/File__New_Scene.htm,topicNumber=d30e48442 >>>> >>>> >>>> >>>> >>>> On 23 November 2015 at 15:43, Arvid Schneider <[email protected]> >>>> wrote: >>>> >>>>> Ok, this is for the mtoa part# >>>>> >>>>> http://arnoldsupport.com/2015/03/20/mtoa-setting-defaults-for-options-and-drivers/ >>>>> >>>>> 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 [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/python_inside_maya/9d23dd78-9e29-47c8-b27f-a430931e5434%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/python_inside_maya/9d23dd78-9e29-47c8-b27f-a430931e5434%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> *Marcus Ottosson* >>>> [email protected] >>>> >>> -- >>> 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/15ac08d6-61f6-45dd-a5ea-6a46eb74e21e%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/python_inside_maya/15ac08d6-61f6-45dd-a5ea-6a46eb74e21e%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> *Marcus Ottosson* >> [email protected] >> > -- 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/2314d3a2-05eb-470f-a45a-12dd525efad5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
