artellapipe.core.assetsviewer module

Module that contains widget implementation for asset viewer

class artellapipe.core.assetsviewer.AssetsViewer(project, column_count=4, parent=None)

Bases: tpQtLib.widgets.grid.GridWidget, object

ASSET_WIDGET_CLASS

alias of artellapipe.core.asset.ArtellaAssetWidget

add_asset(asset_widget)

Adds given asset to viewer :param asset_widget: ArtellaAssetWidget

assetAdded = <PySide2.QtCore.Signal object>
assetSynced = <PySide2.QtCore.Signal object>
change_category(category=None)

Changes the category assets that are being showed by the viewer :param category: str

clear_assets()

Clear all the assets of the asset viewer

get_assets(category=None)

Returns a list with all the assets of the given categories; All assets will be returned if not category is given :param category: str :return: list(ArtellaAssetWidget)

staticMetaObject = <PySide2.QtCore.QMetaObject object>
update_assets()

Updates the list of assets in the asset viewer :param async: bool, Whether the update operation should be done asynchronously or not

class artellapipe.core.assetsviewer.CategorizedAssetViewer(project, column_count=4, parent=None)

Bases: tpQtLib.core.base.BaseWidget, object

ASSETS_VIEWER_CLASS

alias of AssetsViewer

staticMetaObject = <PySide2.QtCore.QMetaObject object>
ui()

Function that sets up the ui of the widget Override it on new widgets (but always call super)

update_asset_categories(asset_categories)

Updates current categories with the given ones :param asset_categories: list(str)