VS:ForEachMaterial

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Enumerate the materials in the current file.
PROCEDURE ForEachMaterial(
onlyUsed  :BOOLEAN;
callback  :PROCEDURE);
def vs.ForEachMaterial(onlyUsed, callback):
    return None

Parameters

onlyUsed BOOLEAN List only materials that are used in the current file.
callback PROCEDURE Callback to be executed for each material in the file, or for each material that is used, depending on the 'used' parameter.

Version

Availability: from Vectorworks 2021
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox