Resynch entity batch
import json
import subprocess
import base64
import pipelineLib
api = pipelineLib.instance()
shots = api.find(
"Shot",
[
["project", "is", {"id": 402, "type": "Project"}],
],
["id", "code"]
)
for shot in shots:
cmd = f"rez env pipelineTools-dev -- python -m synchEntity --id {shot['id']} --type shot"
subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)