Creating A Slate Frame From File Name info

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

WorksLongHours

  • Posts: 4
  • Joined: Sat Jul 10, 2021 6:05 am
  • Real Name: Joe Soloway

Creating A Slate Frame From File Name info

PostSat Jul 10, 2021 6:42 am

I'm looking to generate a slate frame using resolve, from the file name. The reason for this is I don't have meta data to do this automatically, but need an automated process for doing this hundreds of times. I don't know if it's even possible in resolve, but maybe in fusion.

File name is something like this:

test100_001_002_comp_v001

The generated slate frame would have separate fields looking like this:

Show title : test
Episode: 100
Sequence: 001
Shot: 002
Department: comp
Version: 001

Is there a way to generate something like this automatically?
Offline

MLanghausen

  • Posts: 131
  • Joined: Thu Jul 12, 2018 4:26 pm
  • Real Name: Michael Langhausen

Re: Creating A Slate Frame From File Name info

PostSat Jul 10, 2021 1:33 pm

Not a slate, but you can do this using text overlay and burn the info into your files on export.


Sent from my iPhone using Tapatalk
ASUS Prime X299 - Deluxe II
Intel Core i9 7980XE
80 GB DDR4 RAM
NVIDIA 3090Ti - Studio Driver
Intensity Pro 4k
Window 11 Pro

Resolve Studio 18.1.3 Build 8
Fusion Studio 17.3
Offline

John Holt

  • Posts: 197
  • Joined: Sat Mar 02, 2019 8:54 pm
  • Real Name: John Holt

Re: Creating A Slate Frame From File Name info

PostSat Jul 10, 2021 2:57 pm

Hello.

Yes this is possible in Fusion with some expressions and possibly some usercontrols

The expression "string.gsub(MediaIn1.ClipName.Value,".mp4","")" replace mp4 with your extension. Will pull the filename and then you can use:-

string.sub(Text1.StyledText.Value, 1, 4) will pull the word test
string.sub(Text1.StyledText.Value, 5, 7) Will pull 100
string.sub(Text1.StyledText.Value, 9, 11) Will pull 002
string.sub(Text1.StyledText.Value, 17, 20) Will pull comp
string.sub(Text1.StyledText.Value, 22, 25) Will pull v001

So the pair of numbers are the letters you require from the left a negative number is from the right. Adding user controls to the pairs will give you more control.

You could also do this differently by looking for the _underscore, however, I am unsure how to do that.

