• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Help: Dynamic

Scheduled Pinned Locked Moved Dynamic Components
sketchup
18 Posts 3 Posters 2.1k 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.
  • D Offline
    Don-Quixote
    last edited by Don-Quixote 5 Feb 2013, 03:25

    Hi guys, I'm creating a skewb
    http://oi50.tinypic.com/ok2b6c.jpg
    and I already completed it, but now I'm trying to move it with Dynamic Component tool...I show you my problem:
    http://oi48.tinypic.com/25dep.jpg
    ๐Ÿ˜ž ๐Ÿ˜ž ๐Ÿ˜ž

    1 Reply Last reply Reply Quote 0
    • D Offline
      Don-Quixote
      last edited by 5 Feb 2013, 10:26

      [up]

      1 Reply Last reply Reply Quote 0
      • D Offline
        DareDevil
        last edited by 5 Feb 2013, 16:32

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

        1 Reply Last reply Reply Quote 0
        • D Offline
          Don-Quixote
          last edited by 5 Feb 2013, 16:52

          @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
          • D Offline
            DareDevil
            last edited by 6 Feb 2013, 09:25

            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 6 Feb 2013, 13:24

              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
              • D Offline
                DareDevil
                last edited by 6 Feb 2013, 15:18

                @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 6 Feb 2013, 21:20

                  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 6 Feb 2013, 21:33

                    2013-02-06_163158.png

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Don-Quixote
                      last edited by 6 Feb 2013, 22:36

                      ooooooooooh, I only wrote RotX Angolo
                      ahahaha

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Don-Quixote
                        last edited by 6 Feb 2013, 22:56

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

                        .... what did I do wrong?

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          Jim
                          last edited by 7 Feb 2013, 01:00

                          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 7 Feb 2013, 01:45

                            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
                            • D Offline
                              DareDevil
                              last edited by 7 Feb 2013, 08:09

                              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 7 Feb 2013, 12:15

                                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 7 Feb 2013, 20:58

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


                                  Piramix.skp

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    DareDevil
                                    last edited by 8 Feb 2013, 12:05

                                    @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 8 Feb 2013, 16:17

                                      Administrators can close this topic ๐Ÿ˜‰

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

                                      Advertisement