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

[plugin]Random replacement of components

Scheduled Pinned Locked Moved Plugins
47 Posts 13 Posters 43.8k 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.
  • P Offline
    pilou
    last edited by 27 Jun 2011, 12:36

    @Edson πŸ˜„

    No, Source and Target are not nescessary names πŸ˜‰
    It's just these given by default in the dialog box πŸ˜‰
    you can put any names you want πŸ˜„ (of course these that you have yet renamed your components in the Info Box πŸ˜‰
    But carreful it's sensitive cases !!!

    Frenchy Pilou
    Is beautiful that please without concept!
    My Little site :)

    1 Reply Last reply Reply Quote 0
    • P Offline
      pilou
      last edited by 27 Jul 2011, 22:22

      And here the 24 positions plug of Sdmitch πŸ˜‰
      With his autorisation! 😎


      Pilou24Positions.rb

      Frenchy Pilou
      Is beautiful that please without concept!
      My Little site :)

      1 Reply Last reply Reply Quote 0
      • A Offline
        AcesHigh
        last edited by 12 Aug 2011, 14:52

        there are many uses for this plugin.

        for example... think of 3D tiles on a roof. Each tile is a component. But the roof gets so artificial, with all the tiles exactly the same color, no stains, etc. With this plugin, you would be able to, for example, create some 10 different roof tiles, each of them a slight different color variation, some stains, etc. And randomly replace the original components along the entire roof.

        another possibility: a building with a glass faΓ§ade. Real such buildings will have curtains/blinds behind the windows. Make the the building with window components. The random replace them with OTHER window components, each window component with blinds in different positions (no blinds, blinds half way pulled, pulled down completely)

        there are so many uses!!!

        1 Reply Last reply Reply Quote 0
        • R Offline
          rachmatrf
          last edited by 21 Feb 2012, 08:28

          Thhank you Sdmitch

          1 Reply Last reply Reply Quote 0
          • P Offline
            pilou
            last edited by 31 May 2012, 09:39

            Sdmitch has made a new variant with no Random integrated! β˜€
            (see second post for more precsion of use πŸ˜‰

            No Random.jpg


            31 May 2012

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • P Offline
              pilou
              last edited by 31 May 2012, 10:50

              A little tut πŸ˜‰
              No limite of number of any components source or target! πŸ‘
              You can name all your source components by hand but it's painfull when you have numerous!
              So a little trick πŸ˜‰
              Just select Components source and copy this in the ruby console
              Sketchup.active_model.selection.each{|c| c.name='Source'}
              Your source components are now named "Source"
              You can make the same for Target Component πŸ˜‰
              Just select Components source and copy this in the ruby console
              Sketchup.active_model.selection.each{|c| c.name='Target'}

              Edit : In fact for the rename Source and Target you can make the just with the Entity Info Box! πŸ’š

              rollend1.jpg
              You can now use the random plug πŸ˜‰ (click for zoom)
              rollend2.jpg

              Of course it's infinite possibilities πŸ˜’
              trop rigolo.jpg

              You can fill the space with no periodic infinite volumes πŸ’š
              Rollem2.jpg
              you can play with this speedy one πŸ˜„

              Edit 31 May 2012
              A new variant without random is integrated!
              No Random.jpg


              Dice2.skp


              renameInstances.rb


              31 May 2012

              Frenchy Pilou
              Is beautiful that please without concept!
              My Little site :)

              1 Reply Last reply Reply Quote 0
              • S Offline
                solo
                last edited by 13 Feb 2013, 16:47

                This is not working for me, Pilou can I send you a sample model by pm and you show how to do it?

                http://www.solos-art.com

                If you see a toilet in your dreams do not use it.

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pilou
                  last edited by 13 Feb 2013, 16:52

                  Of course yes you can! β˜€
                  with a small file (sufficient for the concept) and a save as V7!!! πŸ˜‰

                  Frenchy Pilou
                  Is beautiful that please without concept!
                  My Little site :)

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    solo
                    last edited by 13 Feb 2013, 16:58

                    http://dl.dropbox.com/u/1129899/test%20tree.skp

                    Strange how the size of file increases 50% when saving as SU7 from SU 8.

                    http://www.solos-art.com

                    If you see a toilet in your dreams do not use it.

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pilou
                      last edited by 13 Feb 2013, 17:02

                      Sorry it's always V8 when its arriving at home !!! πŸ˜‰

                      Frenchy Pilou
                      Is beautiful that please without concept!
                      My Little site :)

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        solo
                        last edited by 13 Feb 2013, 17:06

                        Here is a SU 6 version

                        Link Preview Image
                        Dropbox - 404

                        favicon

                        (dl.dropbox.com)

                        http://www.solos-art.com

                        If you see a toilet in your dreams do not use it.

                        1 Reply Last reply Reply Quote 0
                        • JBJDesignsJ Offline
                          JBJDesigns
                          last edited by 16 Apr 2013, 22:45

                          This is an awesome plugin... thank you both very much!!! Jo πŸ˜„

                          ...you send them to school, you give them books, and they eat the pages...

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            coty82
                            last edited by 15 Oct 2014, 06:00

                            This plugin is indeed great with so much potential. Do you think it could be possible to
                            make it able to replace child components that are inside mother componennts?
                            You could do so many patterns just by replacing components inside components.

                            1 Reply Last reply Reply Quote 0
                            • sdmitchS Offline
                              sdmitch
                              last edited by 15 Oct 2014, 20:41

                              coty82

                              Please check Personal Messages.

                              Nothing is worthless, it can always be used as a bad example.

                              http://sdmitch.blogspot.com/

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                coty82
                                last edited by 16 Oct 2014, 01:27

                                Hello sdmitch
                                Thanks for the fast reply! I have installed it but unfortunatelly when i try to use it it just freezes Sketchup no matter if i choose to include child components or not. Is it working for you?

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  coty82
                                  last edited by 16 Oct 2014, 01:46

                                  Update
                                  I am trying to use it like this :
                                  I have two components. One of them is named Target. I select them both and make them a mother component. This is how i was thinking of it to work.
                                  I create another component named Source. When i use the plugin like this it just freezes.
                                  But when i have two componenets and make them a group, and try to use the plugin, nothing happends, but it doesnt freeze neither.
                                  Sorry i cannot reply in private because i dont have enough activity on the forums πŸ˜„

                                  1 Reply Last reply Reply Quote 0
                                  • sdmitchS Offline
                                    sdmitch
                                    last edited by 16 Oct 2014, 13:43

                                    @coty82 said:

                                    Update
                                    I am trying to use it like this :
                                    I have two components. One of them is named Target. I select them both and make them a mother component. This is how i was thinking of it to work.
                                    I create another component named Source. When i use the plugin like this it just freezes.
                                    But when i have two componenets and make them a group, and try to use the plugin, nothing happends, but it doesnt freeze neither.
                                    Sorry i cannot reply in private because i dont have enough activity on the forums πŸ˜„

                                    The plugin does not look for groups, components only. I see that the plugin has a bug, that I will fix, when there is only a single "Source" component. Create a second "Source" component and try again.

                                    Check PM's for updated version.

                                    Nothing is worthless, it can always be used as a bad example.

                                    http://sdmitch.blogspot.com/

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      coty82
                                      last edited by 17 Oct 2014, 01:21

                                      Allright, it works now, thanks alot πŸ‘ ! But i noticed that it only works with a single level in the components hierarchy, that is when i have some individual components part of a mother component. But if i include this in another larger component, it doesnt work. Even if i copy the source inside the larger component. Its still great but i wonder if this would be a difficult property to implement?

                                      Anyway i have another ideea about it πŸ˜„ . In a previous post you said it is also able to replace components based on a rule? For example i have 3 sources 1, 2, 3 And i want to distribute them according to a repeating pattern for ex 11231123, etc. They could replace an array of targets. This would be amazing for creating panelling patterns for facades for example. But it would probably need to work with something like series, to know the start and ending point. Dunno if its possible or how complicated?

                                      1 Reply Last reply Reply Quote 0
                                      • sdmitchS Offline
                                        sdmitch
                                        last edited by 17 Oct 2014, 01:49

                                        Yes, it currently will only work for one level, mother and child, no grand kids.

                                        As the name implies, it is supposed to be a random replacement.

                                        Nothing is worthless, it can always be used as a bad example.

                                        http://sdmitch.blogspot.com/

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          coty82
                                          last edited by 17 Oct 2014, 02:28

                                          I see there is another version with No random option, how is it working? I tried but i didnt see a difference.

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

                                          Advertisement