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

    Choreographing different simultaneous motions

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    6 Posts 4 Posters 1.6k Views 4 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.
    • plot-parisP Offline
      plot-paris
      last edited by plot-paris

      merry Christmas everyone,

      while learning the workings of Dynamic Components, I just started building a little tripod robot.
      this device resides in a compact shape, not unlike a flying saucer, with it's legs wrapped protectively around it's body.
      when activated, it unfolds it's legs and moves into a standing position. therefore several motions are required, which I managed to control by building a joint hierarchy and rotating the different elements, all triggered by one animated variable.

      robot.jpg
      that however results in the 'feet' of the robot temporarily vanishing beneath the ground surface. in order to get it right, these different movements can't be executed at the same time or same speed.

      therefore I just wanted to ask, if you've got any ideas how to do it (without switching to a different software - for this is all about mastering DSs πŸ˜‰ ).

      as I understand it, it is not possible to trigger different animations - one after the other - with one onClick, right?

      but it is possible, to trigger different animations - at the same time - with one onClick, simply by separating them with a ";"

      so on a first glance: would you think that is somehow possible, getting the motions right, so that the tips of the robot's feet will always stay on the same spot on the ground?
      is there any way to mathematically/geometrically calculate the timing? pretty complicated, huh?

      for your comments, suggestions, ideas, I would be grateful.


      TripodRobot_02.skp

      1 Reply Last reply Reply Quote 0
      • plot-parisP Offline
        plot-paris
        last edited by

        ok. I answered some of my questions myself. I found a way to actually trigger animations at different times.

        I did it by understanding the one onClick-animation as a Time Line. the variable is animated from 0 to 100.
        the different "sub-animations" then decide when they want to 'jump on' the timeline and when to 'jump off' again.

        I redid my robot, so that every separate movement can be changed in its Extend (how far does it go), Start Point and End Point (on the time line). 😎

        I added the new file in the first post...

        please have a go with it and tell me what you think.
        I should mention that there is quite a big number of variables, which made the animation very slow and choppy... 😳

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

          I dont know if you know (and cant check as im on a linux machine), but you can animate several variables from one onclick by seperating each operation with a semicolon eg. animate("x",0,10,0); animate("y",10,0,10)

          Might simplify your component a bit if your not already using it.

          http://remusrendering.wordpress.com/

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

            I'm on a non-SU machine right now too, so I'll check it out in a few days when I get back home. But yes, you did it the best way that I've found to animate multiple objects with a single onClick. I had made a comic video of Sang and Bryce playing PingPong when SU 7.0 was first released which used this technique. Its a pretty cool way of animating. Your little tripod looks pretty awesome, so I can't wait to get a chance to play with it.

            Chris

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

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

              Are you plotting to take over the world? That tripod/robot thingymajiggy looks scary... πŸ˜•

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

              1 Reply Last reply Reply Quote 0
              • plot-parisP Offline
                plot-paris
                last edited by

                @Remus:
                yes, you can trigger several animations with one click by separating them with ;
                but all these animations start and end at the same time. therefore the 'Time Line' approach is more suitable for some models.

                @Chris:
                damn! I dimmly remember your ping pong component. so there was no need to figure it out on my own 😞
                on the other hand. it was a lot of fun

                @Thomthom:
                my goal is a bit more humble - an armada of robots cleaning up my flat is enough for the time being.
                and I should be careful with 'taking over the world' plans. I am German and I dimmly remember this moustached guy... πŸ˜‰

                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