Working with aiSkydome Lights and HDRIs in Python/PyMel

Working with aiSkydome Lights and HDRIs in Python/PyMel

Anonymous
Not applicable
2,293 Views
1 Reply
Message 1 of 2

Working with aiSkydome Lights and HDRIs in Python/PyMel

Anonymous
Not applicable

Hello there, I'm working on an exercise for my exam. Forgive me if what I'm about to ask sounds really amateurish, but I've yet to fully figure out this language, and I've searched the documentation long enough without finding an answer to ask this, I feel.

 

For this exercise (or the start of it, that is), I need to create a skyDome Light (under the Arnold tab), and apply an HDRI to it - using python/pyMel only. My issue is that I can't seem to find a command for it, and when I look over the listener, I'm mystified.

I've attached two screen snippits - one of the part of the listener I think is relevant, and the next is the piece of code I need to complete.

 

If there's anything that needs clarification, I'll be glad to provide more screencaps or explanations as necessary. Thank you so much!

 

- Christina

0 Likes
2,294 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

I've figured out the answer for the skydome part! It's quite simple, but I had to dig through the arnoldmenu.py:

 

import mtoa.utils as mutils
skydome = mutils.createLocator('aiSkyDomeLight', asLight=True)

 

Now...I just need to figure out how to add an HDRI to it. Anybody?

0 Likes