• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Point Merger tools v1.2 UPDATED@ 23/06/09

Scheduled Pinned Locked Moved Plugins
68 Posts 20 Posters 41.8k Views
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.
  • C Offline
    chango70
    last edited by 18 Jun 2009, 15:27

    @cadfather said:

    :roll: πŸ˜„

    [attachment=1:cjv1mmue]<!-- ia1 -->pmerge_16.png<!-- ia1 -->[/attachment:cjv1mmue][attachment=0:cjv1mmue]<!-- ia0 -->pmerge_24.png<!-- ia0 -->[/attachment:cjv1mmue]

    You da man!

    1 Reply Last reply Reply Quote 0
    • C Offline
      chango70
      last edited by 18 Jun 2009, 15:28

      @unknownuser said:

      @chris fullmer said:

      Hi John, I think you just need to copy those 2 .rb files into your plugins folder. They don't need to be in the subfolder - unless I'm missing something. I'll edit that out if its wrong.

      Chris, you're right, they both go into the plugins folder.

      @chris fullmer said:

      @BTM - The reason that the class variables are not working correctly (meaning they are not keeping their value during the entire SU session) is because you are declaring the variable in your activate method. So everytime the activate the tool gets activated, it resets the @@max_weld_distance variable back to 0.0.to_l.

      I know that the variable needs to be outside of a method, but with things like
      @@max_weld_distance=1.to_l if not @@max_weld_distance
      it would call it an uninitialized variable, and give an error message.

      @chris fullmer said:

      So what you want to do is declare that variable inside the class, outside of the methods. Like this:

      class MergePoints @@max_weld_distance=0.0.to_l

      β˜€ It does work! I've been trying if functions, (so that if @@max_wld_distance doesn't have a value, it gets set to 0.0.to_l), but I kept getting error messages, and I guess that an if function isn't necessary. πŸ˜„

      Hey wow that would be great! πŸ‘

      1 Reply Last reply Reply Quote 0
      • C Offline
        chango70
        last edited by 18 Jun 2009, 15:30

        @unknownuser said:

        @chango70 said:

        1. I noticed that when I press undo after a point Merge operation it does not undo the entire procedure, rather breaks it down to individual line moves.

        I've got this working properly now, and it will be fixed in the next release for the tools.

        @chango70 said:

        1. I cannot get it to work if the geometry is inside a group.

        I'll try to get that fixed too, but maybe not for the next release.

        @chango70 said:

        Would be great if you can add a CTLR modifier to make the new mesh smooth.

        …I probably won't add this, but if I do decided to, it won't be anytime soon.

        Also as a side note, I'm planning on adding a toolbar for them, and am trying to figure out how to add a subfolder and a loader script. I've got the toolbar working, but not with a subfolder or loader, and having the files just sitting in the plugins folder is a bit annoying.

        Fantastic! I can't wait for the new version. Great work! 😎

        1 Reply Last reply Reply Quote 0
        • C Offline
          CadFather
          last edited by 18 Jun 2009, 15:52

          ..haven't tried the script yet so didn't notice there's two... coming soon....

          1 Reply Last reply Reply Quote 0
          • B Offline
            BTM
            last edited by 18 Jun 2009, 16:21

            ptl_24.png
            ptl_16.png
            …these are the icons it has right now, I'll wait to see how yours turn out πŸ‘

            1 Reply Last reply Reply Quote 0
            • C Offline
              CadFather
              last edited by 18 Jun 2009, 21:08

              i think these are very good BTM - no need of others.. πŸ‘

              1 Reply Last reply Reply Quote 0
              • B Offline
                BTM
                last edited by 18 Jun 2009, 23:40

                …I also have these ones though…
                ptl_24.png
                ptl_16.png

                …I'll go with your icons for 'Merge Points', but now for Merge Points to Selection (I changed the name, because it works when selecting faces now aswell), I don't know which one to pick πŸ˜„

                Oh, by the way, they work in groups and components now too. I should have put @model.active_entities instead of @model.entities 😳

                …I've also included a cursor for 'Merge Points'. It's ugly though, so I'm changing it, and I don't know what the new one should look like. 😐

                1 Reply Last reply Reply Quote 0
                • C Offline
                  CadFather
                  last edited by 19 Jun 2009, 00:25

                  looking good..

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Chris Fullmer
                    last edited by 19 Jun 2009, 02:15

                    Keep up the good work! I am repeatedly impressed with your scripting. You've picked up quickly, and seem to keep going. Now you've got toolbars and cursors. Well done!

                    Chris

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

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JClements
                      last edited by 19 Jun 2009, 02:50

                      Thanks for considering my suggestions. I think these two scripts could prove to be "can't do withouts" for people working with terrans/TINs.

                      John

                      John | Illustrator | Beaverton, Oregon

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        BTM
                        last edited by 23 Jun 2009, 22:59

                        V 1.2 is now Up, and includes proper undo, a toolbar, and some other improvements, like the use of the VCB for 'Merge Points', and 'Merge Points to Selection', renamed because it now gets the points/ edges of selected faces now too. πŸ‘

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          majid
                          last edited by 24 Jun 2009, 02:24

                          just to show my respect : thanx BTM

                          My inspiring A, B, Sketches book: https://sketchucation.com/shop/books/intermediate/2612-alphabet-inspired-sketches--inspiring-drills-for-architects--3d-artists-and-designers-

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            boilingsnow
                            last edited by 24 Jun 2009, 07:08

                            Great! BTM, thank you.
                            Can you make it capable for snaping points such als construction points and lines?

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              boofredlay
                              last edited by 25 Jun 2009, 20:11

                              BTM, is there a way to have the unzip process work smoother? When I extracted the files I only had two folders in my Plugins menu. I had to grab the two rb files and move them into the main Plugins folder. I believe JClements had the same problem Here
                              Or maybe I did it wrong.

                              Oh, and the toolbar... I noticed it was checked as on but was not on my screen anywhere. I could not use it and ultimately removed the files from my plugins folder.

                              And upon loading SU after installing the script my toolbars wacked out again. Rearranged all over the screen. πŸ˜’

                              Please Google, fix the toolbar prob... oh forget it. They are not listening anymore.

                              http://www.coroflot.com/boofredlay

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                BTM
                                last edited by 26 Jun 2009, 16:39

                                @unknownuser said:

                                BTM, is there a way to have the unzip process work smoother? When I extracted the files I only had two folders in my Plugins menu. I had to grab the two rb files and move them into the main Plugins folder. I believe JClements had the same problem Here
                                Or maybe I did it wrong.

                                Oh, and the toolbar... I noticed it was checked as on but was not on my screen anywhere. I could not use it and ultimately removed the files from my plugins folder.

                                And upon loading SU after installing the script my toolbars wacked out again. Rearranged all over the screen. πŸ˜’

                                Please Google, fix the toolbar prob... oh forget it. They are not listening anymore.

                                That's strange πŸ˜• … First, the unzipped file should be a folder called btm_Point_Merger_Files, and it should contain btm_Point_Merger_Loader.rb and a folder called btm_Point_Merger_Tools. These should both go in the plugins folder. I know that it works fine with Archive Utility on my mac, and the files in btm_Point_Merger_Files should look like this:
                                Both these files should go into the plugins folder.

                                As for your toolbar problem, I have no idea why it would be doing that 😲 . It is possible that another ruby might have broken it, but from what you've described, I doubt it. All I can think of is that the files might not be in the right place, or are duplicated, or that another plugin is breaking it somehow. Other than that, my knowledge is very limited.

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  Chris Fullmer
                                  last edited by 26 Jun 2009, 17:00

                                  Macs like to add extra files to everything they do. So when PCs get Mac files, they always come attached with unnecessary files. So your zip files has all this inside it when opened on a PC

                                  stupidMacs.png

                                  So its just a matter of deleting the Mac system files, then its like a regular plugin install.

                                  Chris

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

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    Chris Fullmer
                                    last edited by 26 Jun 2009, 17:06

                                    Nope, I take it back. I forgot that is worse than just that. You have to double click on the "btm_Point_Merger_Files" to get taken to the actual root of the zip file. But it still has extra files floating around in it.

                                    Macsareevenstupider.png

                                    So you have to ignore the top level, double click on the "btm_Point_Merger_Files" folder, then delete the Mac system files and then copy and paste the rest into the plugins folder. 😞

                                    Chris

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

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      BTM
                                      last edited by 26 Jun 2009, 17:11

                                      Okay, is there any way for me to make zip files with my mac, that work properly on Windows too?

                                      1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        Chris Fullmer
                                        last edited by 26 Jun 2009, 17:25

                                        That is a good question. Does your zip file maker have any settings you can change? If you find anything to tweak, upload a test version here and we'll let you know if it is any smoother.

                                        Chris

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

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          BTM
                                          last edited by 26 Jun 2009, 18:47

                                          … I use the built-in "compress" feature under the right click menu to compress files on my mac. I've been looking through System Preferences, and in quite a few other places, but can't find where to change any settings πŸ˜• .

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

                                          Advertisement