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

    [Request] Scene tween

    Scheduled Pinned Locked Moved Plugins
    10 Posts 7 Posters 1.0k Views 7 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.
    • soloS Offline
      solo
      last edited by

      Is there a plugin that can create scenes between camera's?

      I have a scene and I'd like to render frames between camera's, I'd like to be able to chose the amount of frames if possible.

      http://www.solos-art.com

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

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

        I swear I wrote this into a plugin once. Let me dig around and see if that's real or not.

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

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

          Yeah, I have passed my trial period, I thought there was maybe a plugin that just did the tweens instead of purchasing the whole animation app.

          Chris, that sounds good.

          http://www.solos-art.com

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

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

            Hmm, I don't see anything I published that does that exactly. It would be fairly simple to write though.

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

            1 Reply Last reply Reply Quote 0
            • cottyC Offline
              cotty
              last edited by

              @d12dozr said:

              I think [url=sketchucation.com/forums/viewtopic.php?f=323&t=33417]Keyframe animation[/url] will do that

              edit... the URL isn't clickable πŸ˜•

              I think the "http://" is missing after "url="...

              my SketchUp gallery

              1 Reply Last reply Reply Quote 0
              • cottyC Offline
                cotty
                last edited by

                In SkIndigo (SketchUp Plugin for Indigo Renderer) there is an option for creating such an animation, maybe for your render engine there is a similar possibility like this?


                skindigo_animation.jpg

                my SketchUp gallery

                1 Reply Last reply Reply Quote 0
                • D Offline
                  d12dozr
                  last edited by

                  I think Keyframe animation will do that
                  edit... thanks Carsten πŸ˜„

                  3D Printing with SketchUp Book
                  http://goo.gl/f7ooYh

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tomasz
                    last edited by

                    @cotty said:

                    maybe for your render engine there is a similar possibility like this?

                    Yes, there is:
                    AnimationExport.png

                    Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

                    1 Reply Last reply Reply Quote 0
                    • ppoublanP Offline
                      ppoublan
                      last edited by

                      Dear all,
                      I used this little script. Very limited but it insert scenes with intermediate cameras.
                      Yours

                      require "sketchup.rb"

                      Add a menu item

                      plugins_menu = UI.menu "Plugins"
                      insert_scenes_menu = plugins_menu.add_item("Insert Scenes") {

                      # Access the Pages container
                      pages = Sketchup.active_model.pages
                      
                      # check existing pages
                      if pages.count < 2
                      	UI.messagebox("Needs 2 scenes to be created first.")
                      	exit
                      end
                      
                      eye1 = pages[0].camera.eye
                      target1 = pages[0].camera.target
                      up1 = pages[0].camera.up
                      fov1 = pages[0].camera.fov
                      
                      eye2 = pages[1].camera.eye
                      target2 = pages[1].camera.target
                      up2 = pages[1].camera.up
                      fov2 = pages[1].camera.fov
                      
                      # prompts for number of scenes
                      prompts = ["Number of scenes to add : "]
                      defaults = ["10"]
                      input = UI.inputbox prompts, defaults, "Insert Scenes"
                      if (input)
                      	insertcount = input[0].to_i + 1
                      else
                      	exit
                      end
                       
                      for i in 1..insertcount - 1
                      	eyetmp = Geom::Point3d.new (eye1.x + (((eye2.x - eye1.x) / insertcount) * i),eye1.y + (((eye2.y - eye1.y) / insertcount) * i),eye1.z + (((eye2.z - eye1.z) / insertcount) * i))
                      	targettmp = Geom::Point3d.new (target1.x + (((target2.x - target1.x) / insertcount) * i),target1.y + (((target2.y - target1.y) / insertcount) * i),target1.z + (((target2.z - target1.z) / insertcount) * i))
                      	uptmp = Geom::Vector3d.new(up1.x + (((up2.x - up1.x) / insertcount) * i),up1.y + (((up2.y - up1.y) / insertcount) * i),up1.z + (((up2.z - up1.z) / insertcount) * i))
                      	fovtmp = fov1 + (((fov2 - fov1) / insertcount) * i)
                      	pagetmp = pages.add(i.to_s)
                      	pagetmp.camera.set eyetmp, targettmp, uptmp
                      	pagetmp.camera.fov = fovtmp
                      end
                      

                      }

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        ternup
                        last edited by

                        @ppoublan said:

                        Dear all,
                        I used this little script. Very limited but it insert scenes with intermediate cameras.
                        Yours

                        require "sketchup.rb"

                        Add a menu item

                        plugins_menu = UI.menu "Plugins"
                        insert_scenes_menu = plugins_menu.add_item("Insert Scenes") {

                        Access the Pages container

                        pages = Sketchup.active_model.pages

                        check existing pages

                        if pages.count < 2
                        UI.messagebox("Needs 2 scenes to be created first.")
                        exit
                        end

                        eye1 = pages[0].camera.eye
                        target1 = pages[0].camera.target
                        up1 = pages[0].camera.up
                        fov1 = pages[0].camera.fov

                        eye2 = pages[1].camera.eye
                        target2 = pages[1].camera.target
                        up2 = pages[1].camera.up
                        fov2 = pages[1].camera.fov

                        prompts for number of scenes

                        prompts = ["Number of scenes to add : "]
                        defaults = ["10"]
                        input = UI.inputbox prompts, defaults, "Insert Scenes"
                        if (input)
                        insertcount = input[0].to_i + 1
                        else
                        exit
                        end

                        for i in 1..insertcount - 1
                        eyetmp = Geom::Point3d.new (eye1.x + (((eye2.x - eye1.x) / insertcount) * i),eye1.y + (((eye2.y - eye1.y) / insertcount) * i),eye1.z + (((eye2.z - eye1.z) / insertcount) * i))
                        targettmp = Geom::Point3d.new (target1.x + (((target2.x - target1.x) / insertcount) * i),target1.y + (((target2.y - target1.y) / insertcount) * i),target1.z + (((target2.z - target1.z) / insertcount) * i))
                        uptmp = Geom::Vector3d.new(up1.x + (((up2.x - up1.x) / insertcount) * i),up1.y + (((up2.y - up1.y) / insertcount) * i),up1.z + (((up2.z - up1.z) / insertcount) * i))
                        fovtmp = fov1 + (((fov2 - fov1) / insertcount) * i)
                        pagetmp = pages.add(i.to_s)
                        pagetmp.camera.set eyetmp, targettmp, uptmp
                        pagetmp.camera.fov = fovtmp
                        end

                        }

                        Thanks for the codes, but i dont understand how does it works.
                        It will be helpful if you can explain it.
                        What if i have about 26 scenes, & i want it to be 24fps?

                        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