| | Light Poses (pz2):
Poser provides the lt2 format which can add lights to a Poser document (scene) or inject paramiters into existing lights. Any lights that exist in the document and that are not referenced in the lt2 file, will be turned off when the lt2 is applied.
A pz2 file can not load lights, but it can set the paramiters for any lights that exist in the document. Applying a pz2 to a light will NOT turn off other lights in the document. This feature of not affecting lights that are not referenced in the pz2 makes Light Poses a usefull tool in some situations.
A light Pose must name the specific light(s) it is to affect. A Light Pose consists of these parts:
1. Opening brace.
2. Version block (optional).
3. Definition block (where lights are named and paramiters set).
4. Figure block (empty).
5. Closing brace.
A Light Pose can set any any of a lights paramiters, but like any pose file, only those paramiters that you specifically want to set should be included.
Below is an example of a Poser 4 Light Pose that will set the colour of a spotlight with the internal name of 'spotLight 1' to red. Note that a lights name as displayed in the Poser interface is not necessarily the same as its internal name.
{
//---"Spot1RED.pz2" by Les Bentley, 14/November/04.---
version
{
number
}
light spotLight 1
{
depthMapSize depthMapSize
{
forceLimits 0
}
channels
{
kdRed KdRed
{
keys
{
k 0 1
}
}
kdGreen KdGreen
{
keys
{
k 0 0
}
}
kdBlue KdBlue
{
keys
{
k 0 0
}
}
}
}
figure
{
}
}
|