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

Nested dynamic components

Scheduled Pinned Locked Moved Dynamic Components
sketchup
31 Posts 4 Posters 12.9k 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.
  • G Offline
    Garry K
    last edited by 3 May 2016, 11:57

    JQL

    If you copy, paste and rotate this DC and then use interact then it bounces back to the same plane as the original.

    You need to nest it one level deeper.

    1 Reply Last reply Reply Quote 0
    • J Offline
      JQL
      last edited by 3 May 2016, 12:08

      Thanks Garry!

      I know that but I thought I was giving away too much in one time and this doesn't help learning. I was hoping that issue could be something asked later by anyone interested or even better, the issue could be solved alone.

      A step at a time, each step requiring the next...

      There are even more issues there waiting to be found.

      www.casca.pt
      Visit us on facebook!

      1 Reply Last reply Reply Quote 0
      • N Offline
        newnoob
        last edited by 3 May 2016, 16:50

        Thanks for the help JQL! I really appreciat it. (unfortunately I can't open your file with my SU Pro 2014) However I understand nuts.

        I have already a problem to understand what it means when you use symbols like ! and * in

        =Mother!Rotation-90*

        or
        RotZ = Rotation*90

        A principial logical problem which I have is that in my understanding the white component is only moving around axis z but the grey component is moving around axis z AND is sliding at the same time on axis x.

        But there is nowhere something refering to - change position on axis x - for the grey component. There is only RotZ = other!Rotation-90* - It does not seem reasonable to me that this is enough when the grey component is ALSO MOVING on axis x.

        1 Reply Last reply Reply Quote 0
        • G Offline
          Garry K
          last edited by 3 May 2016, 18:14

          Have you gone through this

          Attention Required! | Cloudflare

          favicon

          (help.sketchup.com)

          Notice the axis:

          folding.png

          And here is the formula. Think of it this way
          The top most component (Mother) gets rotated 90 which rotates both the grey and the white panels.
          Then rotate the gray one -180

          dc folding door.png

          1 Reply Last reply Reply Quote 0
          • G Offline
            Garry K
            last edited by 3 May 2016, 18:19

            Mother!Rotation refers to Rotation variable in Mother (should be named state)
            On Click sets Mother!Rotation to either 0 or 1
            RotZ formula Rotation*90 will be 0 when the state is 0 or 90 when the state is 1
            RotZ in grey panel also references the variable Mother!Rotation and therefore it's value is either 0 or -180

            Pretty simple actually

            1 Reply Last reply Reply Quote 0
            • J Offline
              JQL
              last edited by 3 May 2016, 18:22

              As Garry says, you have to learn the basics first.

              Mother!Rotation is the "Rotation" attribute defined in "Mother" component. The idea is that you can reference attributes that exist in parent components or components nested in the same level.

              When you want to do that, you simply click on the attribute you want to use, from the ones being shown:

              1 - Edit the formula for RotZ inside the grey component;
              2 - Start by typing "=";
              3 - Then click on Mother's "Rotation" attribute;
              4 - And sketchup will autocomplete "Mother!Rotation" inside the formula.

              www.casca.pt
              Visit us on facebook!

              1 Reply Last reply Reply Quote 0
              • J Offline
                JQL
                last edited by 3 May 2016, 18:26

                Garry, I'm know about your plugins but I'm not familiar with them as I never tested them...

                When you say that you're creating your DC's from ruby, are you creating them from scratch from there or are you picking up some existing component template and filling it with stuff using ruby?

                www.casca.pt
                Visit us on facebook!

                1 Reply Last reply Reply Quote 0
                • G Offline
                  Garry K
                  last edited by 3 May 2016, 19:11

                  It is all Ruby (except for door handles).

                  I have web dialogs for parameters. Cab Maker for instance has 8 tabs and around 240 graphics which change for each parameter. Lots of enabling / disabling of parameters depending upon what you select. Choose a library template (just a small text file) and I go read in the data and update the web dialog.

                  I think it is a much better work flow and the resulting skp is kept down in size. This way you can have 100's of choices for textures but I only load in the ones you want to use. This also means that most of the parameters are virtually infinitely sizeable and can be combined many many ways.

                  The only place that I use dynamic attributes is for doors opening / closing and drawers opening / closing.


                  __Cabinets Tab.png

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    JQL
                    last edited by 3 May 2016, 19:27

                    That's really cool Garry! I'm amazed at what you achieved there. And it seems you have the same thing for doors and windows?

                    www.casca.pt
                    Visit us on facebook!

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Garry K
                      last edited by 3 May 2016, 19:59

                      Yes for doors, I'm working on windows and on a wall maker.

                      As you probably guessed - that bifold came out of my door maker.

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        JQL
                        last edited by 3 May 2016, 21:14

                        That sort of thing interests me a lot more than cabinets.

                        You're talking about walls doors and windows all in the same plugin?

                        www.casca.pt
                        Visit us on facebook!

                        1 Reply Last reply Reply Quote 0
                        • N Offline
                          newnoob
                          last edited by 3 May 2016, 22:42

                          Garry and JQL thank you for your extensive answers. I'll process them tomorrow.

                          Thanks to the explanation:

                          @garry k said:

                          Think of it this way
                          The top most component (Mother) gets rotated 90 which rotates both the grey and the white panels.
                          Then rotate the gray one -180

                          it makes now perfectly sense to me.

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            Garry K
                            last edited by 3 May 2016, 23:16

                            JQL

                            3 separate plugins.

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              juju
                              last edited by 4 May 2016, 07:28

                              @garry k said:

                              JQL

                              3 separate plugins.

                              How's the window plugin coming along Garry?

                              Save the Earth, it's the only planet with chocolate.

                              1 Reply Last reply Reply Quote 0
                              • N Offline
                                newnoob
                                last edited by 4 May 2016, 17:40

                                @ JQL

                                I've just checked out your fb-gallery and I like your attic renewal, the material choice and integration of old stuff which was already at the attic before the renewal gives it a warm and cosy feeling. I also like pure minimalistic designs where warm wood tones are mixed with grey concrete tones, like your office, this is like wood and stone. This in combination with some plant green always works for me. Furthermore I like the tiny garden. I am interested in the utilisation of small spaces, like micro houses, micro homes, capsule hotels.

                                1 Reply Last reply Reply Quote 0
                                • G Offline
                                  Garry K
                                  last edited by 4 May 2016, 18:26

                                  juju

                                  I haven't got very far with the window plugin. I have been concentrating on a wall plugin - then I'll go back to the window plugin.

                                  1 Reply Last reply Reply Quote 0
                                  • N Offline
                                    newnoob
                                    last edited by 6 May 2016, 10:58

                                    Ok, I think I got it. I had a problem to understand what relates to what.

                                    Which purpose has:
                                    Custom
                                    Rotation 0

                                    ?

                                    The sole purpose of it is to display if the the state of onclick is set to 0 or 1 - is it?

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      JQL
                                      last edited by 6 May 2016, 11:36

                                      @newnoob said:

                                      @ JQL

                                      I've just checked out your fb-gallery and I like your attic renewal, the material choice and integration of old stuff which was already at the attic before the renewal gives it a warm and cosy feeling. I also like pure minimalistic designs where warm wood tones are mixed with grey concrete tones, like your office, this is like wood and stone. This in combination with some plant green always works for me. Furthermore I like the tiny garden. I am interested in the utilisation of small spaces, like micro houses, micro homes, capsule hotels.

                                      Thanks newnoob...

                                      We are working on a new site and we have some new projects on that line, so keep in touch!

                                      www.casca.pt
                                      Visit us on facebook!

                                      1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        Garry K
                                        last edited by 7 May 2016, 21:40

                                        Yes
                                        The Mother component has an new variable that you add called Rotation.
                                        Rotation starts out = 0
                                        Click once and Rotation goes to 1
                                        Click again and Rotation goes to 0

                                        In a situation where you want more than 2 states - separate them by commas.

                                        So for a 4 state variable where you might open and close the door in increments.
                                        ANIMATESLOW("some variable", 0, 1, 2, 3)

                                        1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          newnoob
                                          last edited by 9 May 2016, 16:55

                                          @garry k said:

                                          Yes
                                          The Mother component has an new variable that you add called Rotation.
                                          Rotation starts out = 0
                                          Click once and Rotation goes to 1
                                          Click again and Rotation goes to 0

                                          In a situation where you want more than 2 states - separate them by commas.

                                          So for a 4 state variable where you might open and close the door in increments.
                                          ANIMATESLOW("some variable", 0, 1, 2, 3)

                                          Yea I get it now. It's basically math with functions and variables, variables which can be defined at one place to use it at another, not so complicated actually.

                                          Thank you for your time Garry.

                                          Especially -

                                          @garry k said:

                                          Think of it this way
                                          The top most component (Mother) gets rotated 90 which rotates both the grey and the white panels.

                                          Then rotate the gray one -180

                                          • was an eye-opener.
                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 2 / 2
                                          2 / 2
                                          • First post
                                            21/31
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement