AYON: Use folder path as unique identifier#5817
Conversation
…ath in AYON mode and asset name in openpype
|
Task linked: OP-7176 Use folder path as unique identifier |
1 similar comment
|
Task linked: OP-7176 Use folder path as unique identifier |
|
Creators don't work in Blender after last merge. Need to change this: OpenPype/openpype/hosts/blender/api/plugin.py Line 228 in 6fece8f to: |
Should be fixed with this PR #5887
Should be fixed.
|
|
In Blender, I'm getting this error when loading a layout with a rig: It happens because when loading a layout with a rig, it will create an animation instance for each rig: But when using the OpenPype/openpype/pipeline/create/context.py Lines 2023 to 2028 in 79c0799 It's missing |
Fixed. |
|
After latest fix, everything seems to be working fine in Blender :) |
LiborBatek
left a comment
There was a problem hiding this comment.
I have made tests in SubstancePainter and all working fine with paths as unique identifier.
All good.
* hiero: adding folderPath to creator - some minor typos fixes - modules sorting * Hiero: adding asset_name and processing folderPath - refactor labels * fixing extract hierarchy to ayon * hound * Update openpype/hosts/hiero/api/plugin.py Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> * simplify expression --------- Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
…th-as-identifier-in-traypublisher-editorial TrayPublisher: editorial with folder path
…s-identifier-Resolve-editorial AYON | Resolve: support for folder path
…ial' into feature/OP-7176_Use-folder-path-as-unique-identifier

Changelog Description
Use folder path instead of asset name as unique identifier, with OpenPype compatibility.
Additional info
Goal of this PR is to support duplicated folder names in a project for AYON mode. How it works? All places that have asset name as "unique identifier" and not as "name" value are using folder path now. Some places do/did use the value for other purposes, all of those places must use different approach.
What it affects
IMPORTANT FOR DEVELOPERS
get_current_asset_namereturns path in AYON modeos.environ["AVALON_ASSET"]andlegacy_io.Session["AVALON_ASSET"]contains path in AYON modecontext.data["asset"]andinstance.data["asset"]contains path in AYON modeget_template_data_with_names) expect path instead of name in AYON mode"folderPath"instead of"asset"openpype.clientfunctions expecting asset name are can handle folder path in AYON mode > the functions still can find by nameget_assetsget_archived_assetsget_asset_by_nameget_last_version_by_subset_nameTODOs
openpype/hosts/harmony/plugins/load/load_template.pyline 55 > There is passed asset name but I don't know what forExtractUnrealSkeletalMeshFbxplugin in Maya which is using asset name and not sure for whatCollectRenderplugin (different PR to resolve [In progress])CreateHDAhas one occation where it cannot work with current implementationTesting notes:
Folder path have to start with slash in on AYON server
Allow to create duplicated names on WebUI
Testing
a) Go to your ayon-docker repository.
b) Run
./manage.ps1 dbshellormake dbshellc) Execute
DROP INDEX project_{project name}.folder_unique_name;where{project name}is replaced by name of your projectTry to use all creators and publish them, and validate the output ended up at correct places.
{asset}or{folder[name]}is NOT filled with path.Validate all tools > visual aspects.
Report any issues (check if the issue was reported first).
open scene with created instances before this PR -> what happens in Publisher
Hosts
Flame @jakubjezek001Won't be converted at this point.Harmony @kalispWill be dealt with in own addon.