Hello !
I started scripting on arnold and i want to add samples to my skydome
import mtoa.utils
mtoa.utils.createLocator("aiSkyDomeLight", asLight=True)
Thanks so much for any help!
You can set the aiSamples attribute.
This is the MEL, but it's not hard to change that to Python:
setAttr "aiSkyDomeLightShape1.aiSamples" 2;
No, and it should not work.
setAttr is a Maya command
what is the arnold command for setAttr for add sample to 'aiSkyDomeLight ?
There is no Arnold command, you should use the Maya command.
Thanks for your help but it's possible to add sample to my skydome in python and if it's possible what is the command with only python ?
Same way you would an attribute on any Maya node.
import maya.cmds as cmds cmds.sphere( n="sphere" ) # Set a simple numeric value cmds.setAttr( 'sphere.translateX', 5 )