cPy.cPaint module#

class PPPObject[source]#

Bases: BaseClass

Paint Object
static dynamic_cast(pObject: BaseClass) PPPObject[source]#
An analogue of the dynamic_cast function from C++, it checks whether the object pObject is a PPPObject class or its descendant, and if so, returns the specified object, but of the PPPObject type.
Delete()[source]#
GetName() str[source]#
SetName(new_name: str)[source]#
GetVisible() bool[source]#
SetVisible(value: bool)[source]#
GetLocked() bool[source]#
SetLocked(value: bool)[source]#
class PaintRoom[source]#

Bases: object

Paint Room
static LoadMesh(file_name: str) bool[source]#
Load poly object for painting room from file
Returns:

True if success

Return type:

bool

static LoadColorTexture(file_name: str) bool[source]#
Load texture from file and put it to a new layer
Returns:

True if success

Return type:

bool

static ExportMesh(filename: str, fromRetopoRoom: bool = False, transformToSelectedObjectSpace: bool = False) bool[source]#
Export mesh the object from the painting room to a file
Returns:

True if success

Return type:

bool

static PPPObjectsCount() int[source]#
Get the count of paint objects in scene
Returns:

the amount

Return type:

int

static GetPPPObject(idx: int) PPPObject[source]#