Use this method to get and set the light parameters. The light source parameter contains the following parameters.
|
No of parameters |
Parameter Setting |
|
4 |
ambient |
|
8 |
diffuse |
|
12 |
specular |
|
16 |
position |
|
19 |
spotDirection |
|
22 |
Target |
|
1 |
spotExponent |
|
1 |
spotCutoff |
|
1 |
spotCosCutoff |
|
1 |
constantAttenuation |
|
1 |
linearAttenuation |
|
1 |
quadraticAttenuation |
Cimatron 2026 or later
bool LightParameters(int iLightCount, out double[] aFloatParams, out int[] aIntParams);
def LightParameters(int iLightCount, double[] aFloatParams, int[] aIntParams)
|
Return: bool |
oRet
|
|
Input: int |
iLightCount—Light count for properties to get.iLightCount is from 0 to 7 |
|
Input: double[] |
Light source parameters |
|
Input: int[] |
Color Properties: first is color, second is type |
None
