saveasref

guerilla.saveasref(reffilename, masterfilename)

Save the material as a couple of Material and MaterialRef.

This function saves the Material in a master file and the associated MaterialRef in a reference file

so one can load the reference file in place of the actual master material file, and use the master material as a file based shader.

param reffilename:
 The path to the reference MaterialRef file
type reffilename:
 str
param masterfilename:
 The path to the master Material file, or nil if the master file shall be saved next to the reference file
type masterfilename:
 str