vray.VRMat¶
- class vray.VRMat¶
Bases:
objectThis 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)getDecodedThumbnail(self, materialName)Returns the the material thumbnail with the given name contained in the file as buffer/memview.
getEncodedThumbnail(self, materialName)Returns the the material thumbnail with the given name contained in the file as a Base64 encoded PNG.
getMaterialList(self)Returns a list of material names contained in the file.
- getDecodedThumbnail(self, materialName: str) memoryview¶
Returns the the material thumbnail with the given name contained in the file as buffer/memview.
- getEncodedThumbnail(self, materialName: str) str¶
Returns the the material thumbnail with the given name contained in the file as a Base64 encoded PNG.
- getMaterialList(self) list[str]¶
Returns a list of material names contained in the file.