Navigation: Scripting Reference Manual > Functions & Subroutines > FindMaterial

 

FindMaterial

 

Contact Us: fredsupport@photonengr.com

 

Description

Finds a glass material with the given name in the associated FRED document.  This string can also be easily copied from the GUI using the "Copy Find-Name Command to Clipboard" feature available in the list menu after right mouse clicking on a node in the object tree.

 

Syntax

id = Findmaterial ( mname )

 

Parameters

id (Long)

Identifier of the material with the given name.

 

mname As String

The name of the material to be found.

 

Remarks

This function looks in the associated FRED document for a glass material with the given mname and returns the identifier of the material, or a value of -1 if no such material is found.  The name comparison is case sensitive.

 

See Also

GetMaterialCount

GetMaterialType

 

Examples

Materials

 

 

 

 

 

Copyright © Photon Engineering, LLC