Countdown text expression script help in fusion

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

SethTwig

  • Posts: 2
  • Joined: Mon Feb 11, 2019 8:57 pm
  • Real Name: Seth Terwilliger

Countdown text expression script help in fusion

PostMon Feb 11, 2019 9:05 pm

Hello,

I am trying to create a countdown timer in resolve 15 under the text expressions tab in fusion. If someone could please provide the script or the place to include sed script that would be awesome. Right now I am working with this script and it is not working. I would like the final product to read time as 0:00.

script I'm using currently with no luck:
t = Math.floor(outPoint-time);

minut = Math.floor(t / 60);
second = t % 60;

if(minut < 10)
{
if(second < 10)
{
['0' + minut + ':' + '0' + second];
}
else
{
['0' + minut + ':' + second];
}
}

else
{
if(second < 10)
{
[minut + ':' + '0' + second];
}
else
{
[minut + ':' + second];
}
}

-Seth
Offline

Igor Riđanović

  • Posts: 341
  • Joined: Thu Jul 02, 2015 5:11 am

Re: Countdown text expression script help in fusion

PostMon Feb 11, 2019 11:17 pm

I hope this helps:

Offline

SethTwig

  • Posts: 2
  • Joined: Mon Feb 11, 2019 8:57 pm
  • Real Name: Seth Terwilliger

Re: Countdown text expression script help in fusion

PostMon Feb 11, 2019 11:36 pm

Igor Riđanović wrote:I hope this helps:



I know howto create a basic count down but I want the 0:00 time format and not just the minutes or seconds shown. Thank you for the reply though :)

Return to DaVinci Resolve

Who is online

Users browsing this forum: AndreeMarkefors, jakin1950, roger.magnusson, Shrinivas Ramani and 31 guests