User Tag List

Results 1 to 3 of 3

Thread: Expression for Animation length?

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Expression for Animation length?

    Is there a way to get the length of an animation to use in the expression editor? It doesn't appear so in the normal object, but maybe in an extension? If not, this would be very helpful.

    EDIT: Sorry, I just saw there was already a feature request for this in Bug Tracker. Thanks Sphax!

  2. #2
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Another solution would be to just set the frame number to like 999 and then in the immediate row after getting the current frame by Img("Object"), I think this should give you the last one as well!

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the suggestions. I wanted to use a Random(max frames) expression to choose one frame out of an animation (the animation is a pool of random floor tiles). But since that pool will be ever expanding over time, I wanted a single solution so I wasn't having to go back and adjust the code every time I add new frames.

    Thanks for the ideas. Hopefully the feature request will yield some simpler solutions.

Similar Threads

  1. Audio buffer length?
    By Nifflas in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th March 2012, 11:28 PM
  2. Max length of expressions
    By Phi in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th December 2011, 03:50 AM
  3. String length causing disconnection
    By Phi in forum Lacewing
    Replies: 10
    Last Post: 16th July 2010, 12:43 PM
  4. animation frame expression editor
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 15th January 2010, 07:49 PM
  5. Expression d'animation
    By Calimero in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 16th July 2007, 11:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •