Track copy pasted templates - #119
Conversation
|
Not completely sure what this PR actually solves. |
I just added the additional review info. 👍 |
|
So you are bypassing/stepping over What is actual use case, why would artist like to use this one? (Your artists do have multiple Harmony apps open?) |
|
Yes this is how artists are gonna work. |
|
Why they dont use Loader in the other scene? Does this persist metadata about loaded/copied over containers? |
|
Similar to @kalisp I'm quite confused by this PR. Could you describe your exact use case? What template? Why are these being copy-pasted? and where are they copied from? And if just pasted in - what are we actually tracking from AYON's side? |
In Harmony, we load different assets (templates) through the Ayon Loader. These assets are visible and tracked in the Manage panel. When working on a new scene that is very similar to a previous one, we need to copy assets from the source scene to avoid redundant loads and preserve work already done on them. |
|
I know nothing of Harmony integration - but isn't it that you should be copying then what is containerized (which I think would be the group node?) |
|
Maybe @Tilix4 could chime in how they are working with Harmony and if he has any comments for this PR. |
In fact a template is containerized into a backdrop, that's why this PR proposes to add a node holding container metadata
I'm not sure you're aware @YuanQI295 works for Normaal, so my insight isn't really neutral. This PR comes from a need on our side, sometimes it is more efficient to copy/paste directly from an harmony to another because you want to use work from another scene, but that work may not be generic enough to put it into a bank. Having the possibility to paste and keep Ayon's tracking is very useful. |
|
So these backdrops are not copy-pastable? Shouldn't the means of copy-pasting that be the thing that makes you maintain the containerization? I'd love to preserve containerization - it's just that the note hack feels so... hacky. Now suddenly we're containerizing in two ways, on a backdrop AND some note? |
I'd love that, unfortunately Harmony is very restricted and containers information are stored into scene's metadata. They are not attached to the backdrop itself.
No, the point is it will look into the scene to find any note node holding container information. If it finds one, it adds the container to the scene's metadata to consider the newly pasted backdrop as a container. But the truth remains the regular way, attached to the scene. We could choose to completely switch the way it deals with containers, using the note in backdrops as container truth, which would be better IMO. But it adds more legacy to deal with. |
I see - that explains things. Got to love software. :)
|
t Merge branch 'track_copy-pasted_templates' of https://github.com/YuanQI295/ayon-harmony into track_copy-pasted_templates :wq :wq :wq :wq he commit.
|
@YuanQI295 pretty sure you pushed some commits unintentionally and they should not be there 🗡️ |
It was unintentional, just cleaned it up. Currently working on tracking copy counts for duplicate templates. |


Description
Enables users of the Ayon Harmony addon to copy and paste templates between scenes, with those templates automatically tracked through the Scene Inventory (Manage button).
Additional review information
The tracking of those templates between scenes is enabled by the writing of metadata in a note node in the first scene, and the reading of that node in the second scene. The node is created in the template backdrop when the template is loaded. The reading happens at the opening of the Scene Inventory (in the harmony scene that you pasted into).
Testing
Managein the Ayon menu.