To this automatically, it would probably be better as a script, you could then pull the filenames from the media pool and produce a slate for each clip.
Windows 10 Pro
AMD Ryzen 5 3600 6-Core Processor 3.60 GHz
64GB RAM
GTX1650 4GB :(
Samsung SSD 970 EVO Plus 1TB 1000.2 GB
Dual Monitors 32" & 27" Samsung
BM Multidock
Speed Editor
DR Studio Latest Version Fusion Studio Latest Version
Offline

WorksLongHours

  • Posts: 4
  • Joined: Sat Jul 10, 2021 6:05 am
  • Real Name: Joe Soloway

Re: Creating A Slate Frame From File Name info

PostSat Jul 10, 2021 4:35 pm

John Holt wrote:Hello.

Yes this is possible in Fusion with some expressions and possibly some usercontrols

The expression "string.gsub(MediaIn1.ClipName.Value,".mp4","")" replace mp4 with your extension. Will pull the filename and then you can use:-

string.sub(Text1.StyledText.Value, 1, 4) will pull the word test
string.sub(Text1.StyledText.Value, 5, 7) Will pull 100
string.sub(Text1.StyledText.Value, 9, 11) Will pull 002
string.sub(Text1.StyledText.Value, 17, 20) Will pull comp
string.sub(Text1.StyledText.Value, 22, 25) Will pull v001

So the pair of numbers are the letters you require from the left a negative number is from the right. Adding user controls to the pairs will give you more control.

You could also do this differently by looking for the _underscore, however, I am unsure how to do that.

To this automatically, it would probably be better as a script, you could then pull the filenames from the media pool and produce a slate for each clip.



Super helpful. Thank you so much. Where did you get this info? Is it in a fusion doc somewhere? Would love to explore it more now that I know it's so least possible.
Offline
User avatar

waltervolpatto

  • Posts: 11331
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: Pictureshop 6040 Sunset Blvd, Hollywood, CA 90028

Re: Creating A Slate Frame From File Name info

PostSat Jul 10, 2021 7:45 pm

John Holt wrote:Hello.

Yes this is possible in Fusion with some expressions and possibly some usercontrols

The expression "string.gsub(MediaIn1.ClipName.Value,".mp4","")" replace mp4 with your extension. Will pull the filename and then you can use:-

string.sub(Text1.StyledText.Value, 1, 4) will pull the word test
string.sub(Text1.StyledText.Value, 5, 7) Will pull 100
string.sub(Text1.StyledText.Value, 9, 11) Will pull 002
string.sub(Text1.StyledText.Value, 17, 20) Will pull comp
string.sub(Text1.StyledText.Value, 22, 25) Will pull v001

So the pair of numbers are the letters you require from the left a negative number is from the right. Adding user controls to the pairs will give you more control.

You could also do this differently by looking for the _underscore, however, I am unsure how to do that.

To this automatically, it would probably be better as a script, you could then pull the filenames from the media pool and produce a slate for each clip.

I think you can also create a macro, save in the edit settings and apply it directly in the edit page….
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled - 12x8TB SSD RAID5 internal (80TB)
PSU RM1200x SHIFT 80 PLUS - Decklink Studio 4K (12.4.1)
Resolve 20.0.0 / fusion studio 19
GPU 3090ti drivers 576.80
Offline

WorksLongHours

  • Posts: 4
  • Joined: Sat Jul 10, 2021 6:05 am
  • Real Name: Joe Soloway

Re: Creating A Slate Frame From File Name info

PostSat Jul 10, 2021 7:47 pm

waltervolpatto wrote:
John Holt wrote:Hello.

Yes this is possible in Fusion with some expressions and possibly some usercontrols

The expression "string.gsub(MediaIn1.ClipName.Value,".mp4","")" replace mp4 with your extension. Will pull the filename and then you can use:-

string.sub(Text1.StyledText.Value, 1, 4) will pull the word test
string.sub(Text1.StyledText.Value, 5, 7) Will pull 100
string.sub(Text1.StyledText.Value, 9, 11) Will pull 002
string.sub(Text1.StyledText.Value, 17, 20) Will pull comp
string.sub(Text1.StyledText.Value, 22, 25) Will pull v001

So the pair of numbers are the letters you require from the left a negative number is from the right. Adding user controls to the pairs will give you more control.

You could also do this differently by looking for the _underscore, however, I am unsure how to do that.

To this automatically, it would probably be better as a script, you could then pull the filenames from the media pool and produce a slate for each clip.

I think you can also create a macro, save in the edit settings and apply it directly in the edit page….


How would you do that? Sorry, I'm a smooth brain when it comes to any type of coding.
Offline

John Holt

  • Posts: 197
  • Joined: Sat Mar 02, 2019 8:54 pm
  • Real Name: John Holt

Re: Creating A Slate Frame From File Name info

PostTue Jul 13, 2021 7:59 pm

Hello

I deleted my previous post as I wasn't happy with the "Slate" I created. I have tweaked it slightly. However I want to do a little more work on it using the "string.format(%s, Value)" as I have discovered if there are numbers in the filename, resolve gets upset.

I will post a link as soon as I have completed it and will post a run through video too.
Windows 10 Pro
AMD Ryzen 5 3600 6-Core Processor 3.60 GHz
64GB RAM
GTX1650 4GB :(
Samsung SSD 970 EVO Plus 1TB 1000.2 GB
Dual Monitors 32" & 27" Samsung
BM Multidock
Speed Editor
DR Studio Latest Version Fusion Studio Latest Version
Offline

WorksLongHours

  • Posts: 4
  • Joined: Sat Jul 10, 2021 6:05 am
  • Real Name: Joe Soloway

Re: Creating A Slate Frame From File Name info

PostTue Jul 13, 2021 10:05 pm

John Holt wrote:Hello

I deleted my previous post as I wasn't happy with the "Slate" I created. I have tweaked it slightly. However I want to do a little more work on it using the "string.format(%s, Value)" as I have discovered if there are numbers in the filename, resolve gets upset.

I will post a link as soon as I have completed it and will post a run through video too.


That's way more than I could ask for. Thank you so much.
Offline

John Holt

  • Posts: 197
  • Joined: Sat Mar 02, 2019 8:54 pm
  • Real Name: John Holt

Re: Creating A Slate Frame From File Name info

PostTue Jul 13, 2021 11:20 pm

Hi

I am currently struggling with, what I thought would be a simple number to string conversion. It looks like Resolve doesn't want to play, however if I stick to the 1st macro I created it does work so I will revert back to the original.

This is the proof of concept.


This is a walkthrough of the tool


The link to the original slate drfx & .setting files. I am to add presets so any filename convention will work, so the video is only 99% accurate. https://www.buymeacoffee.com/mrjholt/e/37285
Windows 10 Pro
AMD Ryzen 5 3600 6-Core Processor 3.60 GHz
64GB RAM
GTX1650 4GB :(
Samsung SSD 970 EVO Plus 1TB 1000.2 GB
Dual Monitors 32" & 27" Samsung
BM Multidock
Speed Editor
DR Studio Latest Version Fusion Studio Latest Version

Return to DaVinci Resolve

Who is online

Users browsing this forum: Google [Bot], panos_mts and 265 guests