timeToCurrentFormat = less digits?
Moderator: Paul Tuersley
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?
- 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
-Lloyd