• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] SketchUp Animation using mover.rb

Scheduled Pinned Locked Moved Plugins
37 Posts 22 Posters 77.5k Views 22 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.
  • C Offline
    cmd
    last edited by 13 Mar 2009, 14:28

    @unknownuser said:

    Doesn't work right with components for some reason. During the animation, the components in my animation would all switch to have the axis in the original positions between scenes, so all my components would move around to different positions.

    When I had my components "scaled", I saw this strange behavior as well. Applying "Scale Definition" to the scaled components corrects the problem.

    CMD

    • CMD
    1 Reply Last reply Reply Quote 0
    • K Offline
      kwistenbiebel
      last edited by 13 Mar 2009, 14:32

      Thanks for the upload of both the ruby as the youtube clip.
      Looks like a good solution to get cars running in your scenes.
      Too bad there is still no solution to get smoother scene transitions..

      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by 13 Mar 2009, 14:46

        I dont know if it would work, but perhaps you could mash whaats smoothstep animation and mover together to get smoother scene transitions (it sounds so easy...)

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • K Offline
          kwistenbiebel
          last edited by 13 Mar 2009, 14:47

          That would indeed be nice.
          (Not for the people using render software though)

          1 Reply Last reply Reply Quote 0
          • P Offline
            pilou
            last edited by 13 Mar 2009, 18:29

            @unknownuser said:

            Too bad there is still no solution to get smoother scene transitions..

            Set_transition_times.rb by Morisdov don't make the trick?
            (I believe that scene must be writed "scene1, scene 2etc

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • L Offline
              leixing
              last edited by 14 Mar 2009, 04:03

              It is a good work,but we had another plugin called "mover"already.
              so....we can not copy it to the plugins floder.
              please solve ..

              1 Reply Last reply Reply Quote 0
              • X Offline
                xrok1
                last edited by 14 Mar 2009, 04:58

                leixing, i imagine you could rename it but don't rename the folder that it comes with.

                “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                http://www.Twilightrender.com try it!

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Chris Fullmer
                  last edited by 14 Mar 2009, 06:01

                  I haven't tested this, and I'm not sure its right, but here is a possible fix.

                  Sketchup keeps a running list of all files loaded. Some rubies pass their name dynamically to Sketchup. So if you rename it, it tells Sketchup whatever it is named. This ruby is not setup like that. It is sending the phrase "mover.rb" no matter what you name the file. I imagine there will conflicts with just changing the file name because of that. Its easy enough to change though.

                  Change two lines at the bottom from:

                  FROM: if( not file_loaded?("mover.rb") )
                  TO: if( not file_loaded?("FILE") )

                  and

                  FROM: file_loaded("mover.rb")
                  TO: file_loaded("FILE")

                  After those 2 change, it will be passing the filename to sketchup, whatever it is. So then change the name of the file. It can be anything.

                  See if that helps. If no one tests it, I'll try it in a bit.

                  Chris

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

                  1 Reply Last reply Reply Quote 0
                  • topic:timeago-later,7 months
                  • F Offline
                    Fletch
                    last edited by 4 Oct 2009, 19:40

                    I see it's on the rt-click context menu, but what exactly does this "Be sure to "scale definition" to correct the problem." mean? what is it SketchUp is doingwhen you apply that?

                    Fletch
                    Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      Ecuadorian
                      last edited by 4 Oct 2009, 21:09

                      If you make a 1m1m1m cube, make it a component, and then scale the component so it becomes 2m2m2m, the component is still internally defined as being one meter in size, and this particular instance as being scaled by 200% in all three axes. This is easily proven by dragging new instances from the Components window: they all will be 1m1m1m.

                      If you right click on the instance that was scaled to 2m2m2m and right click > Scale definition, now the component is internally defined as being 2m2m2m, and this instance as being 100% in size. Again you can test the change by dragging new instances from the Components window: They will be 2m2m2m. Any 1m1m1m instances you placed before will appear to remain unchanged, but they're now actually stored by SketchUp as 50% size (in all three directions) instances of the 2m2m2m component. (0.5*2m = 1m)

                      Now this is just my guess; hopefully someone who knows the internal workings will chime in with a better and more accurate explanation.

                      -Miguel Lescano
                      Subscribe to my house plans YouTube channel! (30K+ subs)

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        Gaieus
                        last edited by 4 Oct 2009, 22:11

                        This is extremely important issue with especially texturing. If you scale a component instance (like Miguel described above), the materials applied to the geometry will also scale proportionally (ultimately distorting the whole thing). Now if you scale the definition, the material will "jump back" to its original size. See attached below (I had to make the third component unique first so that the second example remains scaled up with the texture)


                        ScaleÍDefinition.jpg

                        Gai...

                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          Fletch
                          last edited by 5 Oct 2009, 09:27

                          Fascinating... thanks for the replies, I 'get' it now.

                          Fletch
                          Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                          1 Reply Last reply Reply Quote 0
                          • F Offline
                            Fletch
                            last edited by 5 Oct 2009, 18:47

                            PS - the animation by Mover.rb renders great with Twilight Render. I've rendered an animation of a door opening and some sunshade (brise soleil) louvers closing. Great plugin!

                            What is missing from the plugin:
                            1)
                            Pick a "base point" for a group or component about which the animation should happen (a door swinging on a hinge, etc.) It does a pretty good job, so far but it's a little quirky... the door sort of slides a bit into the wall, just like the prob. with Proper_Animation.rb ... but this one doesn't seem to do as bad a job with rotating door-type swings.

                            If you animate a door component rotating open.
                            Scene1-closed
                            Scene2-open

                            Then you hit the Scene2 button, then the door is open, then you open the component to edit the door, as you work, you think, hmm... I want that camera angle from Scene1, and hit that scene tab, now the door's parts will do some unpredictable movements, and may disappear completely from your scene... so sure, you can avoid touching scene tabs when editing animated components... but ...

                            It would be great if it would read the animation of nested components. I had to cut the door panel component away from the frame inside of the "door+frame" door component, and paste that into the base model in order to animate it. This would also avoid having to animate by hand 40 louver blades 1by1... you could animate the object inside the louver component, and copy the component around to still get the same animation results. ... or is there something I'm not doing right here? Is there a trick I'm missing here? What if you animate the door panel, then put it back inside the component, will it keep it's animation after pasting it back into the "door+frame" component?

                            How can you reset an object's animation to "null" without losing your scene? You have to copy the scene tab, delete the scene and rename it to the correct name, as near as I can tell... and that's very tedious in larger projects like the airport scene shown in the demo vid. But even then, the other scenes are still remembering that object's movement. There needs to be a "reset animation for selected object".

                            If you animate the object with the model's scene animation settings at 2 second transition and then change that to be 4 seconds it seems that the animation still happens in 2 seconds of the 4 second transition. In my case, when I did this, it sort of "flung" the door open quickly instead of gently swinging it open.

                            Fletch
                            Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jim
                              last edited by 7 Oct 2009, 15:06

                              @fletch said:

                              ck a "base point" for a group or component about which the animation should happen (a door swinging on a hinge, etc.) It does a pretty good job, so far but it's a little quirky... the door sort of slides a bit into the wall, just like the prob. with Proper_Animation.rb ... but this one doesn't seem to do as bad a job with rotating door-type swings.

                              I noticed if the base point is the Origin of the Group/Component the rotation is good. It's when you rotate around another corner that the object moves off the axis of rotation.

                              Hi

                              1 Reply Last reply Reply Quote 0
                              • F Offline
                                Fletch
                                last edited by 11 Oct 2009, 19:15

                                Thanks Jim,
                                That's a good place to start 😉 (either animating something, or trying to code a fix for it.)

                                Fletch
                                Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                                1 Reply Last reply Reply Quote 0
                                • topic:timeago-later,10 days
                                • P Offline
                                  pilou
                                  last edited by 21 Oct 2009, 16:05

                                  Have you made an exportation animation "Avi" with Mover?
                                  Not by the Twilight Render (this is working fine) 😉, but from directly Sketchup Export ? (with no render)

                                  Frenchy Pilou
                                  Is beautiful that please without concept!
                                  My Little site :)

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    pirun14
                                    last edited by 24 Oct 2009, 02:05

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      pilou
                                      last edited by 25 Oct 2009, 23:58

                                      Cool tutorial ☀
                                      Seems you have not use scene 3 and don't make Update Scene ☀

                                      Frenchy Pilou
                                      Is beautiful that please without concept!
                                      My Little site :)

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        pirun14
                                        last edited by 26 Oct 2009, 00:22

                                        @unknownuser said:

                                        Cool tutorial ☀
                                        Seems you have not use scene 3 and don't make Update Scene ☀

                                        Thanks.sorry,i have over scene 😉

                                        1 Reply Last reply Reply Quote 0
                                        • topic:timeago-later,10 days
                                        • S Offline
                                          skkor9y
                                          last edited by 4 Nov 2009, 21:36

                                          year b4 i used this plugin, but it had a different name TRANSFORM.rb

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

                                          Advertisement