IC8 Python API:RLPy RIStdMaterial

From Reallusion Wiki!
Jump to: navigation, search

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.