vray.VRMat¶
- class vray.VRMat¶
Bases:
object
This class groups a few functions for work with .vrmat (.vismat) materials.
VRMat(fileName[, pluginPath]) -> create a new VRMat object for the specified file.
The optional pluginPath is for cases where vray_MtlVRmat.dll/so is at a non-standard location.
Methods
__init__
(*args, **kwargs)Returns the the material thumbnail with the given name contained in the file as buffer/memview.
Returns the the material thumbnail with the given name contained in the file as a Base64 encoded PNG.
Returns a list of material names contained in the file.
- getDecodedThumbnail()¶
Returns the the material thumbnail with the given name contained in the file as buffer/memview.
- getEncodedThumbnail()¶
Returns the the material thumbnail with the given name contained in the file as a Base64 encoded PNG.
- getMaterialList()¶
Returns a list of material names contained in the file.