Enumerate the materials in the current file.
PROCEDURE ForEachMaterial(
onlyUsed : BOOLEAN;
callback : PROCEDURE);def vs.ForEachMaterial(onlyUsed, callback):
return None| Name | Type | Description |
|---|---|---|
| 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. |
Availability: from Vectorworks 2021