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

    [Plugin] Memory Copy (xformclone.rb)

    Scheduled Pinned Locked Moved Plugins
    42 Posts 24 Posters 54.8k Views 24 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.
    • plot-parisP Offline
      plot-paris
      last edited by

      oh, of course I understood it to be just a fist vague idea of the script. all the more reason to be impressed, that you are able to produce something like this during an after lunch expresso!

      and of course, take your time. this plugin is nothing desperately needed (allthough it will be one of the most used ones... πŸ˜‰ )

      1 Reply Last reply Reply Quote 0
      • AdamBA Offline
        AdamB
        last edited by

        I decided to get it out the way. Here it is.

        1. Create an instance of component
        2. Duplicate and position a second instance
        3. Right click on first instance and choose "Play it again.."
        4. Now if you hover over any instance that is the same definition as your 'start' instance it will be highlighted.
        5. Left button to create a new instance.
        6. Type string of the form "123x" in the VCB to set the number of instances to create per left button click.
        7. Click away from geometry to exit tool

        Enjoy,
        Adam


        Stick it in your plugins folder

        Developer of LightUp Click for website

        1 Reply Last reply Reply Quote 0
        • A Offline
          agrazdi
          last edited by

          WOW MARVELOUS

          Thanks

          agrazdi

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

            Cheers adam,

            i have a feeling this is going to become one of those 'how did i ever do that before?' type plugins.

            http://remusrendering.wordpress.com/

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

              A quick demo for the non believers.
              362 segments and about 4 clicks of the mouse πŸ˜„

              http://farm4.static.flickr.com/3053/2850475960_fce2e892d6_o.jpg

              http://remusrendering.wordpress.com/

              1 Reply Last reply Reply Quote 0
              • plot-parisP Offline
                plot-paris
                last edited by

                this is marvellous! thanks a lot, Adam!

                however, I don't get the multiply function to work. tried everything; typing in the number with and without an x, before and after left clicking the second component. didn't get it to work 😞
                (I use Windows Vista)

                1 Reply Last reply Reply Quote 0
                • AdamBA Offline
                  AdamB
                  last edited by

                  Glad you like it.

                  Feel free to slap me here but you did press return after typing the "5x" or whatever, didn't you.

                  Adam

                  Developer of LightUp Click for website

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

                    Wow! Adam, this is another great plugin. Thank you.

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Matt666
                      last edited by

                      Excellent script !!!! Thank you !

                      @unknownuser said:

                      • version_2 has to be applied directly after the copying/transformation process (like the array fuction only works directly after the copying process, because it retrieves it's information from the last action). therefore we need a shortcut for this function (and an entry in one of the menues).
                        Totally agree. That would be awesome !

                      Frenglish at its best !
                      My scripts

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        Matt666
                        last edited by

                        A little update, for future improvements noticed above !!
                        πŸ˜‰ πŸ˜„ πŸ˜„
                        Good luck AdamB !! πŸ’š πŸ’š 😍

                        PS : And sorry for my incompetence... I don't have enough talent to modify your script πŸ˜•

                        Frenglish at its best !
                        My scripts

                        1 Reply Last reply Reply Quote 0
                        • free agentF Offline
                          free agent
                          last edited by

                          awsome script, i can think of quite a few things to use this for. but i have a suggestion/request

                          1. could we also get a version where we can devide the action? so it fills in the instances between a move and rotation?

                          2. for tree branches this would be awsome if we could taper the size of instances or even have some kind of size randomizer on it.

                          but i think the first request is more important... thanx for the script

                          http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

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

                            Thanks Adam,

                            Wonderful script!

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

                              Yet another muscle to SU. πŸ˜„

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

                              1 Reply Last reply Reply Quote 0
                              • W Offline
                                watkins
                                last edited by

                                Dear Adam,

                                Trying out your script and enjoying the unexpected results.

                                Thank you for all your efforts.

                                Kind regards,
                                Bob


                                Move and rotate.skp

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  mattjc
                                  last edited by

                                  Hi, this script is excellent.. trouble is i am having some trouble - when i key in the Nx in the VC box nothing happens - I noticed someone else had this trouble... i am running windows XP - can anyone help?!?!

                                  Thanks

                                  1 Reply Last reply Reply Quote 0
                                  • plot-parisP Offline
                                    plot-paris
                                    last edited by

                                    I understand that you had to ask. πŸ˜„
                                    I did indeed (among every other method imaginable) hit enter after typing in Nx. just tried it here in the office (Windows XP) - works like a charm. may be a vista problem then.

                                    some suggestions, observations:
                                    would you mind changing the Nx to N***** to go in line with the native SketchUp input?
                                    and to assimilate the native workflow even more: is it possible to left-click the second component to be copied and then type in N*? because I love the way it works with the array function in SketchUp at the moment (that you can change the number of copies (or divisions for that matter...) repeatedly, simply by retyping 3*, 11*, 15*, 3*...).

                                    an observation I made is that the order of modifications does still make no difference (of course not - that would only be possible if you applied the function directly after the copy-and-transform process).
                                    that means that if you have more than one rotation process applied to the component-copy you may get results different from your intentions:

                                    http://img360.imageshack.us/img360/6206/copymemory2lr8.jpg

                                    in this example I rotated the component arround axis A, then rotated it vertically around the outer corner. to get the desired result, the script had to repeat these steps in exactly the same order (rotate arround A 2x, 3x, 4x... the initial distance, then rotate 2x, 3x, 4x... arrount the outer corner).
                                    the current version of the script however takes the overall changes in position/rotation which in this example results in the first rotation axis B being distorted - merged with the second rotation so to speak

                                    now that I think about it - the result as we get it at the moment may be quite useful as well at some time.
                                    maybe there is the need for two different versions:

                                    • verion_1 works exactly like the current script (with the minor changes I suggested at the top of this post πŸ˜‰ ). it would make sense to have an entry within the "tools menue" to keep the context menue tidier. you can choose this function at every point of the modelling process, because it is history independent and retrieves every information from the selected geometry

                                    • version_2 has to be applied directly after the copying/transformation process (like the array fuction only works directly after the copying process, because it retrieves it's information from the last action). therefore we need a shortcut for this function (and an entry in one of the menues).

                                    I hope my thoughts are comprehensible.
                                    have to start doing some office work now πŸ˜„

                                    1 Reply Last reply Reply Quote 0
                                    • plot-parisP Offline
                                      plot-paris
                                      last edited by

                                      I just had the need to use this script, but it got lost on the way to the SU7 installation. so I looked for it again and re-read some posts on the way.
                                      and I still think it would be cool to have a second version of the script that works slightly different, as I stated in this post above:

                                      @unknownuser said:

                                      I understand that you had to ask. πŸ˜„
                                      I did indeed (among every other method imaginable) hit enter after typing in Nx. just tried it here in the office (Windows XP) - works like a charm. may be a vista problem then.

                                      some suggestions, observations:
                                      would you mind changing the Nx to N***** to go in line with the native SketchUp input?
                                      and to assimilate the native workflow even more: is it possible to left-click the second component to be copied and then type in N*? because I love the way it works with the array function in SketchUp at the moment (that you can change the number of copies (or divisions for that matter...) repeatedly, simply by retyping 3*, 11*, 15*, 3*...).

                                      an observation I made is that the order of modifications does still make no difference (of course not - that would only be possible if you applied the function directly after the copy-and-transform process).
                                      that means that if you have more than one rotation process applied to the component-copy you may get results different from your intentions:

                                      http://img360.imageshack.us/img360/6206/copymemory2lr8.jpg

                                      in this example I rotated the component arround axis A, then rotated it vertically around the outer corner. to get the desired result, the script had to repeat these steps in exactly the same order (rotate arround A 2x, 3x, 4x... the initial distance, then rotate 2x, 3x, 4x... arrount the outer corner).
                                      the current version of the script however takes the overall changes in position/rotation which in this example results in the first rotation axis B being distorted - merged with the second rotation so to speak

                                      now that I think about it - the result as we get it at the moment may be quite useful as well at some time.
                                      maybe there is the need for two different versions:

                                      • verion_1 works exactly like the current script (with the minor changes I suggested at the top of this post πŸ˜‰ ). it would make sense to have an entry within the "tools menue" to keep the context menue tidier. you can choose this function at every point of the modelling process, because it is history independent and retrieves every information from the selected geometry

                                      • version_2 has to be applied directly after the copying/transformation process (like the array fuction only works directly after the copying process, because it retrieves it's information from the last action). therefore we need a shortcut for this function (and an entry in one of the menues).

                                      I hope my thoughts are comprehensible.
                                      have to start doing some office work now πŸ˜„

                                      what do you think? wouldn't that be cool?

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

                                        This is a very easy to use bit of kit, made the candy-stripe pole and used it for the animation as well.

                                        very,very nice

                                        thanks for posting....

                                        a quick(ish) play

                                        ???how do I add embedded youtube???

                                        learn from the mistakes of others, you may not live long enough to make them all yourself...

                                        1 Reply Last reply Reply Quote 0
                                        • jason_marantoJ Offline
                                          jason_maranto
                                          last edited by

                                          This is one of those functions I thought should be in Sketchup right from the beginning -- a really basic but totally useful function.

                                          I'm one of the folks who can't get the array part of this script to work... I'll take a look at the script and see if I can't get to the bottom of it , but does anyone already know why?

                                          Best,
                                          Jason.

                                          I create video tutorial series about several 2D & 3D graphics programs.

                                          1 Reply Last reply Reply Quote 0
                                          • plot-parisP Offline
                                            plot-paris
                                            last edited by

                                            Jason, did you make sure to do everything in exactly the right order?

                                            for the array function to work you have to select the first component, then right click > 'play it again'. then type in something like 5x (make sure to type in an axtual 'x' and not a *). and then click the second component...

                                            I think this behavior could be optimized to better fit into the native SketchUp workflow, as I already explained in the third post of this page...
                                            I still hope, that at some point someone will hear my pleading and will perfect the script πŸ˜„

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

                                            Advertisement