Navigation: Scripting Reference Manual > Functions & Subroutines > SetAllMaterialProp

 

SetAllMaterialProp

 

Contact Us: fredsupport@photonengr.com

 

Description

Set materials on all surfs descended from the given entity.

 

Syntax

count = SetAllMaterialProp( n, mat1, mat2 )

 

Parameters

count (Long)

Number of entities for which Material properties are set.

 

n As Long

Entity node number.

 

mat1 As Long

Material 1 identifier.

 

mat2 As Long

Material 2 identifier.

 

 

Remarks

Set materials on all surfs descended from the given entity. Returns the number of entities on which Material properties are set. This count includes Lens, Mirror & Prism entities. If the indicated entity is not found or if there are no valid entities, a zero is returned.

 

See Also

AddAllScatterProp

AddAllScatterPropGrp

RemoveAllImpSampProp

RemoveAllImpSampPropGrp

RemoveAllScatterProp

RemoveAllScatterPropGrp

SetAllCoatingProp

SetAllCoatingPropGrp

SetAllImpSampActive

SetAllImpSampActiveGrp

SetAllMaterialPropGrp

SetAllRaytraceControlProp

SetAllRaytraceControlPropGrp

SetAllScatterActive

SetAllScatterActiveGrp

SetAllSpecularProperties

SetAllSpecularPropertiesGrp

ToggleAllImpSampActive

ToggleAllImpSampActiveGrp

ToggleAllScatterActive

ToggleAllScatterActiveGrp

 

 

 

 

 

Copyright © Photon Engineering, LLC