• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Dynamic components with constrained range of motion?

Scheduled Pinned Locked Moved Dynamic Components
sketchup
3 Posts 3 Posters 1.5k 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.
  • J Offline
    jimidmb
    last edited by 10 Jun 2015, 15:59

    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

    1 Reply Last reply Reply Quote 0
    • Q Offline
      quantj
      last edited by 11 Jun 2015, 18:40

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

      1 Reply Last reply Reply Quote 0
      • O Offline
        oceanembers
        last edited by 17 Jun 2015, 13:19

        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.

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

        Advertisement