3-point lighting Maya UI made with Python HELP


#1

Hi guys, I wanna make this 3-point lighting UI, and I’m having trouble with a lot of the syntax and grammar when doing so, I was hoping if any of you know how to fix some of the problems I have, it would be greatly appreciated.

Right now, the main problems I’m having are:

  1. I can’t get the items selected in the textscrolllist to select the corresponding items in the scene.

  2. I can’t make the checkboxes to link to the properties in the light attribute box and I have no idea how. I’ve tried assigning callbacks to the checkboxes when i click them on and off, but the problem is that, when I look at the script editor, it returns me MEL code, but I want to use PythonMEL, and I don’t know how to translate it. like it gives me (lightname.something = 0) instead of cmds.something(lightname, something=0) and i dont know how to translate the syntax.

  3. I’d like to be able to make the “Warm” and “Cool” preset to have the values of the intensity, color, decay rate, emit diffuse, emit specular and illuminate by default saved, as well as have the “save setup” button save these values. maybe as a py function that can be added to the script?

Thank you so much for your help. I am quite a beginner and I’m just really lost as to what to even search for.