INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How to calculate duration of a particle file  (Read 755 times)

exodus1977

  • Recent member
  • *
  • Posts: 25
How to calculate duration of a particle file
« on: March 27, 2013, 01:59:26 pm »

I've been making video and audio clips of particle files. The "duration" show the total of the original--but I would like to create a unique field with the calculated duration of the particle duration. Have not figured it out yet.  Any ideas?  Thanks!!
Logged

mojave

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3732
  • Requires "iTunes or better" so I installed JRiver
Re: How to calculate duration of a particle file
« Reply #1 on: April 05, 2013, 02:12:44 pm »

I need this too. I started by right clicking the heading row in the right pane and adding an Expression Column. I want to subtract the left part of playback range from the right part of playback range so I entered this expression:

Math(Right([Playback Range],4)-Left([Playback Range],4))

If my playback range is 00:00-00:40 then I should get Math(00:40-00:00) or 00:40 as the answer. If I use just the Left/Right function I do get the expected data.

However, overall the formula doesn't work. Do I need to convert or format the time somehow?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: How to calculate duration of a particle file
« Reply #2 on: April 05, 2013, 04:53:44 pm »

You're going to need to convert the start / end values of the range to seconds, and then use math() and then formatduration() to obtain a pretty duration value.

Ask if you need help.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up