Scripted Light Plug-ins

Scripted Light plug-ins can only extend existing Light plug-ins.A scripted Light plug-in is declared by specifying the <superclass> as light . If a create tool is specified, it will override the delegate's create tool. Current limitations prevent certain plug-ins from being extended, in particular those with custom creation managers. These include target light plug-ins. You can tell if a plug-in is not extendable if your new rollouts do not appear.

An example of a scripted Light plug-in is shown in the Three Lights example in Scripted Plug-in Methods.

on getDisplayMesh do ....

This optional event handler lets the developer replace the viewport display mesh of the delegate with a custom display mesh.

Previously available in Scripted Cameras and Scripted Helper Plug-ins.

Available in 3ds Max 8 and higher.

on useWireColor do ....

This optional event handler lets the developer specify whether to use the node's wire color when drawing the object in the viewport, or use the UI color for the object type (Light Object). If this handler returns true, the node's wire color is used, otherwise the UI color for the object type is used. If the event handler is not specified, the wire color is used. This handler is only applicable when a getDisplayMesh handler is supplied.

Available in 3ds Max 8 and higher.

See Also