I’m trying to Open the shotgun panel with current entity context and show the “Notes” tab when creating a new file in nuke.
so, I’ve added the following code in hooks/tk-multi-workfiles2/scene_operation_tk-nuke.py
when parent_action == "new_file" and operation == "prepare_new"
panel_app = engine.apps["tk-multi-shotgunpanel"]
# Open the Shotgrid panel on current entity as dialog
# Select notes tab
tab_index = panel_app._current_dialog.ENTITY_TABS.index(
But the shotgun panel takes quite a while to refresh when launched from the shotgrid browser/file manager (more that it takes when launched without the shotgrid browser with the same code) and also I’ve some random crashes when I change the tab index.
I’ve tested with the latest versions of the shotgun panel and framework widgets.