• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Any ideas for a solution?

Scheduled Pinned Locked Moved Dynamic Components
sketchup
8 Posts 5 Posters 1.3k Views 5 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.
  • P Offline
    peweuk
    last edited by 6 Jan 2009, 12:29

    Attached below are two images of a component.
    The component is made up of 3 sub-components - a top and 2 sides.

    One of the attributes options is to change the 'inset' which controls the position and size of the top (the sides remaining static).
    Everything in the attached model works except the diagonal cut at the front (see second image) the ends of which need to always be in line with the ends of the sides.

    Does anyone have any ideas about how this could be done, if indeed it is possible in Sketchup?

    inset1.jpg inset2.jpg

    inset problem.skp

    1 Reply Last reply Reply Quote 0
    • R Offline
      remus
      last edited by 6 Jan 2009, 17:36

      Its a bit long winded, but you could probably do it by making each individual face of the top a component and adjusting it like that.

      http://remusrendering.wordpress.com/

      1 Reply Last reply Reply Quote 0
      • C Offline
        Chris Fullmer
        last edited by 6 Jan 2009, 19:25

        yeah, changing the shape of geometry is outside the scope of DC's. That is into ruby territory. So you would have to do it by dividing the top board into pieces that can be scaled separately. Think of it like this:

        top.jpg

        Then the triangle piece always stays the same but you scale the 2 rectangles as needed. You would also hide the lines you dont want showing. Hope that helps,

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • B Offline
          BUDLA
          last edited by 6 Jan 2009, 19:45

          Look this maybe useful:Nriiul Dia kahe riiuliga.skp
          Budla.

          1 Reply Last reply Reply Quote 0
          • P Offline
            peweuk
            last edited by 6 Jan 2009, 20:35

            Thanks Guys.

            I had another configuration that needed a solution and started to consider breaking that up into sections.
            Before I had time to address it your replies came in thick and fast and now I can see a way of doing them both.

            I just have to figure out the maths to make sure they work parametrically as they should.

            Thanks again.

            1 Reply Last reply Reply Quote 0
            • P Offline
              peweuk
              last edited by 7 Jan 2009, 15:42

              OK, all my models have been adapted and work perfectly for sizing etc.

              But I now have a question about textures.

              The image below shows a typical configuration of 3 separate components.
              All have the same texture applied, but the texture shows differently on the three parts.

              I realise that the tiling in the grain direction could be an issue as the components have different lengths and the triangular piece is not a multiple of the texture image size, but I don't understand how the grain width is being shown extended differently on all three parts as if the texture image is being stretched instead of tiling.

              Any suggestions?

              problem texture - tiling.jpg

              1 Reply Last reply Reply Quote 0
              • B Offline
                BUDLA
                last edited by 7 Jan 2009, 16:56

                @peweuk said:

                OK, all my models have been adapted and work perfectly for sizing etc.

                But I now have a question about textures.

                The image below shows a typical configuration of 3 separate components.
                All have the same texture applied, but the texture shows differently on the three parts.

                I realise that the tiling in the grain direction could be an issue as the components have different lengths and the triangular piece is not a multiple of the texture image size, but I don't understand how the grain width is being shown extended differently on all three parts as if the texture image is being stretched instead of tiling.

                Any suggestions?

                [attachment=0:df9100ga]<!-- ia0 -->problem texture - tiling.jpg<!-- ia0 -->[/attachment:df9100ga]

                Yes it is problem for me too?
                Maybe Ruby guys help us?

                1 Reply Last reply Reply Quote 0
                • S Offline
                  scottlininger
                  last edited by 7 Jan 2009, 22:15

                  Unfortunately, there's not an easy way to do what you're talking about. As you scale things like this your textures will start to line up poorly. One could imagine a ruby script that fixes this, but it wouldn't be particularly easy.

                  Better texture support is a common feature request for DCs, so it's good to see a concrete example of why it's needed. Wish I had a better answer for you.

                  Cheers,

                  • Scott Lininger
                    SketchUp Software Engineer
                    Have you visited the Ruby API Docs?
                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    6/8
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement