Feature: Override template backdrop container name#95
Conversation
| count = backdropCounts[backdropName] !== undefined ? backdropCounts[backdropName] : 1; | ||
|
|
||
| if (count > 1){ | ||
| if (!hasOverrideName && count > 1){ |
There was a problem hiding this comment.
You're right, I don't know why I over thought this. Fixed
|
This will also break logic: where it was assumed, that there won't be any other '_' delimiter but possibly at the end denoting unique ordinal number of backdrop. (Same template loaded multiple times should have different name 'harmony.templeteMain_1 |
Fixed weeks ago. |
|
Hi @kalisp I'm facing something strange: the incremental naming feature you asked me to preserve in this PR is no longer working (has it even worked?). Is it working on your side in the develop branch? Because it doesn't on mine and I cannot remember it did for sure... |
Did you restart your harmony? |
I'm really sorry but I cannot make it work 😭 Could list the steps you're following? |
|
I found the issue, I proposed a fix there #105. Will update the current PR when the fix will be merged because working code relies on it. |
|
@kalisp ready to be tested |
kalisp
left a comment
There was a problem hiding this comment.
Now it works fine.
Thanks for contribution.












Changelog Description
Add override name support for Harmony template loading (backdrop containers)
Additional review information
This allows more flexibility over how data are published and loaded. Also allows to add
{folder[name}in container name while it is not handled in core side ynput/ayon-core#1213Testing notes:
TemplateLoadersettingoverride_nameto a bracketed template (e.g.{folder[name]}_{product[name]})tplrepresentation and verify the loaded backdrop is renamed accordingly