mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
use folder path in AYON mode
This commit is contained in:
parent
6fece8f6ea
commit
4cd7d72dce
1 changed files with 8 additions and 3 deletions
|
|
@ -13,6 +13,7 @@ from collections import OrderedDict
|
|||
import nuke
|
||||
from qtpy import QtCore, QtWidgets
|
||||
|
||||
from openpype import AYON_SERVER_ENABLED
|
||||
from openpype.client import (
|
||||
get_project,
|
||||
get_asset_by_name,
|
||||
|
|
@ -1107,7 +1108,9 @@ def format_anatomy(data):
|
|||
Return:
|
||||
path (str)
|
||||
'''
|
||||
anatomy = Anatomy()
|
||||
|
||||
project_name = get_current_project_name()
|
||||
anatomy = Anatomy(project_name)
|
||||
log.debug("__ anatomy.templates: {}".format(anatomy.templates))
|
||||
|
||||
padding = None
|
||||
|
|
@ -1125,8 +1128,10 @@ def format_anatomy(data):
|
|||
file = script_name()
|
||||
data["version"] = get_version_from_path(file)
|
||||
|
||||
project_name = anatomy.project_name
|
||||
asset_name = data["asset"]
|
||||
if AYON_SERVER_ENABLED:
|
||||
asset_name = data["folderPath"]
|
||||
else:
|
||||
asset_name = data["asset"]
|
||||
task_name = data["task"]
|
||||
host_name = get_current_host_name()
|
||||
context_data = get_template_data_with_names(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue