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

    [Plugin] Groups to Components

    已排程 已置頂 已鎖定 已移動 Plugins
    50 貼文 20 Posters 45.6k 瀏覽 20 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • thomthomT 離線
      thomthom
      最後由 編輯

      That is a good question. I got X-Frog trees myself - have it on my todo list somewhere to find a way to optimize them.

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 條回覆 最後回覆 回覆 引用 0
      • thomthomT 離線
        thomthom
        最後由 編輯

        Maybe my component dropper plugin will work for this...?

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 條回覆 最後回覆 回覆 引用 0
        • A 離線
          autarchos
          最後由 編輯

          thanks for the tip, thomthom. i see solo proposed the idea in your component dropper thread. i am experimenting with it on a few trees. it actually makes the workflow quite a bit faster and easier, but does not keep geometry in the exact original orientation.

          thus, i'm creating components of each leaf (painfully slow), using component dropper to make them all the same (instantaneous, even for thousands of leaves), and then using chris fullmer's scale and rotate multiple to give them a little bit of randomness. i'll show you a tree with some stats when finished - it's slow, but i think will yield a more natural chaotic result than the original trees - xfrog tends to be too fractal and perfect in my opinion.

          a note however, your 'groups to components' works almost instantly, whereas the same function with matts plugin took several minutes. perhaps at some point this script could be updated to work on non-group entities as matts does, but with more efficiency.

          1 條回覆 最後回覆 回覆 引用 0
          • P 離線
            publied
            最後由 編輯

            very interesting Thom,
            now i'm trying it!

            hire me@ http://www.publied.it !

            1 條回覆 最後回覆 回覆 引用 0
            • halroachH 離線
              halroach
              最後由 編輯

              Hi,

              Sometimes when I'm using this plugin it only converts one selected group to one component leaving all the rest as groups. Not sure what's causing that. ideas?

              FlexTools - Super Quick Windows, Doors, Slats...

              1 條回覆 最後回覆 回覆 引用 0
              • halroachH 離線
                halroach
                最後由 編輯

                @halroach said:

                Hi,

                Sometimes when I'm using this plugin it only converts one selected group to one component leaving all the rest as groups. Not sure what's causing that. ideas?

                I copied and pasted all the groups to another sketchup model (outside of the one component they were in, and they were all converted. could it be this plugin doesn't work within a component?

                FlexTools - Super Quick Windows, Doors, Slats...

                1 條回覆 最後回覆 回覆 引用 0
                • tt_suT 離線
                  tt_su
                  最後由 編輯

                  Do you have a sample scenario/model where I can reproduce this?

                  1 條回覆 最後回覆 回覆 引用 0
                  • irwanwrI 離線
                    irwanwr
                    最後由 編輯

                    I thought there's already Group to Components function in Selection Toys, isn't it?

                    1 條回覆 最後回覆 回覆 引用 0
                    • thomthomT 離線
                      thomthom
                      最後由 編輯

                      @irwanwr said:

                      I thought there's already Group to Components function in Selection Toys, isn't it?

                      It's somewhat different. Selection Toys got a function to convert group copies to component instance while ensuring each instance isn't made unique.
                      This small extension had a special purpose for preserving naming in a special way by request of some user.

                      Thomas Thomassen — SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 條回覆 最後回覆 回覆 引用 0
                      • B 離線
                        bsfranza
                        最後由 編輯

                        hi there,

                        could it be that its not yet updated for su 2014???

                        its not showing in any menue 😞

                        1 條回覆 最後回覆 回覆 引用 0
                        • Dave RD 離線
                          Dave R
                          最後由 編輯

                          @bsfranza said:

                          hi there,

                          could it be that its not yet updated for su 2014???

                          its not showing in any menue 😞

                          No. It works fine n SketchUp 2014. How did you install it? If installed correctly, it will appear in the Plugins menu.

                          Etaoin Shrdlu

                          %

                          (THERE'S NO PLACE LIKE)

                          G28 X0.0 Y0.0 Z0.0

                          M30

                          %

                          1 條回覆 最後回覆 回覆 引用 0
                          • K 離線
                            koliboti
                            最後由 編輯

                            Hi, do you guys have plugin that makes components to groups, that work wit SU2015?

                            1 條回覆 最後回覆 回覆 引用 0
                            • TIGT 離線
                              TIG Moderator
                              最後由 編輯

                              @koliboti said:

                              Hi, do you guys have plugin that makes components to groups, that work wit SU2015?
                              I assume you mean to make component-instances into groups ?
                              This one liner processed a selection. Making any component-instances into groups, using the same name/layer/material/attributes as the original...

                              m=Sketchup.active_model;a=m.active_entities;s=m.selection;m.start_operation('!');s.grep(Sketchup;;ComponentInstance).each{|i|g=a.add_group();e=g.entities;n=e.add_instance(i.definition, i.transformation);n.explode;g.name=i.definition.name;g.layer=i.layer;g.material=i.material;i.attribute_dictionaries.each{|d|d.each_pair{|k,v|g.add_attribute(d.name,k,v)}}if i.attribute_dictionaries;i.erase!;};m.commit_operation
                              

                              TIG

                              1 條回覆 最後回覆 回覆 引用 0
                              • K 離線
                                koliboti
                                最後由 編輯

                                @tig said:

                                @koliboti said:

                                Hi, do you guys have plugin that makes components to groups, that work wit SU2015?
                                I assume you mean to make component-instances into groups ?
                                This one liner processed a selection. Making any component-instances into groups, using the same name/layer/material/attributes as the original...

                                m=Sketchup.active_model;a=m.active_entities;s=m.selection;m.start_operation('!');s.grep(Sketchup;;ComponentInstance).each{|i|g=a.add_group();e=g.entities;n=e.add_instance(i.definition, i.transformation);n.explode;g.name=i.definition.name;g.layer=i.layer;g.material=i.material;i.attribute_dictionaries.each{|d|d.each_pair{|k,v|g.add_attribute(d.name,k,v)}}if i.attribute_dictionaries;i.erase!;};m.commit_operation
                                

                                Thank you very-very much TIG! it works perfect also with imported 3ds objects. 🎉

                                1 條回覆 最後回覆 回覆 引用 0
                                • C 離線
                                  camilo_caicedo
                                  最後由 編輯

                                  Hi thomthom.

                                  Your conversion tool changes all groups in the selection to components, one component for each group where the group's name is transferred to the component's definition's name.

                                  Please, do you know about some plugin which changes all groups in the selection to a single component (the groups should be a copy of a single group), so you obtain one component for each group, where the component definition name of each component is the same?

                                  People often forget to make a component instead of a group, so if you repeat a group, and then you rotate or move that group to diferent places many times, it would be hard to make a component and then repeat it, rotate or move it many times again. A tool to convert those groups to one component would allow you to go on with your job.

                                  Thank's

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • thomthomT 離線
                                    thomthom
                                    最後由 編輯

                                    If the group haven't been modified (or even opened) then Selection Toys can convert such groups to components. But if the user has performed any kind of action that makes SU kick in the make-unique then it won't be able to detect that.
                                    You can force replace with Component Replacer, but you need to pick out which ones to replace with what.


                                    2015-03-11_18h28_06.png

                                    Thomas Thomassen — SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • R 離線
                                      rv1974
                                      最後由 編輯

                                      Thomthom, may I request this tool to keep the object(s) selected after conversion?

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • Y 離線
                                        YCL furniture
                                        最後由 編輯

                                        Hello, Thom
                                        maybe have any plugin to convert components to groups? without losing the component name

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • Dave RD 離線
                                          Dave R
                                          最後由 編輯

                                          @ycl furniture said:

                                          Hello, Thom
                                          maybe have any plugin to convert components to groups? without losing the component name

                                          Why convert components to groups?

                                          Etaoin Shrdlu

                                          %

                                          (THERE'S NO PLACE LIKE)

                                          G28 X0.0 Y0.0 Z0.0

                                          M30

                                          %

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • Y 離線
                                            YCL furniture
                                            最後由 編輯

                                            @dave r said:

                                            @ycl furniture said:

                                            Hello, Thom
                                            maybe have any plugin to convert components to groups? without losing the component name

                                            Why convert components to groups?

                                            Because I design furniture with components. After designing the furniture, I use the ABF solutions plugin to make report list of furniture panels cutting and edges bandings. This plugin only works with groups.
                                            Maybe you know of another plugin that make report list of furniture panels and edges banding?
                                            I made a video where I showed what features I need (https://www.youtube.com/watch?v=85djT5KbnZw)

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement