IExportContextOnLight Method |
This method marks the beginning of export of a light which is enabled for rendering.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxvoid OnLight(
LightNode node
)
Sub OnLight (
node As LightNode
)
void OnLight(
LightNode^ node
)
abstract OnLight :
node : LightNode -> unit
Parameters
- node LightNode
-
A node describing the light object.
Remarks
This method is only called for photo-rendering export (a custom exporter that implements
IPhotoRenderContext).
Example
public void OnLight(LightNode node)
{
Transform lightTrf = node.GetTransform();
Transform lightWorldTrf = m_TransformationStack.Peek().Multiply(lightTrf);
}
Public Sub OnLight(node As LightNode) Implements IExportContext.OnLight
Dim lightTrf As Transform = node.GetTransform()
Dim lightWorldTrf As Transform = m_TransformationStack.Peek().Multiply(lightTrf)
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also