Feb-02-2021, 05:11 PM
you read all the file paths as one big string inside a list. It looks all paths are on one line in the text file
not tested but something like
not tested but something like
with open(f"/Volumes/audio/TRANSCRIBE/SearchPhrases/{searchPhrase}.txt") as f: clipListRead = [item.strip() for item in f.readline().split(',') if item.strip()] print('cliplistRead:', clipListRead) clips = resolve.GetMediaStorage().AddItemsToMediaPool(clipListRead)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs