Hi Glenn, thanks for posting the code! What version of Python are you running? I'm having trouble getting it run properly, but I have never really worked with Python before and I'm also trying to get it to work with the v19 Beta (probably a dumb thing to do, I know!)
It looks like i'm running python 3.10 I believe there may be issues with newer versions of python and Resolve. (not a python person by any stretch of the imagination.)
Thank you so much for the video! Unfortunately, it doesn't seem to work with v19 beta, but I'm sure I'll figure it out. The Avid markers to Resolve timeline addition is really nice as well!
Hi, thanks very much for your program it's so helpful ! I have a small question: I would like my subfolder to take the name of the file name proposed by the script, but when I enter %FileName in the subfolder it still creates a folder for me with the name of the source file and not the filename of the marker. Do you have a solution? Thanks again! :)
Hi Terry. Sorry, i was so busy trying to give credit to how i built the script, i forgot to include my final one. I'll post that in the comments shortly. Glenn
Hi Glenn, thank you for such a brilliant idea! Allow me to share my modification to the script. I added a 'Predefined path' so that each shot goes to its own folder according to marker name. Additionally I removed a sequential marker number in File name field (just works better for my naming convention). Currently I am figuring out how to define path in a more convenient way. File Subfolder would have been a good idea, but it's not supported in API. project_manager = resolve.GetProjectManager() project = project_manager.GetCurrentProject() timeline = project.GetCurrentTimeline() markers = timeline.GetMarkers() startFrame = timeline.GetStartFrame() mf = [] for frame, marker in markers.items(): if marker['color'] == "Blue": mf.append((frame, marker['name'])) mf.append((timeline.GetEndFrame(), "end")) # add end predefined_path = "/Volumes/project/VFX/_TEST/" for i in range(len(mf) - 1): project.SetRenderSettings({ "SelectAllFrames": False, "MarkIn": startFrame + mf[i][0], "MarkOut": startFrame + mf[i][0], "CustomName": mf[i][1], "TargetDir": predefined_path + mf[i][1], # Set the File subfolder to the predefined path + marker's name }) print(i) #print(predefined_path) project.AddRenderJob()
Excellent walk though. This is always such a pain to do for pulling plates. Automated happiness.
Thanks. posting the actual script I used right now in the description section as well.
This is very usefull! Thanks so much for sharing!
Thanks Terry. Posting the script in the info section as well.
Glenn
Hi Glenn, thanks for posting the code! What version of Python are you running? I'm having trouble getting it run properly, but I have never really worked with Python before and I'm also trying to get it to work with the v19 Beta (probably a dumb thing to do, I know!)
It looks like i'm running python 3.10 I believe there may be issues with newer versions of python and Resolve.
(not a python person by any stretch of the imagination.)
Thank you so much for the video! Unfortunately, it doesn't seem to work with v19 beta, but I'm sure I'll figure it out. The Avid markers to Resolve timeline addition is really nice as well!
Sorry, i avoid Beta from resolve like the plague, so i wouldn't know what it does in that version.
Hi, thanks very much for your program it's so helpful ! I have a small question: I would like my subfolder to take the name of the file name proposed by the script, but when I enter %FileName in the subfolder it still creates a folder for me with the name of the source file and not the filename of the marker. Do you have a solution? Thanks again! :)
Thanks for the comment.
As i said in the video, i am not a scripting guru, so i'm honestly not sure, and would have to do some playing and research.
Hi there, awesome info, but is there a download link for the script? Or am I just missing it?
Hi Terry. Sorry, i was so busy trying to give credit to how i built the script, i forgot to include my final one. I'll post that in the comments shortly.
Glenn
@@tvtech4688 Ok thats funny, just glad I'm not going crazy.
Hi Glenn, thank you for such a brilliant idea! Allow me to share my modification to the script. I added a 'Predefined path' so that each shot goes to its own folder according to marker name. Additionally I removed a sequential marker number in File name field (just works better for my naming convention). Currently I am figuring out how to define path in a more convenient way. File Subfolder would have been a good idea, but it's not supported in API.
project_manager = resolve.GetProjectManager()
project = project_manager.GetCurrentProject()
timeline = project.GetCurrentTimeline()
markers = timeline.GetMarkers()
startFrame = timeline.GetStartFrame()
mf = []
for frame, marker in markers.items():
if marker['color'] == "Blue":
mf.append((frame, marker['name']))
mf.append((timeline.GetEndFrame(), "end")) # add end
predefined_path = "/Volumes/project/VFX/_TEST/"
for i in range(len(mf) - 1):
project.SetRenderSettings({
"SelectAllFrames": False,
"MarkIn": startFrame + mf[i][0],
"MarkOut": startFrame + mf[i][0],
"CustomName": mf[i][1],
"TargetDir": predefined_path + mf[i][1], # Set the File subfolder to the predefined path + marker's name
})
print(i)
#print(predefined_path)
project.AddRenderJob()
Excellent! Thank you for sharing.