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

    Dynamic components - help

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    7 Posts 2 Posters 1.8k Views 2 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.
    • K Offline
      Kevinengelbrecht
      last edited by

      New to DC and would like to do compound animation in one "on click".Attached pics show what i want to do. On one click, lower the arm but keep the BJoint and monitor on O degrees on the Y axis. Right now the BJoint and monitor are separate components. I can group them into one component and rotate -25 degrees, but it takes 2 clicks.
      Any help would BE APPRECIATED.Thanks


      aa1 (2) (1024x444).jpg


      lowered


      Bjoint and monitor

      1 Reply Last reply Reply Quote 0
      • P Offline
        pcmoor
        last edited by

        You can use ; semicolon to place multiple events on one onclick line

        onclick may contain animate("RotZ",0,-90) ; set("a". 4,5,8,6) ; animateslow("X" 20,200) and so on. onclick must be triggered at the same nested level, otherwise its parent or container will always precede and stop the lower onclicks

        you can get more than one attribute to be effected by a single onclick event by using a common variable

        steps...........0
        onclick .........aminateslow("steps", 0,100)
        rotz...........=if(steps>50, 90,0)
        X..............=steps/2
        Y............=steps*steps

        examples attached


        the plumb line remains true


        return.skp


        conditional movement.skp

        1 Reply Last reply Reply Quote 0
        • P Offline
          pcmoor
          last edited by

          Hi

          combined movement with click on arm. however its likely you would want to rotate screen and whole arm, plus other ideas. As the trigger points need to be on one level whereas movement operations can involve combining components for ease of operation it is suggested you create a control pad.

          see attached files


          articulating-arm-8.skp


          articulating-arm with remote-8.skp

          1 Reply Last reply Reply Quote 0
          • K Offline
            Kevinengelbrecht
            last edited by

            pc, thanks, your explanation with the semicolon worked. Added the following

            ;animate("bjointmon!RotY"0,-15,-25)

            I had done this before but didnt have the ! after the component. Plus added an extra step. Uploaded the new model to the warehouse.
            Thanks again !!! <didnt forget the exclamation point)

            Now, need to swivel/rotate just the monitor. Will work on that another day...

            1 Reply Last reply Reply Quote 0
            • K Offline
              Kevinengelbrecht
              last edited by

              Nice set up with the remote pad, you're a step ahead of me wanting to rotate the monitor.
              I only get an hour or so a day to work on this, so its slow going. Will take your idea of a control pad and fine tune it. Forgot about rotating the whole arm around the room, I was using the SU rotate tool to do that, but it even better if i can do in DC.

              1 Reply Last reply Reply Quote 0
              • K Offline
                Kevinengelbrecht
                last edited by

                By the way, if anyone want to mess with it, its in the 3D warehouse. heres the link

                https://3dwarehouse.sketchup.com/model.html?id=ud374f307-8802-4ac4-9be6-c7f1bdebf68e

                I have searched other help forums and found that there is an IF(animate_me)...
                command in there but i just cant get it to work.

                1 Reply Last reply Reply Quote 0
                • K Offline
                  Kevinengelbrecht
                  last edited by

                  Thanks pcmoor, i will download the samples and try at work later today. BTW i posted a link to the 3Dwarehouse where my model is, but it didnt show up. Ill try it again,

                  https://3dwarehouse.sketchup.com/model.html?id=ud374f307-8802-4ac4-9be6-c7f1bdebf68e

                  Thanks again

                  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