sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Is instancing possible?

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 3 Posters 3.2k Views 3 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.
    • Didier BurD Offline
      Didier Bur
      last edited by

      Hi,
      Rick Wilson developed a script that may help you, almost exactly what you want: applyto.rb.
      Here is what it does:
      Context-click on a component or set of components.
      Select "Component Definitions>Get Definition" to get a definition to apply.
      Select "Component Definitions>Apply Definition" to apply a selected definition to selected components.

      You can download it at my site (see signature). Go to "Metric Plugins" page, then click on "Editing" section. Scripts (right-most column) are sorted alphabetically, so it is the 5th 😉

      hope this helps,

      DB

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Look for my Matrix Proximity script(s).

        Matrix lets you place 2D/3D arrays of components at set XYZ spacings and with randomized spacing, rotation, and scaling/handing etc as desired. It then lets you 'drop' these onto any surface below the matrix.

        If you have a family of components called tree01+.skp, tree02~.skp and tree01-.skp for components that are near(+), mid-distance(~) and far-away(-) - with appropriate degrees of complexity in their modelling, then you could use the '-' version for all modelling - whether it's by matrix OR manual placement...

        Then when you are done and you have set up your views you can use Proximity. This lets you set the range of near-mid and mid-far from the camera and swaps any nearby components with the more detailed ones as specified - For example only trees within 10m of the viewer might have leaves etc and 10m-30m might be simple 3D but beyond that the '-' version could be a 2D lollipop with face-me set...

        Take your images... swap all to '-' trees again then change view re-run Proximity etc etc...

        This minimises the file size and speed of regens etc...

        TIG

        1 Reply Last reply Reply Quote 0
        • K Offline
          kwistenbiebel
          last edited by

          Thanks Didier and TIG for pointing out both rubys.
          The first one seems very suitable for what I have in mind.
          I will try that one out.

          Just a question more: is there also a ruby that let's you select all the instances of a same component?

          Any of the scripters thought about combining all the rubies that involve component behaviour/editing/selecting/instancing in to 1 ruby window?

          ...Thanks again guys, it feels as if this community has the @last spirit again.

          1 Reply Last reply Reply Quote 0
          • Didier BurD Offline
            Didier Bur
            last edited by

            Hi K, (too long for a name 💚 )

            @unknownuser said:

            Just a question more: is there also a ruby that let's you select all the instances of a same component?

            As a suggestion you could try my quick selection command.
            It can select what you want in the model, it is based on filters, Autocad-like.
            Download it at my site, "Selection-Layers" page, or here:
            http://www.crai.archi.fr/RubyLibraryDepot/Ruby/EM/quick_selection.zip
            Hope this helps,

            DB

            1 Reply Last reply Reply Quote 0
            • K Offline
              kwistenbiebel
              last edited by

              There are so many rubies that I don't know and that are useful.
              Thanks...and my appreciation to all ruby writers.

              1 Reply Last reply Reply Quote 0
              • Didier BurD Offline
                Didier Bur
                last edited by

                @kwistenbiebel said:

                (Is there a categorised list of all plugins?)

                Working on it.

                DB

                1 Reply Last reply Reply Quote 0
                • Didier BurD Offline
                  Didier Bur
                  last edited by

                  Hi Coen,
                  The rubies are categorized in some way at my site (8 different sections) 😄
                  I would like to have your opinion about these categories and about what should I do to enhance the listing. Any hints ?

                  DB

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kwistenbiebel
                    last edited by

                    @didier bur said:

                    Hi K, (too long for a name 💚 )

                    @unknownuser said:

                    Just a question more: is there also a ruby that let's you select all the instances of a same component?

                    As a suggestion you could try my quick selection command.
                    It can select what you want in the model, it is based on filters, Autocad-like.
                    Download it at my site, "Selection-Layers" page, or here:
                    http://www.crai.archi.fr/RubyLibraryDepot/Ruby/EM/quick_selection.zip
                    Hope this helps,

                    Hi Didier,
                    I installed the ruby but I do not understand how it works properly.
                    I have a hi polycount tree component that I want to place as multiple instances.
                    As a dummy I created also a simple cube as component.
                    Now, how can I substitute all those cubes to the trees?

                    Thanks

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      Pick one of the 'tree-to_go' instances.
                      Use 'Entity Info' to get the Compo'Definition name [if you don't know it already].
                      In the Comp'Browser 'In Model' tab hover over that compo's icon.
                      Right-click to get the context-menu.
                      Choose 'Select Instances'.
                      All of the 'tree-to_go' instances are now selected [highlighted].
                      Now still in the Compo'Browser find and hover over the compo 'tree-to_swap' icon.
                      Right-click to get the context-menu.
                      Choose 'Replace Selected'.
                      All of the 'tree-to_go' compos have become 'tree-to_swap'.

                      Done.

                      This Ruby-less method lets you select and work on / swap compos etc quiet easily...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        kwistenbiebel
                        last edited by

                        TIG,
                        Thanks for all this support.
                        I will try that method right away.

                        Regards,
                        kwistenbiebel

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

                        Advertisement