mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Add assets tag bin
This commit is contained in:
parent
d864fb0cfa
commit
c331a4c8f6
1 changed files with 17 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ def add_tags_from_presets():
|
|||
for task in tasks:
|
||||
nks_pres_tags["[Tasks]"][task["name"]] = {
|
||||
"editable": "1",
|
||||
"note": "Tag note",
|
||||
"note": "",
|
||||
"icon": {
|
||||
"path": ""
|
||||
},
|
||||
|
|
@ -77,6 +77,22 @@ def add_tags_from_presets():
|
|||
}
|
||||
}
|
||||
|
||||
# Get project assets. Currently Ftrack specific to differentiate between
|
||||
# asset builds and shots.
|
||||
nks_pres_tags["[Assets]"] = {}
|
||||
for asset in io.find({"type": "asset"}):
|
||||
if asset["data"]["entityType"] == "AssetBuild":
|
||||
nks_pres_tags["[Assets]"][asset["name"]] = {
|
||||
"editable": "1",
|
||||
"note": "",
|
||||
"icon": {
|
||||
"path": ""
|
||||
},
|
||||
"metadata": {
|
||||
"family": "asset"
|
||||
}
|
||||
}
|
||||
|
||||
# get project and root bin object
|
||||
project = hiero.core.projects()[-1]
|
||||
root_bin = project.tagsBin()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue