Navigation: Scripting Reference Manual > Functions & Subroutines > SetSourceDirFocus

 

SetSourceDirFocus

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the ray direction data for a source with a Focus to/from a point.

 

Syntax

SetSourceDirFocus n, posX, posY, posZ, isTowardPoint

 

Parameters

n As Long

Node number of the source.

 

posX As Double

The new X component of the point.

 

posY As Double

The new Y component of the point.

 

posZ As Double

The new Z component of the point.

 

isTowardPoint As Boolean

The ray direction type. Set to True if the rays are directed towards the point x,y,z and False if the rays are directed away from x,y,z.

 

Remarks

This subroutine sets the ray direction data for a source with a Focus to/from a point. If there is a problem the subroutine returns without setting an error or modifying the source.

 

See Also

GetSourceDirFocus

IsSourceDirFocus

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC