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

    Help: Dynamic

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    18 Posts 3 Posters 2.1k Views 3 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.
    • D Offline
      Don-Quixote
      last edited by

      @daredevil said:

      Hard to answer without the model... Post the SU file please.

      Link Preview Image
      File sharing and storage made simple

      favicon

      (www.mediafire.com)

      Select all and show all to see the inside axis (origin)
      PS: I forgot to write the entere code: ANIMATESLOW(RotX,0,90,180).
      I would like to turn the cube in its 3 combinations of colours

      1 Reply Last reply Reply Quote 0
      • DareDevilD Offline
        DareDevil
        last edited by

        Wow !! 27Mb !! large file for a "simple" cube 😮

        Edit : OK, you dont purge the componants and materials lib. Now is only 800kb 😉

        So, DC rotation in 3D space is hard to solve. For the DC, the rotation axes are parent componant axes. so you have to align "Skewb" axes to the "Dinamico" axes. In that case you can turn around the X axe without problem.

        The other problem is the way that DC interpret the rotation value. If you say "turn to 240°" the Rot value is not 240 but -120... And if you say "turn to -120°" it make an error creating a new value called "-120" 😠
        My way to solve it is to use a value, animate this value with only positive numbers and link the Rot to this value :
        [pre:35tf4lrj]RotX -> = Angle
        onClick -> animateslow(Angle,-0,120,240)
        Angle -> 0[/pre:35tf4lrj]
        Hope that helps you...
        Skewb_DD.skp

        1 Reply Last reply Reply Quote 0
        • D Offline
          Don-Quixote
          last edited by

          First, Thanks for your time.

          I did a little test but 😳 completely fail
          dimensions still big (5Mb) (I discovered how to reduce the dimension 👍 )

          My object don't turn (I'm feeling stupid)
          Ah! how can I upload the US file in forum without my host site?
          Ty again

          Link Preview Image
          File sharing and storage made simple

          favicon

          (www.mediafire.com)

          (P.s sorry for my english)

          1 Reply Last reply Reply Quote 0
          • DareDevilD Offline
            DareDevil
            last edited by

            @don-quixote said:

            I did a little test but 😳 completely fail
            My object don't turn
            You forgot to associate Angolo and RotX with
            RotX -> = Angolo
            But in this case, the Test object will be oriented on the X world axe to turn around it.
            You must create a componant "around" the Test. Manualy turn this object with the X axe on the wanted orientation. Then, the Test object will turn around this axe.

            @unknownuser said:

            dimensions still big (5Mb) (I discovered how to reduce the dimension 👍 )
            In the componants windows, click on the arrow and select "Purge unused elements". After, do th same in the materials windows.

            @unknownuser said:

            Ah! how can I upload the US file in forum without my host site?
            Ty again
            Go in the full editor (under the Quick Reply box), then under the text box there is a "Upload attachment" to join files.

            @unknownuser said:

            (P.s sorry for my english)
            Sorry for my english too 😉
            You know how called a man who know three languages ? A trilingual.
            You know how called a man who know two languages ? A bilingual.
            You know how called a man who know only one language ? A french man!
            ... that's right, I'm french...

            1 Reply Last reply Reply Quote 0
            • D Offline
              Don-Quixote
              last edited by

              http://oi45.tinypic.com/28jxhg9.jpg

              I create a solid (the arrow), then I changed the axes, and I wrote in the DC:

              RotX - Angolo
              On click - Animateslow(Angolo, 0,90,180,270)
              Angolo - 0

              After this my arrow rotate on the floor
              At this moment is it all correct?


              14Kb XD

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by

                2013-02-06_163158.png

                Hi

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Don-Quixote
                  last edited by

                  ooooooooooh, I only wrote RotX Angolo
                  ahahaha

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Don-Quixote
                    last edited by

                    http://oi45.tinypic.com/24x3t00.jpg

                    .... what did I do wrong?

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jim
                      last edited by

                      I do not think you have done nothing wrong - it appears, unfortunately that this is how Dynamic Components currently behave.

                      Hi

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Don-Quixote
                        last edited by

                        OOOh... so what is my next step to rotate my skuwb (I'm trying to repet step by step what DareDevil did)

                        1 Reply Last reply Reply Quote 0
                        • DareDevilD Offline
                          DareDevil
                          last edited by

                          You don't do wrong, you just miss a step 😉

                          The Components don't turn around own axes but around worldaxes. And the worldis the local world were they are (also called Parent).
                          If you put your arrow like you do, the world is the global Sketchup scene. If you ask to turn around the X ax, the arrow will turn around the red ax of the scene, and as you don't tell anything for Y and Z rotation, SU must choose a value to solve 3D rotation and choose 0. So your arrow align to the red ax (RotY=0 and RotZ=0) and turn around it (RotX=something).

                          To avoid it, you must create la local world around your arrow :

                          1- Draw something around your arrow (here an empty cube centered on the axes)
                          DCTurn_1.jpg
                          2- Select all (cube and arrow) and create a component (here called LocalWorld). Now you have a Arrowcomponent in a LocalWorldcomponent.
                          DCTurn_2.jpg
                          3- Change the axes of the LocalWorldto align to the Arrowaxes.
                          DCTurn_3.jpg
                          4- Now you can turn the LocalWorldas you want (and so the inside Arrowto).
                          DCTurn_4.jpg
                          5- When you ask Arrowto turn around X ax, it will turn around the LocalWorldX ax and so, the Arrow seem to turn around its own X ax.
                          DCTurn_5.jpg
                          Hope is better with some picts 😉

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            Don-Quixote
                            last edited by

                            Yeeeeeees my arrow can turn now 😍 thaaanks

                            Just last question: is it normal my box inside the arrow don't turn with it?

                            http://oi46.tinypic.com/rtnvop.jpg

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              Don-Quixote
                              last edited by

                              This project it's dedicated to DareDevil and Jim; thank you guys for helped me


                              Piramix.skp

                              1 Reply Last reply Reply Quote 0
                              • DareDevilD Offline
                                DareDevil
                                last edited by

                                @don-quixote said:

                                This project it's dedicated to DareDevil and Jim; thank you guys for helped me

                                Nice ! 👍 👍
                                I've got one when I was younger, in the 80's 😄 😄

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  Don-Quixote
                                  last edited by

                                  Administrators can close this topic 😉

                                  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