cPy.cPaint module#
- class PPPObject[source]#
Bases:
BaseClassPaint Object
- class PaintRoom[source]#
Bases:
objectPaint 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 GetUVSetName(index: int) str[source]#
- Get the name of a UV set by its index.
- Parameters:
index (int) – Index of the UV set.
- Returns:
The name of the UV set.
- Return type:
str
- static RenameUVSet(index: int, newName: str)[source]#
- Rename an existing UV set.
- Parameters:
index (int) – Index of the UV set.
newName (str) – New name.
- static GetUVSetResolutionX(index: int) int[source]#
- Get the current texture resolution X for the specified UV set.
- Parameters:
index (int) – Index of the UV set.
- Returns:
width.
- Return type:
int
- static GetUVSetResolutionY(index: int) int[source]#
- Get the current texture resolution Y for the specified UV set.
- Parameters:
index (int) – Index of the UV set.
- Returns:
height.
- Return type:
int
- static ResizeUVSet(index: int, width: int, height: int) bool[source]#
- Change the texture resolution of the UV set.
- Parameters:
index (int) – Index of the UV set.
width (int) – New width.
height (int) – New height.
- Returns:
True on success.
- Return type:
bool