CopyMaterial()
Syntax
Result = CopyMaterial(#Material, #NewMaterial)Description
Creates a new material which is the exact copy of the specified material.
Parameters
#Material The material to copy. #NewMaterial A number to identify the new material. #PB_Any can be used to auto-generate this number.
Return value
Nonzero if the material was successfully duplicated, zero otherwise. If #PB_Any was used for the #NewMaterial parameter then the generated number is returned on success.
Supported OS
All