Export to matching folder structure

Discussion regarding all scripting related questions
Please DO NOT post to this thread anything that is not directly related to scripting of Capture One.

Export to matching folder structure

Postby Strathglass » Tue Apr 14, 2020 4:04 am

I'd like to export an entire folder hierarchy from Capture One.
I want the output file structure to mimic the current folder structure in Capture One (but in a different root folder).
Any tips or pointers on the best way to do this?

I've only done minimal scripting, so tips on exporting appreciated.
I need a way to select all images under a certain root folder with a certain keyword: these will be the images to export.

I thought the script doesn't need to do the work to mimic the structure on the output side:
as long as I can set an IPTC field with the source file full path name, then I could do the rest of the work outside of Capture One (e.g. in a Perl script I could read the IPTC field with the source folder name and parse that to get a different root location and move the exported file there).
User avatar
Strathglass
 
Posts: 16
Joined: Fri Oct 27, 2017 3:46 am
Location: Ottawa

Re: Export to matching folder structure

Postby Jim_DK » Wed Apr 15, 2020 12:12 pm

Keywords are not available to tokens, but the other IPTC fields are: so you can probably do this to a large degree using folder tokens, without the need for Scripting.

https://learn.captureone.com/blog-posts/how-to-automate-your-workflow-with-tokens/

Read up on that, and let me know if it helps.
Jim_DK
Crew
Crew
 
Posts: 673
Joined: Thu Dec 03, 2009 10:00 pm

Re: Export to matching folder structure

Postby Strathglass » Thu Apr 16, 2020 3:53 am

Thanks! This can probably do what I want with some work, since I only need a couple folder levels.

But ideally I could generate outputs in subfolders based on the folder structure of source, however the current functionality you point out only lets you take the terminal folder name and use that, not use the full path (or at least something more than just the terminal folder name). Maybe more flexibility along these lines in the future!
User avatar
Strathglass
 
Posts: 16
Joined: Fri Oct 27, 2017 3:46 am
Location: Ottawa

Re: Export to matching folder structure

Postby Jim_DK » Thu Apr 16, 2020 8:00 am

If you have a session you can use [Session Sub Path] or [Session Sub Path Long] to mirror input path to output...
Jim_DK
Crew
Crew
 
Posts: 673
Joined: Thu Dec 03, 2009 10:00 pm

Re: Export to matching folder structure

Postby Strathglass » Thu Apr 16, 2020 8:43 pm

I noticed that option for session, but unfortunately I am using a project, not sessions.
User avatar
Strathglass
 
Posts: 16
Joined: Fri Oct 27, 2017 3:46 am
Location: Ottawa


Return to Scripting



Who is online

Users browsing this forum: No registered users and 4 guests