Read frames per sec setting from render template

Cheesehole wrote on 7/30/2007, 2:50 AM
Hi all,

I made a batch render script that can load custom templates. It writes the frames per second to the filename like this:

Filename_15fps.avi

This is so my Flash controller can know the framerate of the file before loading it.

But the problem is... I'm getting the frame rate from the ProjectVideoProperties and sometimes it doesn't match the template. Does anyone know of a way I can read the fps from a saved render template, or somehow detect what fps the renderer is going to use so I can write it to the file name?

Thanks!
Ben

Comments

jetdv wrote on 7/30/2007, 6:22 AM
When you save the template, you could include that as part of the template name. You could then read it straight from the template name.
Cheesehole wrote on 8/3/2007, 12:28 AM
Hi Edward... I was hoping to avoid that but it's a good simple solution. Thank you for your response it makes my night a lot more productive. If you don't know of a way to do it I'm not going down that road!

Ben