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

    Make all Component Unique

    Scheduled Pinned Locked Moved Plugins
    11 Posts 5 Posters 516 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.
    • kenK Offline
      ken
      last edited by

      My problem. If I make all my small parts components, when I wish to copy the larger piece (made from multiple components) and show a progression of activities, i.e. picking up the large piece and moving, lifting or rotating with a crane, since all the parts are components, I have to drill through a multitude of component to make all the parts and pieces unique.

      Is there a one liner that will allow me to make a multi-piece component piece selection and drill down though all the components and groups and make all the component in the selection unique? This would allow me to make a selection of a multiple component piece, run the one liner and have all the component in my selection unique.

      Or maybe there is a plugin that already does this and I am having trouble finding the plugin or realizing that it does what I wish.

      Thank you in advance

      Ken

      Fight like your the third monkey on Noah's Ark gangway.

      1 Reply Last reply Reply Quote 0
      • cottyC Offline
        cotty
        last edited by

        I'm away from my sketchup and can not try, but maybe there is a way in the outliner?

        my SketchUp gallery

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

          m=Sketchup.active_model;m.start_operation('u');m.selection.to_a.select{|e|e.is_a?(Sketchup;;ComponentInstance)||e.is_a?(Sketchup;;Group)}.each{|e|if e.is_a?(Sketchup;;ComponentInstance);e.definition.instances.each{|i|i.make_unique}if e.definition.instances[1];else;e.entities.parent.instances.each{|i|i.make_unique}if e.entities.parent.instances[1];end;};m.commit_operation;
          

          It is untested ! It should make all selected components/groups unique, it is undo-able.
          To 'drill down' needs a script as it'll have to 'iterate'... Something like

          ### EDIT; removed pending update...
          

          Usage TIG.Uniquify.new on a selection.
          Again it's untested πŸ˜•

          TIG

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            FredoScale > Make Unique

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

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

              http://sketchucation.com/forums/viewtopic.php?p=457091#p457091 'Uniquify'...

              TIG

              1 Reply Last reply Reply Quote 0
              • KrisidiousK Offline
                Krisidious
                last edited by

                Isn't that crazy how you can ask for a tool to be created and it just appears? Sorcery I say!

                By: Kristoff Rand
                Home DesignerUnique House Plans

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  It already existed in FredoScale...

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

                  1 Reply Last reply Reply Quote 0
                  • kenK Offline
                    ken
                    last edited by

                    @thomthom said:

                    It already existed in FredoScale...

                    thomthom

                    Actually they work diffidently.

                    If you have 6 copies of nested components, and you pick one copy of the nested components, FredoScale will make all the components in the copy you picked unique, leaving the other 5 copies un-modified. So one copy has been modified and the other 5 are still the same and connected.

                    If you have 6 copies of a nested components, and you pick one copy of the nested components and use TIG program, all 6 copies will be made unique. So the all copies will have been modified and have unique components.

                    At first I wasn't sure, but after using both program on my crane animation, I find both are useful. It just depends on what I wish to achieve.

                    I searched this forum and other web areas and didn't find FredoScale as a solution.

                    thomthom thanks for the find. It is getting harder and harder to keep track of the plugins.

                    Thanks to all you monitor this site and provide advice.

                    Ken

                    Fight like your the third monkey on Noah's Ark gangway.

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      What if you select your whole model and ran fredo's Make Unique?

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

                      1 Reply Last reply Reply Quote 0
                      • kenK Offline
                        ken
                        last edited by

                        @thomthom said:

                        What if you select your whole model and ran fredo's Make Unique?

                        Well I am not sure. My model is in the 50 megs range. And I have found out the hard way, that if you do a series of moving or rotations and you don't save after a few of these operations, ( I don't have an exact number of moves or rotations) Sketchup will shut down. So I am reluctant to do any experiments until I have this project completed.

                        And saving a model after doing a couple of moves/rotation is very time consuming.

                        Will try when I am have time.

                        On another note, I went back to the plugin in index and found FredoScale. And I couldn't find any info on the make unique menu option.

                        Ken

                        Fight like your the third monkey on Noah's Ark gangway.

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          Not sure if it's described in the plugin description - but there is a function there.

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

                          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