Home | Trees | Index | Help |
|
---|
Module Lamp :: Class Lamp |
|
Warning: Most member variables assume values in some [Min, Max] interval. When trying to set them, the given parameter will be clamped to lie in that range: if val < Min, then val = Min, if val > Max, then val = Max.
Method Summary | |
---|---|
Lamp |
Make a copy of this lamp |
Add a new script link to this Lamp. | |
Unlink the ipo from this Lamp object. | |
Delete script links from this Lamp. | |
int |
Get this lamp's size on the X axis. |
int |
Get this lamp's size on the Y axis. |
float |
Get this lamp's bias value. |
int |
Get this lamp's buffer size. |
float |
Get this lamp's clip end value. |
float |
Get this lamp's clip start value. |
float |
Get this lamp's distance value. |
float |
Get this lamp's energy intensity value. |
float |
Get this lamp's halo intensity value. |
int |
Get this lamp's halo step value. |
Ipo |
Get the Ipo associated with this Lamp object, if any. |
int |
Get this Lamp's mode flags. |
string |
Get the name of this Lamp Data object. |
float |
Get this lamp's quad 1 value. |
float |
Get this lamp's quad 2 value. |
int |
Get this lamp's raytracing sample value on the X axis. |
int |
Get this lamp's raytracing sample value on the Y axis. |
int |
Get this lamp's samples value. |
list |
Get a list with this Lamp's script links of type 'event'. |
float |
Get this lamp's softness value. |
float |
Get this lamp's spot blend value. |
float |
Get this lamp's spot size value. |
int |
Get this Lamp's type. |
Inserts keytype values in lamp ipo at curframe. | |
int |
Set this lamp's size on the X axis. |
int |
Set this lamp's size on the Y axis. |
Set the bias value. | |
Set the buffer size value. | |
Set the clip end value. | |
Set the clip start value. | |
Set the distance value. | |
Set the energy intensity value. | |
Set the halo intensity value. | |
Set the halo step value. | |
Link an ipo to this Lamp object. | |
Set this Lamp's mode flags. | |
Set the name of this Lamp Data object. | |
Set the quad 1 value. | |
Set the quad 2 value. | |
int |
Set the lamp's raytracing sample value on the X axis, between 1 and 16. |
int |
Set the lamp's raytracing sample value on the Y axis, between 1 and 16. |
Set the samples value. | |
Set the softness value. | |
Set the spot blend value. | |
Set the spot size value. | |
Set this Lamp's type. |
Instance Variable Summary | |
---|---|
float | areaSizeX : Lamp X size (X is used for the Y axis with square area lamps) Value is
clamped to the range [0.01,100.0]. |
float | areaSizeY : Lamp Y size (Y is only used for rectangle area lamps). |
float | B : Lamp color blue component. |
float | bias : Lamp shadow map sampling bias. |
int | bufferSize : Lamp shadow buffer size. |
float | clipEnd : Lamp shadow map clip end. |
float | clipStart : Lamp shadow map clip start. |
RGB tuple | col : Lamp RGB color triplet. |
float | dist : Lamp clipping distance. |
float | energy : Lamp light intensity. |
float | G : Lamp color green component. |
float | haloInt : Lamp spotlight halo intensity. |
int | haloStep : Lamp volumetric halo sampling frequency. |
Blender Ipo | ipo : Lamp Ipo. |
int | mode : Lamp mode bitfield. |
str | name : Lamp data name. |
float | quad1 : Quad lamp linear distance attenuation. |
float | quad2 : Quad lamp quadratic distance attenuation. |
float | R : Lamp color red component. |
int | raySamplesX : Lamp raytracing X samples (X is used for the Y axis with square area
lamps). |
int | raySamplesY : Lamp raytracing Y samples (Y is only used for rectangle area
lamps). |
int | samples : Lamp shadow map samples. |
float | softness : Lamp shadow sample area size. |
float | spotBlend : Lamp spotlight edge softness. |
float | spotSize : Lamp spotlight beam angle (in degrees). |
int | type : Lamp type. |
int | users : Number of lamp users. |
Method Details |
---|
__copy__()Make a copy of this lamp
|
addScriptLink(text, event)Add a new script link to this Lamp.
|
clearIpo()Unlink the ipo from this Lamp object.
|
clearScriptLinks(links=None)Delete script links from this Lamp. If no list is specified, all script links are deleted.
|
getAreaSizeX()Get this lamp's size on the X axis. This value is only used for area lamps.
|
getAreaSizeY()Get this lamp's size on the Y axis. This value is only used for rectangle area lamps.
|
getBias()Get this lamp's bias value.
|
getBufferSize()Get this lamp's buffer size.
|
getClipEnd()Get this lamp's clip end value.
|
getClipStart()Get this lamp's clip start value.
|
getDist()Get this lamp's distance value.
|
getEnergy()Get this lamp's energy intensity value.
|
getHaloInt()Get this lamp's halo intensity value.
|
getHaloStep()Get this lamp's halo step value.
|
getIpo()Get the Ipo associated with this Lamp object, if any.
|
getMode()Get this Lamp's mode flags.
|
getName()Get the name of this Lamp Data object.
|
getQuad1()Get this lamp's quad 1 value.
|
getQuad2()Get this lamp's quad 2 value.
|
getRaySamplesX()Get this lamp's raytracing sample value on the X axis. This value is only used for area lamps.
|
getRaySamplesY()Get this lamp's raytracing sample value on the Y axis. This value is only used for rectangle area lamps.
|
getSamples()Get this lamp's samples value.
|
getScriptLinks(event)Get a list with this Lamp's script links of type 'event'.
|
getSoftness()Get this lamp's softness value.
|
getSpotBlend()Get this lamp's spot blend value.
|
getSpotSize()Get this lamp's spot size value.
|
getType()Get this Lamp's type.
|
insertIpoKey(keytype)Inserts keytype values in lamp ipo at curframe. Uses module constants.
|
setAreaSizeX()Set this lamp's size on the X axis. This value is only used for area lamps.
|
setAreaSizeY()Set this lamp's size on the Y axis. This value is only used for rectangle area lamps.
|
setBias(bias)Set the bias value.
|
setBufferSize(bufsize)Set the buffer size value.
|
setClipEnd(clipend)Set the clip end value.
|
setClipStart(clipstart)Set the clip start value.
|
setDist(distance)Set the distance value.
|
setEnergy(energy)Set the energy intensity value.
|
setHaloInt(haloint)Set the halo intensity value.
|
setHaloStep(hastep)Set the halo step value.
|
setIpo(ipo)Link an ipo to this Lamp object.
|
setMode(m=None, m2=None, m3=None, m4=None, m5=None, m6=None, m7=None, m8=None)Set this Lamp's mode flags. Mode strings given are turned 'on'. Those not provided are turned 'off', so lamp.setMode() -- without arguments -- turns off all mode flags for Lamp lamp.
|
setName(name)Set the name of this Lamp Data object.
|
setQuad1(quad1)Set the quad 1 value.
|
setQuad2(quad2)Set the quad 2 value.
|
setRaySamplesX()Set the lamp's raytracing sample value on the X axis, between 1 and 16. This value is only used for area lamps.
|
setRaySamplesY()Set the lamp's raytracing sample value on the Y axis, between 1 and 16. This value is only used for rectangle area lamps.
|
setSamples(samples)Set the samples value.
|
setSoftness(softness)Set the softness value.
|
setSpotBlend(spotblend)Set the spot blend value.
|
setSpotSize(spotsize)Set the spot size value.
|
setType(type)Set this Lamp's type.
|
Instance Variable Details |
---|
areaSizeXLamp X size (X is used for the Y axis with square area lamps) Value is clamped to the range [0.01,100.0].
|
areaSizeYLamp Y size (Y is only used for rectangle area lamps). Value is clamped to the range [0.01,100.0].
|
BLamp color blue component. Value is clamped to the range [0.0,1.0].
|
biasLamp shadow map sampling bias. Value is clamped to the range [0.01,5.0].
|
bufferSizeLamp shadow buffer size. Value is clamped to the range [512,5120].
|
clipEndLamp shadow map clip end. Value is clamped to the range [1.0,5000.0].
|
clipStartLamp shadow map clip start. Value is clamped to the range [0.1,1000.0].
|
colLamp RGB color triplet. Components are clamped to the range [0.0,1.0].
|
distLamp clipping distance. Value is clamped to the range [0.1,5000.0].
|
energyLamp light intensity. Value is clamped to the range [0.0,10.0].
|
GLamp color green component. Value is clamped to the range [0.0,1.0].
|
haloIntLamp spotlight halo intensity. Value is clamped to the range [0.0,5.0].
|
haloStepLamp volumetric halo sampling frequency. Value is clamped to the range [0,12].
|
ipoLamp Ipo. Contains the Ipo if one is assigned to the object, None otherwise. Setting to None clears the current Ipo..
|
modeLamp mode bitfield. SeeModes for values.
|
nameLamp data name.
|
quad1Quad lamp linear distance attenuation. Value is clamped to the range [0.0,1.0].
|
quad2Quad lamp quadratic distance attenuation. Value is clamped to the range [0.0,1.0].
|
RLamp color red component. Value is clamped to the range [0.0,1.0].
|
raySamplesXLamp raytracing X samples (X is used for the Y axis with square area lamps). Value is clamped to the range [1,16].
|
raySamplesYLamp raytracing Y samples (Y is only used for rectangle area lamps). Value is clamped to the range [1,16].
|
samplesLamp shadow map samples. Value is clamped to the range [1,16].
|
softnessLamp shadow sample area size. Value is clamped to the range [1.0,100.0].
|
spotBlendLamp spotlight edge softness. Value is clamped to the range [0.0,1.0].
|
spotSizeLamp spotlight beam angle (in degrees). Value is clamped to the range [1.0,180.0].
|
typeLamp type. SeeTypes for values.
|
usersNumber of lamp users.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Feb 11 13:30:19 2007 | http://epydoc.sf.net |