Navigation: Scripting Reference Manual > Functions & Subroutines > GetMaterialType

 

GetMaterialType

 

Contact Us: fredsupport@photonengr.com

 

Description

Returns the type of the specified material in the associated FRED document.

 

Syntax

type = GetMaterialType ( id )

 

Parameters

type (String)

A string identifying the type of the material.

 

id As Long

Identifier of the material.

 

Remarks

The possible return values for type are:

Material type

Returned "type" string

Sampled Material

Sampled

Schott Optical Glass

Schott

Ohara Optical Glass

Ohara

Hoya Optical Glass

Hoya

Pilkington Optical Glass

Pilkington

Corning Optical Glass

Corning

Chengdu Optical Glass

Chengdu

Hikari Optical Glass

Hikari

Sumita Optical Glass

Sumita

Custom Glass

Custom

Model Material

Model

Luneberg Gradient Index Material

GRIN

Maxwell Gradient Index Material

GRIN

Spherical Gradient Index Material

GRIN

Selfoc Gradient Index Material

GRIN

Axial/Radial Gradient Index Material

GRIN

Script Gradient Index Material

GRIN

Sampled Birefringent and/or Optically Active Material

BIREFSampled

Formula Glass Material

Formula

 

See Also

GetMaterialCount

FindMaterial

Examples

Materials

 

 

 

 

 

Copyright © Photon Engineering, LLC