mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Collect comp name as context label
This commit is contained in:
parent
de1b8f0c77
commit
815f761a6d
1 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import os
|
||||
|
||||
import pyblish.api
|
||||
|
||||
from avalon import fusion
|
||||
|
|
@ -19,4 +21,8 @@ class CollectCurrentCompFusion(pyblish.api.ContextPlugin):
|
|||
|
||||
# Store path to current file
|
||||
attrs = current_comp.GetAttrs()
|
||||
context.data['currentFile'] = attrs.get("COMPS_FileName", "")
|
||||
filepath = attrs.get("COMPS_FileName", "")
|
||||
context.data['currentFile'] = filepath
|
||||
|
||||
# Labelize the context
|
||||
context.data["label"] = os.path.basename(filepath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue