10 Replies Latest reply on Oct 11, 2013 5:20 AM by resdesign

    How can I get the total amount of keyframes in timeline


      I'm builidng a very simple, single timeline based resoruce. I want to be able to count the amount of pages, and display the page number I am on. The resource uses sym.stop(); on the timeline and sym.play() attached to a button. The idea is that I have 2 global variables. 1 that updates as the keyframes progress "pageNum" and one that calculates the total number of pages (keyframes) on the timeline "totalPages".


      "pageNum" is fine, simply a case of incrementing it as I progress the timeline, but I am stuck on getting the total number of keyframes. Obviously in the code pane I can look through and count the amount of "Trigger @ XXXX ms" functions, but can I get code to do that for me?