First off, apologies for this being a very probably lvl1 question. But ive just started playing around with python and shotgun's api tool. Currently im able to get files sent over via a script from our storage into a specific [Version] but i notice i have send it using the 'id' field for that 'Version'.
sg.upload("Version", 35052, AbsPath, field_name= "sg_uploaded_movie", display_name="Latest QT.mov")
Essentially what im having trouble getting my head around is how to tell the api where to send the files based on their names. So id i was to do a split operation on a file named [AAA_0020_v0002.mov] how would i go about telling that the destination is based off the split id the shot being (0020) and version being (v0002). It appears i cant do much without the 'id' field it just throws and error at me.
Thank you for your help :)