...
Texturable attributes: opacity (AttrType_Double
). When this attribute is textured, the scalar value acts as a multiplier for the values sampled from the texture.
Base class: MaxwellMayaMaterialComponent
.
Methods
void | Destroy() |
bool | SetName(const MString& name) |
void MString | GetName() const |
MaxwellMayaBSDF* | AddBSDF() |
unsigned int | GetNumBSDFs() const |
MaxwellMayaBSDF* | GetBSDF(unsigned int index) |
const MaxwellMayaBSDF* | GetBSDF(unsigned int index) const |
MaxwellMayaEmitter* | CreateEmitter() |
MaxwellMayaEmitter* | GetEmitter() |
const MaxwellMayaEmitter* | GetEmitter() const |
bool | HasEmitter() const |
void | RemoveEmitter() |
MaxwellMayaDisplacement* | CreateDisplacement() |
MaxwellMayaDisplacement* | GetDisplacement() |
const MaxwellMayaDisplacement* | GetDisplacement() const |
bool | HasDisplacement() |
void | RemoveDisplacement() |
void | SetEnabled(bool enabled) |
bool | GetEnabled() const |
bool | SetBlendMode(BlendMode mode) |
BlendMode | GetBlendMode() const |
Inherited methods |
...
This is a convenience method which allows you to check if an emitter component is present. It is equivalent to checking if GetEmitter
returns NULL
, but you don't have to worry about managing the returned pointer in case there is an emitter and you only wanted to check its existence. This method does not exist in Python, where the object returned by GetEmitter
is managed automatically by the garbage collector.
...
Convenience method for checking if the layer contains a displacement component. This method does not exist in Python. The reason why it exists in C++ is the same as for the HasEmitter
method documented above.
void RemoveDisplacement()
...
There are two possible blending modes for the layers:
BlendMode_Normal
: the resulting value islayer*opacity + existing*(1 - opacity)
.BlendMode_Additive
: additive blending, where the existing value is not multiplied by(1 - opacity)
.
...