Getting/Converting Color Values From Lights?
Posted: February 12th, 2009, 1:56 pm
I am working with the AE3DExport script written by the urbanspaceman.
I am adding Blender functionality to the export section and have run into a snag on lights.
It seems there is no way to tell what kind of light an After Effects light is? Does anyone know of a way to detect the light type?
Also, working with the color of the light I am stuck. I know how to get the color
But how do I get access to the RGB elements of the color?
Here is my attempted Blender python output that fails.
I assumed the color value was an array, but I get undefined from the above code.
Thanks!
I am adding Blender functionality to the export section and have run into a snag on lights.
It seems there is no way to tell what kind of light an After Effects light is? Does anyone know of a way to detect the light type?
Also, working with the color of the light I am stuck. I know how to get the color
Code: Select all
G.LIGHT_COLOR = layer.property("Color")
Here is my attempted Blender python output that fails.
Code: Select all
"localLamp.R = " + G.LIGHT_COLOR[0]+G.RET+
"localLamp.G = " + G.LIGHT_COLOR[1]+G.RET+
"localLamp.B = " + G.LIGHT_COLOR[2]+G.RET+
Thanks!