addOrEditMaterial
Last updated
Last updated
Adds or changes a current from a specific . Optionally sets it as active as well.
objectName
The name of the object we want to add/change.
string
material
A material object with all parameters to add/change. If a material with the same names exists, it will edit it, otherwise it will create a new one.
Usage: