IC8 Python API:RLPy RIStdMaterial
From Reallusion Wiki!
Contents
- 1 Description
- 2 Constructor & Destructor
- 3 Member Functions
- 3.1 AddAmbientKey (self, kKey, kColor)
- 3.2 AddDiffuseKey (self, kKey, kColor)
- 3.3 GetAmbientColor (self)
- 3.4 GetDiffuseColor (self)
- 3.5 GetID (self)
- 3.6 GetImage (self, eChannel)
- 3.7 GetName (self)
- 3.8 IsUseSRGB (self, eChannel)
- 3.9 SetImage (self, strImage, eChannel)
- 3.10 SetUseSRGB (self, eChannel, bSet)
- 4 Properties
Description
This class provides access to a standard material assigned to a scene object.
Constructor & Destructor
__init__ (self, *args, **kwargs)
Initializes a new ri std material instance.
Parameters
- args
- kwargs
Member Functions
AddAmbientKey (self, kKey, kColor)
Adds an ambient color key.
Parameters
- kKey
- kColor
AddDiffuseKey (self, kKey, kColor)
Adds a diffuse color key.
Parameters
- kKey
- kColor
GetAmbientColor (self)
Gets ambient color.
GetDiffuseColor (self)
Gets diffuse color.
GetID (self)
Gets unique id of the material.
GetImage (self, eChannel)
Gets material image from channel.
Parameters
- eChannel
GetName (self)
Returns the name of this standard material.
IsUseSRGB (self, eChannel)
Gets Use sRGB of the channel.
Parameters
- eChannel
SetImage (self, strImage, eChannel)
Sets material image to channel.
Parameters
- strImage
- eChannel
SetUseSRGB (self, eChannel, bSet)
Sets Use sRGB of the channel.
Parameters
- eChannel
- bSet
Properties
thisown
Indicates whether this SWIG proxy owns the underlying C++ object.