Versions Compared

Key

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

...

Base class: MaxwellMayaMaterialComponent.

Methods

boolSetAttenuation(double distance, AttenDistUnit unit)
voidGetAttenuation(double& distance, AttenDistUnit& unit) const
voidSetNd(double nd)
doubleGetNd() const
voidSetK(double k)
doubleGetK() const
voidSetAbbe(double abbe)
doubleGetAbbe() const
voidSetForceFresnel(bool forceFresnel)
boolGetForceFresnel() const
voidSetR2(bool use, double angle, double roughness)
voidGetR2(bool& use, double& angle, double& roughness) const
voidSetIORFile(bool use, const MString& fileName)
voidGetIORFile(bool& use, MString& fileName) const
voidSetScattering(double coefficient, double asymmetry, bool singleSided)
voidGetScattering(double& coefficient, double& asymmetry, bool& singleSided) const
voidSetThicknessRange(double thicknessMin, double thicknessMax)
voidGetThicknessRange(double& thicknessMin, double& thicknessMax) const
 Inherited methods

...

These methods do not exist in Python; SetNd is replaced by SetIOR, which takes an optional second argument specifying the imaginary part of the index of refraction (equivalent to SetK) and GetNd is replaced by GetIOR, which returns a tuple with both the real and imaginary parts of the IOR.

...

K is the imaginary part of the index of refraction. See here for details on this attribute. These methods do not exist in Python, where they are replaced by SetIOR and GetIOR (described in the SetNd documentation above).

Attribute name: iorK (AttrType_Double).

...