sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    [plugin]Random replacement of components

    Scheduled Pinned Locked Moved Plugins
    47 Posts 13 Posters 50.6k Views 13 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.
    • pilouP
      pilou
      last edited by

      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
      • soloS
        solo
        last edited by

        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
        • pilouP
          pilou
          last edited by

          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
          • soloS
            solo
            last edited by

            Here is a SU 6 version

            http://dl.dropbox.com/u/1129899/su6.skp

            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
              JBJDesigns
              last edited by

              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
                coty82
                last edited by

                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
                  sdmitch
                  last edited by

                  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
                    coty82
                    last edited by

                    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
                      coty82
                      last edited by

                      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
                        sdmitch
                        last edited by

                        @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
                          coty82
                          last edited by

                          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
                            sdmitch
                            last edited by

                            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
                              coty82
                              last edited by

                              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
                              • sdmitchS
                                sdmitch
                                last edited by

                                @coty82 said:

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

                                Component Replacement has a random option which, if not selected, causes the "Target" components to be replaced in order by the "Source" components. The results is dependent on the order the "Source" components are found in the model or selection.

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

                                http://sdmitch.blogspot.com/

                                1 Reply Last reply
                                Reply Quote 0
                                • C
                                  coty82
                                  last edited by

                                  @sdmitch said:

                                  @coty82 said:

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

                                  Component Replacement has a random option which, if not selected, causes the "Target" components to be replaced in order by the "Source" components. The results is dependent on the order the "Source" components are found in the model or selection.

                                  Oh i see. And what is the rule by which it finds the "Source" components? It always gives me the same result but the initial order seems random. I couldnt replicate your example where you have components 1, 2, 3 which then become a repeated sequence in the target. Could you also integrate this no random feature in the version with child option as well? πŸ˜„ Thanks

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • pilouP
                                    pilou
                                    last edited by

                                    Can you post an image of results of this new version (parent / child) ?

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

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • sdmitchS
                                      sdmitch
                                      last edited by

                                      @unknownuser said:

                                      Can you post an image of results of this new version (parent / child) ?

                                      The result looks the same.

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

                                      http://sdmitch.blogspot.com/

                                      1 Reply Last reply
                                      Reply Quote 0
                                      • sdmitchS
                                        sdmitch
                                        last edited by

                                        I have added the recursive search to my Component Replacement plugin. You can obtain a copy from my blog page. This is a total replacement for the original Random Component Replacement plugin.

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

                                        http://sdmitch.blogspot.com/

                                        1 Reply Last reply
                                        Reply Quote 0
                                        • pilouP
                                          pilou
                                          last edited by

                                          Thx, I will explore this new opus! β˜€

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

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • A
                                            AcesHigh
                                            last edited by

                                            It would be really nice if we could set % of random replacement.

                                            example:

                                            have a building with 300 closed window components. These will be the target

                                            then we also have 4 other window components that will be used as sources: totally opened window, 3/4 opened window, half opened window and 1/4 opened window

                                            this plugin, as it is, will replace ALL closed windows with a random number of each of the other 4 windows.

                                            but it would be ideal if we could decide to make random ONLY which components will be replaced, not the number.

                                            So...

                                            Original Component Remaining: 30% (I set to 30% so 30% of the 300 closed windows will remain as the "closed window" component

                                            Source 1 - 10% (of 300)
                                            Source 2 - 20%
                                            Source 3 - 30%
                                            Source 4 - 10%

                                            After the operation, in random locations of the building, we would have
                                            90 closed windows (original component)
                                            30 4/4 open windows
                                            60 3/4 open windows
                                            90 half open windows
                                            30 1/4 open windows

                                            1 Reply Last reply
                                            Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better πŸ’—

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement