Hey, I have a simple code where I query ShotGrid for paths to shot versions and open them in RV using Python, here’s a snippet:
# offset value for edit reference offset = int((sg_shot['sg_handles'])) # print offset # using rvpush.exe to create an RV session rvpushpath = r"C:\Program Files\Shotgun\RV-7.2.6\bin\rvpush.exe" subprocess.call([rvpushpath, 'merge', version_path]) # Needed for RV to establish a session or else duplicate sessions will be created time.sleep(5) subprocess.call([rvpushpath, 'merge', edit_path, '-ro', offset]) subprocess.call([rvpushpath, 'merge', prev_path])
So while RV opens the paths provided in the same RV session, additional arguments such as the ‘-ro’ doesn’t work…
Am I doing this wrong? Please Help!