Navigation: Scripting Reference Manual > Functions & Subroutines > SetAllMaterialPropGrp

 

SetAllMaterialPropGrp

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets Materials on all surfaces descended from the given group entities.

 

Syntax

count = SetAllMaterialPropGrp ( n, mat1, mat2 )

 

Parameters

count (Long)

Number of entities for which Material properties are set.

 

n As Long

Group node number.

 

mat1 As Long

Material 1 identifier.

 

mat2 As Long

Material 2 identifier.

 

Remarks

Sets Materials on all surfaces descended from the given group entities. Returns the number of entities for which Material property is set. This count includes Lens, Mirror & Prism entities. If the indicated group is not found, the function returns an error. If there are no valid entities, a zero is returned.

 

Groups can only be created/edited/managed from the scripting language.

 

See Also

AddAllScatterProp

AddAllScatterPropGrp

AddGroup

AddToNthGroup

FindGroup

RemoveAllImpSampProp

RemoveAllImpSampPropGrp

RemoveAllScatterProp

RemoveAllScatterPropGrp

SetAllCoatingProp

SetAllCoatingPropGrp

SetAllImpSampActive

SetAllImpSampActiveGrp

SetAllMaterialProp

SetAllRaytraceControlProp

SetAllRaytraceControlPropGrp

SetAllScatterActive

SetAllScatterActiveGrp

SetAllSpecularProperties

SetAllSpecularPropertiesGrp

ToggleAllImpSampActive

ToggleAllImpSampActiveGrp

ToggleAllScatterActive

ToggleAllScatterActiveGrp

 

 

 

 

 

 

Copyright © Photon Engineering, LLC