Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 5

...

Base class: MaxwellMayaMaterialComponent.

Methods

voidDestroy()
voidSetEnabled(bool enabled)
boolGetEnabled() const
voidSetEmissionType(EmissionType type)
EmissionTypeGetEmissionType() const
voidSetColorType(ColorType type)
ColorTypeGetColorType() const
voidSetRGBColor(const MFloatVector& color)
voidGetRGBColor(MFloatVector& color) const
voidSetCorrelatedColor(double temperature)
doubleGetCorrelatedColor() const
voidSetOutputType(OutputType type)
OutputTypeGetOutputType() const
voidSetWatts(double watts)
doubleGetWatts() const
voidSetEfficacy(double efficacy)
doubleGetEfficacy() const
voidSetLuminance(double luminance)
doubleGetLuminance() const
voidSetIES(const MString& file, double intensity)
voidGetIES(MString& file, double& intensity) const
voidSetTemperature(double temperature)
doubleGetTemperature() const
 Inherited methods

...

This attribute represents the emission color when the emitter type is set to EmissionType_ColorLuminance and the color type is set to ColorType_RGB. The Python version of SetRGBColor takes the red, green and blue values as separate arguments (in the range 0..1), while GetRGBColor returns the color as a 3-tuple.

...

This attribute represents the emission temperature when the emitter type is set to EmissionType_Temperature. Not to be confused with the correlated color attribute, which only controls the emission color when the type is set to EmissionType_ColorLuminance. This attribute defines both the emission color and the intensity. 

...