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

Dynamic components - help

Scheduled Pinned Locked Moved Dynamic Components
sketchup
7 Posts 2 Posters 1.8k Views
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 28 Apr 2015, 12:34

    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 29 Apr 2015, 09:12

      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 30 Apr 2015, 10:15

        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 30 Apr 2015, 10:34

          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 30 Apr 2015, 11:52

            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 30 Apr 2015, 11:55

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

              Link Preview Image
              3D Warehouse

              3D Warehouse is a website of searchable, pre-made 3D models that works seamlessly with SketchUp.

              favicon

              (3dwarehouse.sketchup.com)

              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 30 Apr 2015, 11:56

                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,

                Link Preview Image
                3D Warehouse

                3D Warehouse is a website of searchable, pre-made 3D models that works seamlessly with SketchUp.

                favicon

                (3dwarehouse.sketchup.com)

                Thanks again

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

                Advertisement