Source code for cPy.cPaint

from __future__ import annotations
import cPy.cCore
#cPaint
import Coat_CPP
import typing
from typing import ClassVar
from typing import TypeAlias
from typing import Any
from enum import Enum


[docs] class PPPObject(cPy.cCore.BaseClass): ''' Paint Object '''
[docs] @staticmethod def dynamic_cast(pObject : cPy.cCore.BaseClass)->PPPObject: ''' 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. ''' pass # cpp source
[docs] def Delete(self): pass # cpp source
[docs] def GetName(self) -> str: pass # cpp source
[docs] def SetName(self, new_name: str): pass # cpp source
[docs] def GetVisible(self) -> bool: pass # cpp source
[docs] def SetVisible(self, value: bool): pass # cpp source
[docs] def GetLocked(self) -> bool: pass # cpp source
[docs] def SetLocked(self, value: bool): pass # cpp source
[docs] class PaintRoom(): ''' Paint Room '''
[docs] @staticmethod def LoadMesh(file_name: str) -> bool: ''' Load poly object for painting room from file Returns: bool: True if success ''' pass # cpp source
[docs] @staticmethod def LoadColorTexture(file_name: str) -> bool: ''' Load texture from file and put it to a new layer Returns: bool: True if success ''' pass # cpp source
[docs] @staticmethod def ExportMesh(filename: str, fromRetopoRoom: bool = False, transformToSelectedObjectSpace: bool = False) -> bool: ''' Export mesh the object from the painting room to a file Returns: bool: True if success ''' pass # cpp source
[docs] @staticmethod def PPPObjectsCount() -> int: ''' Get the count of paint objects in scene Returns: int: the amount ''' pass # cpp source
[docs] @staticmethod def GetPPPObject(idx: int) -> PPPObject: pass # cpp source