Can someone tell me which file needs to be edited (or created) to customize default render settings ?
I would like to change values for Ray Depth, Filter Width, Verbosity level, Thread count, Sampling ...
Some guide/tutorial would be much appreciated. Thanks.
Solved! Go to Solution.
Solved by lee_griggs. Go to Solution.
https://arnoldsupport.com/2015/03/20/mtoa-setting-defaults-for-options-and-drivers/
My UserSetup.py does not work anymore after Maya 2018.3 update.
Example:
import mtoa.hooks # default settings, Arnold for Maya def setupOptions(options): options.AASamples.set(1) mtoa.hooks.setupOptions = setupOptions
# Error: AttributeError: file ...scripts\userSetup.py line 6: 'unicode' object has no attribute 'AASamples'
Partial answer found:
"Following the PyMel removal, any overrides in hooks.py will now expect node names, and not PyNode as hey did before."
Just need the correct node names now.
You probably have to do something like I showed here: https://answers.arnoldrenderer.com/questions/4837/createstandin-doesnt-work-in-mtoa-300x.html
I haven't had time to do it myself yet, but I would start by trying something like this:
cmds.setAttr('{}.AASamples'.format(options), path, type="string")