Navigation: Scripting Reference Manual > Functions & Subroutines > SetSourceMaterial

 

SetSourceMaterial

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the immersion material for a particular source.

 

Syntax

SetSourceMaterial n, mat

 

Parameters

n As Long

Node number of the source.

 

mat As Long

Identifier of the material to use for the immersion.

 

Remarks

This function sets the immersion material for a particular source.  All rays created for this source will be created inside of the given material.  The default material is "Air" unless otherwise specified with this subroutine. If there is a problem the function returns 0 and does not set an error.

 

See Also

GetSourceMaterial

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC