Page 1 of 1

Creating A Slate Frame From File Name info

PostPosted: Sat Jul 10, 2021 6:42 am
by WorksLongHours
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?

Re: Creating A Slate Frame From File Name info

PostPosted: Sat Jul 10, 2021 1:33 pm
by MLanghausen
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

Re: Creating A Slate Frame From File Name info

PostPosted: Sat Jul 10, 2021 2:57 pm
by John Holt
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.

Re: Creating A Slate Frame From File Name info

PostPosted: Sat Jul 10, 2021 4:35 pm
by WorksLongHours
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.

Re: Creating A Slate Frame From File Name info

PostPosted: Sat Jul 10, 2021 7:45 pm
by waltervolpatto
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….

Re: Creating A Slate Frame From File Name info

PostPosted: Sat Jul 10, 2021 7:47 pm
by WorksLongHours
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.

Re: Creating A Slate Frame From File Name info

PostPosted: Tue Jul 13, 2021 7:59 pm
by John Holt
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.

Re: Creating A Slate Frame From File Name info

PostPosted: Tue Jul 13, 2021 10:05 pm
by WorksLongHours
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.

Re: Creating A Slate Frame From File Name info

PostPosted: Tue Jul 13, 2021 11:20 pm
by John Holt
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