Closed darkvertex closed 5 years ago
It seems to be related to an intentional feature:
The instances are displayed in the order they are processed, and it's a feature of Pyblish to be able to arrange (and re-arrange) the instance order inside the context.
Quote from here
Okay! If it's intentional, then I'll shuffle around my plugins to accommodate. No worries.
A bit late on this, but you can also rearrange the instances based their category, with a plugin at the end of the collection stage.
How would that work? How does one reorder an Instance after creation?
On Mon, Nov 19, 2018, 8:19 AM Toke Jepsen notifications@github.com wrote:
A bit late on this, but you can also rearrange the instances based their category, with a plugin at the end of the collection stage.
— You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/pyblish/pyblish-qml/issues/310#issuecomment-439889889, or mute the thread https://github.com/notifications/unsubscribe-auth/AA5dE0DfjQ0aere46SR2KAG2qTis-3ZTks5uwq_tgaJpZM4YLFnj .
This is an old example for sorting the instances by family and name, but you can probably adapt it for category:
I noticed that there seems to be a bug where a "category" section may get recreated if not continuously creating instances under that same category.
In other words, make some for category A, make some B, then make some for A again and those will have a new group in the UI despite one already existing from before.
Here's some dummy collectors that show you the problem:
Gives me this: Notice how "Fries" exists twice. I'd have expected it to reuse the first group.