tlc.common.pipeline.DCCProject
- class tlc.common.pipeline.DCCProject(projID, path)
Bases:
object
DCC Project class. This class will represent a DCC project inside the global project folder. This is currently a Maya project, but it is named DCCProject as we may use a different software in the future.
- __init__(projID, path)
Constructor
- Parameters:
projID (str) – Project ID and project folder name
path (str) – Path where the project folder is located
Methods
__init__
(projID, path)Constructor
getAssets
([asset_type, include_library])Get the assets list int the project
Return assets absolute path "normalized" (using UNIX slashes, not Windows backslashes)
Return sourceimages absolute path "normalized" (using UNIX slashes, not Windows backslashes)
Attributes
Path where the project is located
Project folder name (project ID)
- getAssets(asset_type='', include_library=False)
Get the assets list int the project
- Parameters:
asset_type (str, optional) – Asset type key. All assets types will be search if this argument is left empty. Defaults to “”.
include_library (bool, optional) – Include library assets in search. Defaults to False.
- Returns:
List of Asset objects found in the project
- Return type:
Asset[]
- getAssetsPath()
Return assets absolute path “normalized” (using UNIX slashes, not Windows backslashes)
- Returns:
Path to assets directory in this project
- Return type:
str
- getSourceImagesPath()
Return sourceimages absolute path “normalized” (using UNIX slashes, not Windows backslashes)
- Returns:
Path to sourceimages directory in this project
- Return type:
str
- path
Path where the project is located
- projID
Project folder name (project ID)