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

    Multiple DC Objects Rotating Together

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    3 Posts 2 Posters 903 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.
    • M Offline
      m456arcus
      last edited by

      Hi

      Can you interact with one object and make others go of at the same time? For example, on a car if you click on one wheel all 4 start turning?

      I'm new to dynamic components so any help would be great.

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

        YEs, you can do that. I've forgotten some of the DC syntax, but the idea is that you add an OnClick attribute to the car. And set it as animation. And specify that it animates 0 to 360. Then make another attribute that is set to equal the value of that OnClick cell. So what happens is when the car is click on with the interact tool, it will animate the OnClcik cell value from 0 to 360, and the custom attribute will reflect that value. The make all the wheels and set their rotation value to equal the cell that that is animating from 0 to 360. Each tire's rotation should be set to the same cell and then they will all rotate evenly. I'll see if I can get quick example working.

        Chris

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

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

          ok, I got something working. 3 cars, each have their wheels rotating. One just rotates wheels. One also drives forwards and backwards. One opens and closes its doors. Check out the code, its pretty simple. All animation is being driven by a single OnClick for each car. Check out the video and download the model to see the DC values. Note, there is no sound in the video. Hope it helps,

          [flash=542,353:6a3bkcko]http://www.chrisfullmer.com/chrisfullmer/forums/3_cars_DC_demo.swf[/flash:6a3bkcko]

          Chris


          three DC cars.skp

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

          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