timeToCurrentFormat = less digits?

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
Simma
Posts: 98
Joined: June 8th, 2010, 2:57 pm

I use the timeToCurrentFormat to get the frame numer at the current time. Later on I use that information when naming layers and so on. At the moment when I rename layers with that information they get named something like "FreezeFrame_000021", but I would like to have it named "FreezeFrame_21" instead. Anyone have any suggestions to this?
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

Parse the number before appending it to the name. You can either use parseInt() or parseFloat(). There's lot of info online about both functions.

-Lloyd
Simma
Posts: 98
Joined: June 8th, 2010, 2:57 pm

Thank you Lloyd, worked perfectly :).
Post Reply