ayon-core icon indicating copy to clipboard operation
ayon-core copied to clipboard

Projects imported from OpenPype are missing folder and product keys to resolve Ayon templates

Open jrsndl opened this issue 7 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior:

Projects migrated from OpenPype include obsolete project and folder keys. AYON is using folder[name] and product[name|type] instead. The compatibility was lost at core version 1.5.3.

Hosts like Maya or Resolve now can't load products.

Expected Behavior:

Projects migrated from OpenPype should still work in Ayon.

Version

1.5.3

What platform you are running on?

Windows

Steps To Reproduce:

  1. Load previously published product in Maya or Resolve

Are there any labels you wish to add?

  • [x] I have added the relevant labels to the bug report.

Relevant log output:

Traceback (most recent call last):
  File "C:\Users\MVillaris\AppData\Local\Ynput\AYON\addons\core_1.5.3\ayon_core\tools\loader\models\actions.py", line 747, in _load_representations_by_loader
    load_with_repre_context(
  File "C:\Users\MVillaris\AppData\Local\Ynput\AYON\addons\core_1.5.3\ayon_core\pipeline\load\utils.py", line 324, in load_with_repre_context
    return loader.load(repre_context, name, namespace, options)
  File "C:\Users\MVillaris\AppData\Local\Ynput\AYON\addons\core_1.5.3\ayon_core\pipeline\load\plugins.py", line 420, in wrapped_method
    result = original_method(self, *args, **kwargs)
  File "C:\Users\MVillaris\AppData\Local\Ynput\AYON\addons\maya_0.4.12\ayon_maya\api\plugin.py", line 783, in load
    path = self.filepath_from_context(context)
  File "C:\Users\MVillaris\AppData\Local\Ynput\AYON\addons\maya_0.4.12\ayon_maya\api\plugin.py", line 686, in filepath_from_context
    return super().filepath_from_context(context)
  File "C:\Users\MVillaris\AppData\Local\Ynput\AYON\addons\core_1.5.3\ayon_core\pipeline\load\plugins.py", line 209, in filepath_from_context
    return get_representation_path_from_context(context)
  File "C:\Users\MVillaris\AppData\Local\Ynput\AYON\addons\core_1.5.3\ayon_core\pipeline\load\utils.py", line 655, in get_representation_path_from_context
    return get_representation_path(representation, root)
  File "C:\Users\MVillaris\AppData\Local\Ynput\AYON\addons\core_1.5.3\ayon_core\pipeline\load\utils.py", line 727, in get_representation_path
    return get_representation_path_with_anatomy(
  File "C:\Users\MVillaris\AppData\Local\Ynput\AYON\addons\core_1.5.3\ayon_core\pipeline\load\utils.py", line 698, in get_representation_path_with_anatomy
    raise InvalidRepresentationContext((
ayon_core.pipeline.load.utils.InvalidRepresentationContext: Couldn't resolve representation template with available data. Reason: Template "{root[work]}\{project[name]}\{hierarchy}\{folder[name]}\publish\{product[type]}\{product[name]}\v{version:0>3}\RAD_{folder[name]}_{product[name]}_v{version:0>3}<_{output}><.{frame:0>4}><_{udim}><_{colorspace}>.{ext}" is unsolved. Missing keys: "folder, product".

Additional context:

No response

jrsndl avatar Oct 02 '25 08:10 jrsndl