Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Hiero | Global: editorial with folder path#5829

Merged
iLLiCiTiT merged 12 commits intofeature/OP-7176_Use-folder-path-as-unique-identifierfrom
feature/OP-7190_Use-folder-path-as-identifier-in-editorial
Nov 20, 2023
Merged

Hiero | Global: editorial with folder path#5829
iLLiCiTiT merged 12 commits intofeature/OP-7176_Use-folder-path-as-unique-identifierfrom
feature/OP-7190_Use-folder-path-as-identifier-in-editorial

Conversation

@jakubjezek001
Copy link
Copy Markdown
Member

Changelog Description

Support for folder path unique identifier in editorial and particularly in Hiero. This allows multiple shots with the same names in different sequences to be accepted during publishing.

Additional info

Based on #5817 and expands it towards Editorial publishing.

Testing notes:

  1. start with this step
  2. follow this step

…nto feature/OP-7190_Use-folder-path-as-identifier-in-editorial
- some minor typos fixes
- modules sorting
@ynbot
Copy link
Copy Markdown
Contributor

ynbot commented Oct 27, 2023

@ynbot
Copy link
Copy Markdown
Contributor

ynbot commented Oct 27, 2023

@ynbot ynbot added type: feature Larger, user affecting changes and completely new things size/XXL Denotes a PR changes 2500+ lines, ignoring general files host: 3dsmax Autodesk 3dsmax host: Hiero host: Houdini host: Nuke host: UE module: Deadline AWS Deadline related features labels Oct 27, 2023
…nto feature/OP-7190_Use-folder-path-as-identifier-in-editorial
@ynbot ynbot removed host: Houdini host: 3dsmax Autodesk 3dsmax host: UE host: Nuke module: Deadline AWS Deadline related features labels Oct 27, 2023
@jakubjezek001 jakubjezek001 removed the size/XXL Denotes a PR changes 2500+ lines, ignoring general files label Oct 27, 2023
@jakubjezek001
Copy link
Copy Markdown
Member Author

jakubjezek001 commented Oct 27, 2023

Publishing is crashing on openpype\plugins\publish\extract_hierarchy_to_ayon.py

Logging:
line 82:

Hierarchy_context: {"entity_type": "Project", "name": "SyncSketchTesting", "tasks": [], "attributes": {}, "children": [{"entity_type": "Folder", "name": "shots", "children": [{"entity_type": "Sequence", "name": "sq002", "children": [{"inputs": [], "entity_type": "Shot", "comments": [], "name": "/shots/sq002/sh010", "children": [], "tasks": [{"type": "Compositing", "name": "comp"}], "attributes": {"handleStart": 0, "handleEnd": 8, "frameStart": 1001, "frameEnd": 1051, "clipIn": 76, "clipOut": 126, "fps": 23.976024627685547, "resolutionWidth": 1920, "resolutionHeight": 1080, "pixelAspect": 1}}], "tasks": [], "attributes": {}}, {"entity_type": "Sequence", "name": "sq001", "children": [{"inputs": [], "entity_type": "Shot", "comments": [], "name": "/shots/sq001/sh010", "children": [], "tasks": [{"type": "Compositing", "name": "comp"}], "attributes": {"handleStart": 4, "handleEnd": 4, "frameStart": 1001, "frameEnd": 1052, "clipIn": 24, "clipOut": 75, "fps": 23.976024627685547, "resolutionWidth": 1920, "resolutionHeight": 1080, "pixelAspect": 1}}], "tasks": [], "attributes": {}}], "tasks": [], "attributes": {}}]}

line 65:

Traceback: 
Traceback (most recent call last):
  File "C:\Users\jakubjezek001\AppData\Local\Ynput\AYON\dependency_packages\ayon_2308181924_windows.zip\dependencies\pyblish\plugin.py", line 527, in __explicit_process
    runner(*args)
  File "C:\CODE\__PYPE\ayon-openpype\openpype\plugins\publish\extract_hierarchy_to_ayon.py", line 40, in process
  File "C:\CODE\__PYPE\ayon-openpype\openpype\plugins\publish\extract_hierarchy_to_ayon.py", line 65, in _fill_instance_entities
KeyError: '/shots/sq001/sh010'

Following is set of instances I am publishing:
image

@ynput ynput deleted a comment from ynbot Oct 27, 2023
@ynput ynput deleted a comment from ynbot Oct 27, 2023
@ynput ynput deleted a comment from ynbot Oct 27, 2023
@ynput ynput deleted a comment from ynbot Oct 27, 2023
@jakubjezek001
Copy link
Copy Markdown
Member Author

Here is also strange thing happening on server. Althought the publishing was not successfull from my previous post here following was created on server. But as you can see the name of folder is now path and not simply sh010
image

@jakubjezek001
Copy link
Copy Markdown
Member Author

issue with hierarchy from comments #5829 (comment) and #5829 (comment)
fixed via d9a35e7

@ynput ynput deleted a comment from ynbot Oct 27, 2023
@ynput ynput deleted a comment from ynbot Oct 27, 2023
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
…nto feature/OP-7190_Use-folder-path-as-identifier-in-editorial
Copy link
Copy Markdown
Member

@antirotor antirotor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't tested, otherwise it looks good

self._convert_to_tag_data()
tag_hierarchy_data = self._convert_to_tag_data()

self.tag_data.update(tag_hierarchy_data)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a naive note about self.tag_data - since it is updated with the content of tag_hierarchy_data, shouldn't it be used late on instead of it? Also, this whole method is returning tag_hierarchy_data but the instance property tag_data already has all of it but is different?

…nto feature/OP-7190_Use-folder-path-as-identifier-in-editorial
…nto feature/OP-7190_Use-folder-path-as-identifier-in-editorial
…nto feature/OP-7190_Use-folder-path-as-identifier-in-editorial
Copy link
Copy Markdown
Member

@iLLiCiTiT iLLiCiTiT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion, otherwise code looks ok. But I don't know how to test.

@mkolar
Copy link
Copy Markdown
Member

mkolar commented Nov 20, 2023

Let's merge this and do a final pass in the target branch

@iLLiCiTiT iLLiCiTiT merged commit 477bc61 into feature/OP-7176_Use-folder-path-as-unique-identifier Nov 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

host: Hiero type: feature Larger, user affecting changes and completely new things

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants