Opening Screening Room Browser with project, shot context programmatically

Hello,
We’re currently using RV version 2022.3.1, and have an existing tool that already opens the Screening Room Browser (aka shotgrid_review_app) via a Mu snippet that is passed at launch.

Once done however, one has to manually and tediously navigate to select project, shot, etc…

We’d like to pass project & shot arguments to the launch action (or shortly thereafter) to eliminate the need to manually find and select the right shot.

We’ve been looking at ‘shotgrid_review_app.mu’ to try to see how to do this but having some difficultly in finding a working method.

Has anyone ever tried such a thing and/or could offer any advice or insight about how to do this whether from Mu or Python.

Thank you very much,

Hello ! Given the entity type (shot, project, etc.) and the shotgrid ID, we open the browser at the right page using this:

import rv

entity_type = "Project"
id = 1111
sgCmd = ('shotgrid_review_app.theMode().internalLaunchTimeline([(string,string)]{("entity_type","%s"),("entity_id","%s")});' % (entity_type, id))
rv.commands.eval(sgCmd)