sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Animation to scenes plugin

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    7 Posts 5 Posters 539 Views 5 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.
    • V Offline
      vos90
      last edited by

      Hi.

      I'm wondering if there is a plugin which makes a set of scenes (each one is 1 frame) from sketchup animation. I've been looking for it, but nothing met my expectations.

      Thanks for help.

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

        Could you clarify what you want to do? The way it is written, you are trying to create individual scenes in SketchUp from an animation. If that's what you are trying to do, what is your plan for the images (frames) from the animation? Are you going to just insert the images as images or perhaps as materials? SketchUp won't convert image files into geometry.

        If, on the other hand you want to take individual scenes in SketchUp and convert them to an animation, you don't need a plugin. You can just use the animation export already in SketchUp.

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • Alan FraserA Offline
          Alan Fraser
          last edited by

          Like Dave, I'm not entirely sure what you are after. If you want to take a 3rd party animation movie and make SU scenes from it...or even one of your own for which you have lost the original file with the key scenes, then the answer is no, this cannot be done.

          If however you have an existing SU file which you have set up with, for instance, half a dozen scenes which will then generate a 30 second movie which obviously has far more than 6 frames...if you want each of those generated frames to be turned into a physical scene in the SU model, you can use the Keyfame Animation script from Regular Polygon. This is capable of producing all the 'tweens' as individual scenes, generating dozens if not hundreds of scenes in the process.

          3D Figures
          Were you required to walk 500 miles? Were you advised to walk 500 more?
          You could be entitled to compensation. Call the Pro Claimers now!

          1 Reply Last reply Reply Quote 0
          • V Offline
            vos90
            last edited by

            Sorry, I probably didn't specify my problem clear enough. I need to put every frame of my Sketchup animation into separate scene (my external render engine doesn't support Sketchup animations/transitions.)

            @Alan - I think, a second part of your answer is that, what I had in mind. I'll try Keyframe Animation.

            Thank you, for your responce, guys. This board has great level of discussion.

            1 Reply Last reply Reply Quote 0
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              Well, how many frames per second do you want? That information is not stored with the scene.

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                ok, here is a one liner that does what you want. It adds a scene for each frame. It does not delete your existing frames, it just adds all these to the end of your existing scenes.

                The default as it is written right now is 29.0 frames per second. You can change that - just change the 29.0 at the beginning of the code to whatever frame rate you'd like - 10.0 or 1.0, etc.

                fps=29.0;scene_name="f_00000000";fps=fps.to_f;mlt=(1.0/fps);cnt=0.0;pa=Sketchup.active_model.pages;t=pa.slideshow_time;(fps*t).to_i.times{|e|pa.show_frame_at(cnt);pa.add scene_name;scene_name.next!;cnt=cnt+mlt;}
                

                There you go.

                EDIT: Forgot to mention how to use it. Just copy and paste that into the "Ruby Console" in SketchUp. (On windows its found on the Window menu in SketchUp). Just open that up and paste the code and hit enter. It should then zip through and add all the scenes.

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

                1 Reply Last reply Reply Quote 0
                • F Offline
                  Fedgerick
                  last edited by

                  Thanks. I've been looking for months for just that one line of code. Now rendering sketchyphysics with v-ray is one step closer.

                  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