shotgunsoftware / tk-multi-breakdown2

A Flow Production Tracking Pipeline Toolkit app that helps you see what is out of date in your scene across multiple projects.
https://developer.shotgridsoftware.com/tk-multi-breakdown2/
Other
4 stars 10 forks source link

Feature: Actions in Breakdown #54

Closed simonDarmstadt closed 5 months ago

simonDarmstadt commented 1 year ago

Hey there,

I am working at Pixomondo and in our pipeline we "patched" the breakdown to support custom actions.

grafik

In our maya_scene_operations.py we can add custom actions by adding them as extra_attr:

refs.append(
    {
        "node_name": reference_node.name(),
        "node_type": "reference",
        "path": ref_file_path,
        "extra_data": {
            "actions": {
                LABEL_REMOVE: {
                    "function": remove_reference,
                    "force_update": True,  # Needed for v0.2.4 since it lacks update functionaltiy and we patched it in.
                },
                LABEL_SELECT: {
                    "function": select_reference_top_nodes,
                    "force_update": False,
                }
            }
        }
    }
)

My current question is: Is there already some action-support like in SG Loader planned for the breakdown2? Or is that feature something you would like for future releases? For us it would be an option to contribute to the project for pushing the official support.

Best, Simon

staceyoue commented 1 year ago

Hi @simonDarmstadt, at the moment there is nothing planned to support actions (like in Loader). I have logged a ticket for this, but also feel free to create a PR for this feature.