Community
Arnold for Maya Forum
Rendering with Arnold in Maya using the MtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pyhton Skydome samples

7 REPLIES 7
Reply
Message 1 of 8
NemoCourteix
484 Views, 7 Replies

Pyhton Skydome samples

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!

Tags (2)
Labels (2)
7 REPLIES 7
Message 2 of 8

You can set the aiSamples attribute.

This is the MEL, but it's not hard to change that to Python:

setAttr "aiSkyDomeLightShape1.aiSamples" 2;




// Stephen Blair
// Arnold Renderer Support
Message 3 of 8

mtoa.utils.setAttr('aiSkyDomeLight.aiSamples',2)


don't work

Message 4 of 8

No, and it should not work.

setAttr is a Maya command



// Stephen Blair
// Arnold Renderer Support
Message 5 of 8

what is the arnold command for setAttr for add sample to 'aiSkyDomeLight ?

Message 6 of 8

There is no Arnold command, you should use the Maya command.



// Stephen Blair
// Arnold Renderer Support
Message 7 of 8

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 ?

Message 8 of 8

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 )


// Stephen Blair
// Arnold Renderer Support

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report