artellapipe.core.abstract module

Module that contains abstract definitions for some classes for Artella Pipeline

class artellapipe.core.abstract.AbstractAsset(project, asset_data, category=None, node=None)

Bases: object

property data

Returns asset data :return: object

get_category(**kwargs)

Returns the category of the asset :return: str

get_file(**kwargs)

Returns file path of the given file type and status :param file_type: str :param status: str :param extension: str :param fix_path: bool

get_name(**kwargs)

Returns the name of the asset :return: str

get_path(**kwargs)

Returns the path of the asset :return: str

get_relative_path()

Returns path of the asset relative to the Artella project :return: str

import_file(file_type, status, extension=None)

Imports asset file with the given type and status (if exists) :param file_type: str :param status: str :param extension: str

import_file_by_extension(extension=None)

Imports asset file with the given extension :param extension: str

property node

Returns DCC node linked to this asset :return: str

open_file(file_type, status, extension=None)

Opens asset file with the given type and status (if exists) :param file_type: str :param status: str :param extension: str

reference_file(file_type, status, extension=None)

References asset file with the given type and status (if exists) :param file_type: str :param status: str :param extension: str

reference_file_by_extension(extension=None)

References asset file with the given extension :param extension: str