Navigation: Scripting Reference Manual > Functions & Subroutines > RemoveIthPowerLawGRINMaterial

 

RemoveIthPowerLawGRINMaterial

 

Contact Us: fredsupport@photonengr.com

 

Description

This subroutine removes the I'th sample from the table of a power-law GRIN material.

 

 

Syntax

RemoveIthPowerLawGrinMaterial(  matNode, ithSamp )

 

 

Parameters

matNode As Long

Node number of the power-law grin material node being modified.

 

ithSamp As Long

Column-index (0-based) of the sample in the table being removed.  Samples are ordered by increasing wavelength so that the 0'th sample corresponds to the shortest wavelength.

 

 

Example

The example below demonstrates how to remove the 0'th sample of an existing power-law GRIN material.

 

Sub Main

    Dim matNode As Long

    matNode = FindMaterial( "Custom Power Law GRIN" )

    RemoveIthPowerLawGRINMaterial( matNode, 0 )

    Update

 

End Sub

 

 

See Also

Materials Script Commands

 

 

 

 

 

Copyright © Photon Engineering, LLC