ynput / ayon-core

Apache License 2.0
31 stars 36 forks source link

Loader: Configure "default groups" in the Loader #828

Open BigRoy opened 2 years ago

BigRoy commented 2 years ago

Is your feature request related to a problem? Please describe.

In the Loader you can click CTRL+G to create a custom grouping for the selected subsets. In Avalon you could define custom groups that appear by default in the create group popup, in the form of adding this to project[config] in the database:

        "groups" : [ 
            {
                "name" : "Deprecated",
                "icon" : "trash",
                "color" : "grey"
            }
        ],

OpenPype does not have any tools in place to add these nor customize this.

Describe the solution you'd like

The OpenPype Admin Settings should allow to define these per project and make sure the tools can pick those up.

Describe alternatives you've considered

Adding the data directly into the database, but I rather don't want to.

Additional Context

The custom groups would appear when clicking on the button to the right which can show with a custom icon and will show additional to the Groups existing on the currently selected asset's subsets.

OpenPype without default groups defined: afbeelding

Avalon with default groups defined: afbeelding

We used this previously to easily mark soms subsets as "dont load these' in the Loader.

[cuID:OP-2627]

BigRoy commented 2 years ago

@mkolar what are your thoughts on this? Also do you know who could provide best info of how to best implement this?

BigRoy commented 2 years ago

Just to add a note to this.

Previously we also used this "Deprecated" default group to notify an Artist that if they currently had something loaded in the scene that is in the deprecated subset group they would get a "deprecation warning" pop-up on scene open, similar to "you have outdated scene content".

Also the Scene Inventory allowed to show deprecated assets in a different color to also show that it was highlighted. The "tooltip" when hovering over the asset in the Scene Inventory would also highlight what the color meant.

Is there any similar feature in OpenPype currently? @mkolar Do you happen to know?

mkolar commented 2 years ago

I completely missed this issue. I agree that we should add the functionality, albeit, I'd make it a bit smarter and give option to change the defaults on some criteria (maybe with profile filters).

Regarding the deprecated group, we'd like to solve this in v4 with proper statuses instead.