tik_manager4.dcc.krita.main =========================== .. py:module:: tik_manager4.dcc.krita.main .. autoapi-nested-parse:: Main module for Krita integration. Attributes ---------- .. autoapisummary:: tik_manager4.dcc.krita.main.LOG Classes ------- .. autoapisummary:: tik_manager4.dcc.krita.main.Dcc Module Contents --------------- .. py:class:: Dcc Bases: :py:obj:`tik_manager4.dcc.main_core.MainCore` Krita DCC class .. py:method:: generate_thumbnail(file_path: str, width: int, height: int) -> str :staticmethod: Generates a thumbnail for the current frame. Args: file_path: (str) Output file path for the thumbnail. width: (int) Thumbnail width. height: (int) Thumbnail height. Returns: (str) File path of the generated thumbnail. .. py:method:: get_dcc_version() -> str :staticmethod: Gets the current version of Krita. Returns: (str) Krita version. .. py:method:: get_main_window() :staticmethod: Get the main window. .. py:method:: get_scene_file() -> str :staticmethod: Gets the current scene file path. Returns: (str) Scene file path. .. py:method:: launch(tik_main_object, window_name=None, dont_show=False) Launch Tik Main UI with DCC specific way. .. py:method:: open(file_path: str, force: bool = True) -> None :staticmethod: Opens the given file path. Args: file_path: (str) File path to open. force: (bool) If True, unsaved changes on the current scene will be lost. Returns: None .. py:method:: save_as(file_path: str) -> str :staticmethod: Saves the scene to the given path. Args: file_path: (str) File path that will be written. Returns: (str) File path. .. py:method:: save_scene() -> None :staticmethod: Saves the current scene. .. py:attribute:: custom_launcher :value: True .. py:attribute:: extensions .. py:attribute:: extracts .. py:attribute:: formats :value: ['.kra'] .. py:attribute:: ingests .. py:attribute:: name :value: 'Krita' .. py:attribute:: preview_enabled :value: False .. py:data:: LOG