sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Dynamic components with constrained range of motion?

    scheduled pinned locked moved Dynamic Components
    sketchup
    3 Posts 3 Posters 1.5k Views 3 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • J Offline
      jimidmb
      last edited by

      Hi!

      I'm trying to make a dynamic component with some moving parts. I can constrain the axes... is there a way to set limits to how far a (sub-)component can be moved/rotated in a given direction?

      Thanks!
      Andrew

      one-reply-to-this-post last-reply-time reply quote 0
      • Q Offline
        quantj
        last edited by

        In the dynamic attributes, when doing animation. You get to choose how much it rotates, so you can choose any degrees if you want.

        one-reply-to-this-post last-reply-time reply quote 0
        • oceanembersO Offline
          oceanembers
          last edited by

          If I understand the question correctly, you want to be able to rotate the component, but only a certain distance? You can just use a conditional statement.
          Angle = if(inputAngle<maxAngle, inputAngle, maxAngle)

          If you wanted to actually be using the rotate tool, you could nest the component within a shell, and have the nested component compensate when the shell's rotation exceeds the max rotation. I don't think you can have a single rotation attribute constrained with a formula and still be able to directly alter it with the rotation tool, unfortunately.

          one-reply-to-this-post last-reply-time 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