sketchucation logo sketchucation
    • Login
    ⌛ Sale Ending | 30% Off Profile Builder 4 ends 30th September

    Script? Lock Component placement action / lock copy command

    Scheduled Pinned Locked Moved Plugins
    17 Posts 5 Posters 3.5k 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.
    • thomthomT Offline
      thomthom
      last edited by

      @chrisjk said:

      Just copy (Ctrl C) the first instance and then keep hitting paste (Ctrl V).

      That has the drawback that it doesn't respect the insertion point.

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

      1 Reply Last reply Reply Quote 0
      • D Offline
        davidlouis
        last edited by

        Thanks for your input, chrisjk, however this would involve numerous repetitive keyboard actions together with mouse placement... and say 50 mouse clicks with a 'locked' (move)copy would be a lot less hassle and a lot quicker...

        Dave

        1 Reply Last reply Reply Quote 0
        • C Offline
          chrisjk
          last edited by

          If you keep control V pressed, then a new copy appears wherever you single click the mouse. Control V is the lock you want.

          Although the insertion point seems always to be the bottom front LH corner of the bounding box.

          Chris

          1 Reply Last reply Reply Quote 0
          • D Offline
            davidlouis
            last edited by

            Thanks for this suggestion... this would appear to work... if you can live with the insertion point issue as you and thomthom have both mentioned...
            although now with one hand glued to the keyboard and the other the mouse, i've lost my hand for drinking coffee / beer whilst performing monotonous tasks on my model...

            There could still be scope for a plugin to lock the move(copy) command, that way you could specify the relevant reference point on the first copy and then continue to create copies from then on with placement at the same point. Currently this only works for one step...

            Cheers
            Dave

            1 Reply Last reply Reply Quote 0
            • C Offline
              chrisjk
              last edited by

              You can change the insertion point too OK I find now after trying it, so I am not sure why Thom says the method doesn't respect it.

              Chris

              1 Reply Last reply Reply Quote 0
              • D Offline
                davidlouis
                last edited by

                I think he is refering to the fact that the copy (ctrl C) paste (ctrl v) route will always place the new copy by the bottom LH corner of the bounding box (as you have stated too) whereas picking a component from the component window will drop it relative to the component axis... the same is true for the move(copy) tool... you can drag one copy of a component or object from a desired reference point but not for more than one instance.

                A scenario where this might be useful is say placing a series of circular columns (objects / components) by the centre of their bottom face... your method would default to the bottom LH corner of the bounding box and thus not allow successive placements by the centre...

                hmmmm....

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

                  @chrisjk said:

                  You can change the insertion point too OK I find now after trying it, so I am not sure why Thom says the method doesn't respect it.

                  When you Paste, it does not use the insertion point of the component. Instead if uses one of the corner of the bounding box.

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

                  1 Reply Last reply Reply Quote 0
                  • Dave RD Offline
                    Dave R
                    last edited by

                    If the insertion point (the origin of the component's axes correspond to the front, lower left corner of the component, Ctrl+C/Ctrl+V would work fine. I see exactly what DavidLouis is after. It would work much like the Paint Bucket tool in that you pick the component and every time you click somewhere, you get another copy.

                    I can see a lot of uses for this in the work I do. For example I have a number of drawer pulls and handles saved as components for use in other models. I've placed the insertion point so that I can quickly place them at the intersection of guidelines defining the center of the component. Placing the pulls on an 8-drawer chest is rapid now but it would be even faster with an option like DavidLouis suggests.

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      chrisjk
                      last edited by

                      But if I move the insertion point as I try to demonstrate below, I can then place copies by the new insertion point. I use a Mac - dunno if this makes a difference?
                      Screen shot 2010-02-12 at 12.59.13.png

                      Chris

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

                        hm... maybe... I use PC. will have a look at my Mac later on.

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

                        1 Reply Last reply Reply Quote 0
                        • Dave RD Offline
                          Dave R
                          last edited by

                          Snap1.jpg
                          Maybe it is different on Mac. I'll have to look, too. Here's what I get with Copy and Paste. The near knob was the first one placed from the Component library. The one that is highlighted is the result of Ctrl+C/Ctrl+V. I clicked at the intersection of the guidelines. As you can see, the insertion point has nothing to do with the location of the component axes. So, at least for those few of us using SketchUp on PCs, the proposed plugin would be a boon.

                          Etaoin Shrdlu

                          %

                          (THERE'S NO PLACE LIKE)

                          G28 X0.0 Y0.0 Z0.0

                          M30

                          %

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            chrisjk
                            last edited by

                            My mistake I think..
                            I started to make a video showing it and now can't repeat what I thought I did to place by the new insertion point, it seems to be the bottom LH corner of the box again.. 😒

                            Chris

                            1 Reply Last reply Reply Quote 0
                            • Chris FullmerC Offline
                              Chris Fullmer
                              last edited by

                              I've started writing this as it is something I have wanted in the past too. Plus a little bit of extra functionality too! 😄

                              I think I'll get it out by this weekend.

                              Chris

                              Lately you've been tan, suspicious for the winter.
                              All my Plugins I've written

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                davidlouis
                                last edited by

                                FYI for anyone who's following this feed and in particular Dave R, Chris has cracked it and written a script... It can be found on smustard http://www.smustard.com/script/RepeatCopy for a mere $6

                                There is a video explaining 'how to use' but i would just like to add, having given it a try that the insertion point can be customized by changing the component axes in the sample set of components before running the tool.

                                That way you can place the components by any reference point you wish.
                                This should keep you happy Dave R...

                                Thanks Chris for all the effort.

                                Later
                                Dave

                                1 Reply Last reply Reply Quote 0
                                • Dave RD Offline
                                  Dave R
                                  last edited by

                                  Thanks for the update David. I'll have to check it out. I think it would certainly be worth it.

                                  Cheers,

                                  Dave

                                  Etaoin Shrdlu

                                  %

                                  (THERE'S NO PLACE LIKE)

                                  G28 X0.0 Y0.0 Z0.0

                                  M30

                                  %

                                  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