sg.upload("Version"...) in batch?

Is there a way to use the same functionality of sg.upload(“Version”…) for thumbnail transcoding in a sg.batch() call?

I am building a nested loop that will create several new Versions, which need to also have thumbnails uploaded to be transcoded. I do not want to completely take ownership the transcoding process DIY as that is handled fine with a simple sg.upload() call. But, since I am processing the creation of my Version(s) with a loop that is building up the batch data, I also need to create the thumbnail inside this loop. But, the batch has not run yet, so the Version(s) do not exist to upload to the sg_uploaded_movie field. If I wait and create the thumbnail outside the loop, I have lost the convenience to the Version info.

2 Likes