sketchucation logo sketchucation
    • Login
    ๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    [Plugin] ImageAnimator 20130827

    Scheduled Pinned Locked Moved Plugins
    18 Posts 10 Posters 13.8k Views 10 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TIGT Offline
      TIG Moderator
      last edited by

      See here for download http://forums.sketchucation.com/viewtopic.php?p=293677#p293677
      TIG (c) 2010 - 2013
      All Rights Reserved.
      THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
      WARRANTIES,INCLUDING,WITHOUT LIMITATION,THE IMPLIED WARRANTIES OF
      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
      [NB:definition and transformation methods are Copyright 2008, AlexM]


      ImageAnimator.rb


      Needs 'image_class.rb' [comes in the same folder]


      Adds new Tool 'ImageAnimator':

      Under Menu > View > ImageAnimator... [submenu]
      OR
      View Toolbars > ImageAnimator

      The Tools include the following:
      "Set Folder for Selected Image"
      This sets the 'folder' of sequential 'image-files' that will be used by the
      Image when its animation is run. The 'folder' chosen should contain images
      with sequential name/numbering as they will load in that order - e.g. as
      they are exported from a GIF or movie file - image001.png, image002.png etc
      They should also all be the same size and filetype[recommended]. PNG files
      can offer transparency so are preferred for 'cutouts' of people etc. Any
      set 'folder' are remembered across sessions with the SKP. If an Image has
      a 'folder' set that no longer exists then it is auto-reset to 'nil' and it
      will need redefining.

      "Set Folder from Selected Image to 'Nil'"
      This sets the selected Image(s) 'folder' to 'nil' thereby effectively
      removing its animation abilities. Should an Image has a 'folder' set that
      no longer exists then it is auto-reset to 'nil' and it will need redefining.

      "Set Timer for Selected Images"
      This sets the timer [in seconds] for the selected Image(s). It defaults to
      0.0 - this value means that the Image only animates as the active Scene tab
      changes. Any value > 0.0 sets the frame-rate in seconds - 0.1 to 0.2 are
      often suitable values - when the Images are animated their animation
      effects continue as you work/pan/zoom or make screen-captures etc.
      The shortest workable 'timer' is 0.01 seconds. Having several animations
      running simultaneously will slow down all animations frame-changes so if
      this situation is expected then reduce the frame rate of all animated
      Images appropriately.

      "Set FaceMe for Selected Images"
      This sets the selected Image(s) 'faceme' behavior. The choices are:
      'None' - the Image does not face the camera [default]
      'Bottom-Left' - the Image is placed into a special Group - 'FaceMeImage' -
      which faces the camera, pivoting around the Z_AXIS anchored at its
      bottom-left corner.
      'Bottom-Center' - the Image is placed into a special Group - 'FaceMeImage' -
      which faces the camera, pivoting around the Z_AXIS anchored at its
      bottom-center point.
      'Bottom-Right' - the Image is placed into a special Group - 'FaceMeImage' -
      which faces the camera, pivoting around the Z_AXIS anchored at its
      bottom-right corner.
      A 'FaceMeImage' Group is treated as if it were an Image by the
      ImageAnimator tools. If later on you reset its 'faceme' behavior to 'None'
      then the Group is exploded and the Image reverts to a plain Image.

      "Animate Selected Images"
      This starts the animation effects on the selected Image(s), using the
      'folder' and 'timer' that each one has set as attributes. Depending on its
      'timer' each Image will animate as the Scene tab changes or continuously as
      you work doing other things. The first frame in each Image's animation is
      the first image-file in its 'folder'.

      "Stop Selected Images Animation"
      This stops the animation effects on the currently selected Image(s).
      Each 'stopped' Image uses its currently loaded image-file.

      "Animate All Images"
      This starts the animation effects on ALL suitable Image(s) - i.e those with
      a 'folder' set; using the 'timer' that each one has set as an attribute.
      Depending on its 'timer' each Image will animate as the Scene tab changes
      or continuously as you work doing other things. The first frame in each
      Image's animation is the first image-file in its 'folder'.

      "Stop All Image Animation"
      This stops the animation effects on ALL Image(s).
      Each 'stopped' Image uses its currently loaded image-file.

      **Menu only items:--------------

      "Make_Unique"
      This processes the Selected Image(s) with 'make_unique', i.e. if there is
      more that one Instance of an Image in the Model then the Selected Image is
      given another Definition 0 it is a lone Instance so only it 'animates'.

      "Clone"
      If you manually 'Copy' an Image it becomes another Instance of the same
      Image Definition and the Instances will 'animate' together. You could use
      'Make_Unique' on the Copy to prevent this, alternatively use this 'Clone'
      function - it makes an exact 'copy' of the Selected Image over the original.
      However, it is a 'clone' and is 'unique' having a separate Definition, so it
      will 'animate' as a lone Image.**


      Donations:
      By Paypal.com to info @ revitrev.org PayPalButton


      Version:
      1.0 20101210 First issue.
      1.1 20101212 New Menu items added - Make_Unique and Clone
      1.2 20101213 Typo corrected in new menu / toolbar code.
      1.3 20101216 Typo in menu corrected - again!
      1.4 20110105 Clone menu typo fixed.
      1.5 20130827 Temp folder issues resolved.


      Also see these example movies [flash=630,450:2kzjnyky]http://www.youtube.com/v/5e_BrXfXXCI[/flash:2kzjnyky]
      [flash=630,450:2kzjnyky]http://www.youtube.com/v/3KeAjT_W28I[/flash:2kzjnyky]

      TIG

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Update added with 2 new menu items Make_Unique and Clone - see here http://forums.sketchucation.com/viewtopic.php?p=293698#p293698

        PS: The SUp 'timers' pre-v8 can be buggy and only work in whole seconds. Try various timer values to see what you get but you might find 'fine-tuning' of the frame timers only works well in v8............. ๐Ÿ˜’

        TIG

        1 Reply Last reply Reply Quote 0
        • jason_marantoJ Offline
          jason_maranto
          last edited by

          Very cool stuff, and I like the videos too.

          Best,
          Jason.

          I create video tutorial series about several 2D & 3D graphics programs.

          1 Reply Last reply Reply Quote 0
          • R Offline
            rv1974
            last edited by

            At last TIG started to add video explanations ๐Ÿ˜ฒ ๐Ÿ˜„

            1 Reply Last reply Reply Quote 0
            • kenK Offline
              ken
              last edited by

              TIG

              Since what I design is used in the ocean, I did this photo animation. I made the sea from the program MiniOcean.

              Just wanted to see what the two would do together.

              Ken


              SeaTest.wmv

              Fight like your the third monkey on Noah's Ark gangway.

              1 Reply Last reply Reply Quote 0
              • soloS Offline
                solo
                last edited by

                Ken, thats pretty cool, can you show a SU screen shot so I can better understand what I just saw?

                Oh, you are the winner, I have never seen so many toolbars ๐Ÿ˜ฒ , I'm not even sure I know half of them.

                http://www.solos-art.com

                If you see a toilet in your dreams do not use it.

                1 Reply Last reply Reply Quote 0
                • FrederikF Offline
                  Frederik
                  last edited by

                  @solo said:

                  Oh, you are the winner, I have never seen so many toolbars ๐Ÿ˜ฒ , I'm not even sure I know half of them.

                  +1 ๐Ÿ˜ฎ

                  Cheers
                  Kim Frederik

                  1 Reply Last reply Reply Quote 0
                  • kenK Offline
                    ken
                    last edited by

                    [quote="solo"]Ken, thats pretty cool, can you show a SU screen shot so I can better understand what I just saw?

                    Oh, you are the winner, I have never seen so many toolbars ๐Ÿ˜ฒ , I'm not even sure I know half of them.[/quot

                    The video is a screen shot.

                    As for the toolbars. I only use one or two menus from each toolbar. I wish I could combined the tools into my personal toolbar, then I wouldn't have all the toolbars displayed.

                    Ken

                    Fight like your the third monkey on Noah's Ark gangway.

                    1 Reply Last reply Reply Quote 0
                    • GaieusG Offline
                      Gaieus
                      last edited by

                      That sea is pretty cool, indeed!

                      @unknownuser said:

                      As for the toolbars. I only use one or two menus from each toolbar. I wish I could combined the tools into my personal toolbar, then I wouldn't have all the toolbars displayed.

                      At least with (most of) the native SU toolbars you can do this with Jim's custom toolbar plugin:
                      http://sketchuptips.blogspot.com/2008/06/custom-toolbars-release-08-06-01.html

                      Gai...

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        schnydix
                        last edited by

                        Hi Tig
                        is there any chance to translate your plugins to other languages
                        i will to it for you if you like especial in german.

                        And thanks for your wonderfull work and time that you invest.
                        Big Respect to you Thanks again.

                        i also have some ideas for some plugs are you interest ?
                        I hope you can still read this simple code

                        1 Reply Last reply Reply Quote 0
                        • TIGT Offline
                          TIG Moderator
                          last edited by

                          @schnydix said:

                          Hi Tig
                          is there any chance to translate your plugins to other languages
                          i will to it for you if you like especial in german.
                          And thanks for your wonderfull work and time that you invest.
                          Big Respect to you Thanks again.
                          i also have some ideas for some plugs are you interest ?
                          I hope you can still read this simple code

                          At the moment my recent tools don't support my 'deBabelizer' lingvo translations...
                          However, I DO plan to update them soon... so... watch this space... ๐Ÿ˜•

                          If you want to PM me with Plugins ideas please do... ๐Ÿ˜‰

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • TIGT Offline
                            TIG Moderator
                            last edited by

                            Here's an update - http://forums.sketchucation.com/viewtopic.php?p=293698#p293698 - see link for download...
                            The Clone menu typo is fixed.

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • thomthomT Offline
                              thomthom
                              last edited by

                              Does it affect the undo stack?

                              Thomas Thomassen โ€” SketchUp Monkey & Coding addict
                              List of my plugins and link to the CookieWare fund

                              1 Reply Last reply Reply Quote 0
                              • TIGT Offline
                                TIG Moderator
                                last edited by

                                The Image Animation is run inside a separate timer for each Image... so it shouldn't ?
                                BUT I think it might mess with the undo stack as it is changing the images properties!
                                It's over a year old... any ideas on this issue welcomed... ๐Ÿ˜•

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by

                                  @tig said:

                                  It's over a year old... any ideas on this issue welcomed... ๐Ÿ˜•

                                  I was curious if you'd found some way to avoid the undo stack.

                                  The only way I know to do changes to a model without affecting the undo stack is the .move! method. Been wanting some other means.

                                  There is the transparency arguments of start_operation - but they are troublesome as well. I find while they make your operation transparent - they still affect the undo stack as in the name of the last operation is replaced.

                                  And in your case - where it triggers by a timer - start_operation is not good as it would break any existing operations.

                                  There are several times where I'd like an observer to do something - like just adding an attribute - without affecting the undo stack. But alas I've not found a safe an reliable method. ๐Ÿ˜ž

                                  Thomas Thomassen โ€” SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

                                  1 Reply Last reply Reply Quote 0
                                  • TIGT Offline
                                    TIG Moderator
                                    last edited by

                                    In the other thread where we have been discussing this http://forums.sketchucation.com/viewtopic.php?p=379649#p379649 I expound on using 'save' to clear the undo-stack... but its 'mucho-clunkio' ๐Ÿ˜’

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      Don-Quixote
                                      last edited by

                                      I changed your .ico with this set.


                                      IcoImageAnimator.jpg


                                      ImageAnimatorIcons.rar

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by

                                        Here's an update: http://sketchucation.com/forums/viewtopic.php?p=293677#p293677
                                        The SKMtools Temp folder that is needed to process Image files etc, is now made in the User's Temp folder [OS specific] rather that the ../Plugins/SKMtools folder, avoiding potential permission issues...

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • 1 / 1
                                        • First post
                                          Last post
                                        Buy SketchPlus
                                        Buy SUbD
                                        Buy WrapR
                                        Buy eBook
                                        Buy Modelur
                                        Buy Vertex Tools
                                        Buy SketchCuisine
                                        Buy FormFonts

                                        Advertisement