The Photometric Lights have been redesigned in 3ds Max 2009 to simplify the creation and conversion between types, as well as extended to support more options, preview Web Distribution and more.
Internally, 3ds Max 2009 and higher expose a multitude of Photometric Light Classes with unique ClassIDs. Some of these classes including the Point, Line and Area Lights (both Free and Targeted) provide backwards compatibility withPhotometric Lights from previous versions.
In the 3ds Max Command Panel, the creation has been reduced to only two basic types - Target Light and Free Light which can be converted into all other types via the "Shape/Area Shadows" rollout. The old "Area" type is now called "Rectangle" to distinguish between the various area light shapes that are now available.
Several new Area Light types - Disc, Sphere and Cylinder have been added. Class instances of these light classes can be created directly by MAXScript or indirectly by setting a light's .type
property to #Free_Disc, #Target_Disc, #Free_Sphere, #Target_Sphere, #Free_Cylinder
or #Target_Cylinder
.
Also note that the User Interface of all Photometric Lights exposes a checkbox called "Targeted". Changing the state of this checkbox using the mouse will implicitly convert the class of the object between #Target_* and #Free_* types. This property cannot be set directly with MAXScript, instead, the .type property has to be set to the desired #Free_* or #Target_* type.
The table below lists all available Photometric Light types.
Type | Class | ClassID | New in 3ds Max 2009 |
---|---|---|---|
FREE TYPES | |||
#Free_Point | Free_Light | #(842489804, 184704240) | No |
#Free_Line | Free_Linear | #(2015392769, 897523032) | No |
#Free_Rectangle | Free_Area | #(911244690, 274340423) | No |
#Free_Disc | Free_Disc | #(1540123970, 206521102) | Yes |
#Free_Sphere | Free_Sphere | #(2091464066, 448490290) | Yes |
#Free_Cylinder | Free_Cylinder | #(1190540515, 171080367) | Yes |
TARGETED TYPES | |||
#Target_Point | Target_Light | #(1703759767, 1926054489) | No |
#Target_Line | Target_Linear | #(1158113413, 1081676873) | No |
#Target_Rectangle | Target_Area | #(1903775645, 1890472690) | No |
#Target_Disc | Target_Disc | #(947069768, 538400947) | Yes |
#Target_Sphere | Target_Sphere | #(872184553, 1413692869) | Yes |
#Target_Cylinder | Target_Cylinder | #(2089507600, 1272135302) | Yes |
All these light classes share the same Photometric Lights Common Properties, Operators, and Methods , thus their respective documentation pages contain no properties. There are some slight differences in the allowed ranges of a few common parameters, for example the Sphere and Cylinder lights support only a .distribution
value of 0, while all other types support a range from 0 to 3. These specifics have been noted explicitly where applicable.