sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Zoom Selection

    Scheduled Pinned Locked Moved Developers' Forum
    36 Posts 10 Posters 5.2k Views 10 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.
    • Alan FraserA Offline
      Alan Fraser
      last edited by

      I've got Jim's version, available from this forum, but it does the same thing...zooms to any selected faces in an open group.

      3D Figures
      Were you required to walk 500 miles? Were you advised to walk 500 more?
      You could be entitled to compensation. Call the Pro Claimers now!

      1 Reply Last reply Reply Quote 0
      • CadFatherC Offline
        CadFather
        last edited by

        if i select something inside of a group it does not work - but will fit the contents to screen if nothing is selected. ๐Ÿ˜Ž

        all i'm doing is edit geometry inside the group..

        EDIT i take it open group means inside of it - what about comps?

        [can't seem to replicate it now but when modeling complex stuff it always happens]

        1 Reply Last reply Reply Quote 0
        • PixeroP Offline
          Pixero
          last edited by

          @cadfather said:

          if i select something inside of a group it does not work - but will fit the contents to screen if nothing is selected.

          What do you mean with "It doesnt work" ? What do you want it to do?
          If you are inside a group the group itself isn't selected.
          My script zooms in to whats selected. Inside group or not.

          1 Reply Last reply Reply Quote 0
          • CadFatherC Offline
            CadFather
            last edited by

            it happens especially with large models [most of mine are]

            if i am inside a group and i select an entity, when i press zoom the selected entity is not zoomed to screen. if i deselect then the contents of the group will fit to screen

            now that is strange right?

            1 Reply Last reply Reply Quote 0
            • CadFatherC Offline
              CadFather
              last edited by

              ok, this is what happens to the script: if i am inside of a group/component and 'hide rest of model' is on, zoom selection does not work. surely this must happen to everyone?

              1 Reply Last reply Reply Quote 0
              • T Offline
                TonyF
                last edited by

                I've just tried it.
                When Hide similar components is checked, it works fine.
                When Hide rest of model is checked, it ignores the selected entity and zooms to the origin.
                Must be a bug.
                I guess we just need to select, then zoom, then hide.

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

                  Unfortunately, we can't control "hide rest of the model" via ruby....

                  Frenglish at its best !
                  My scripts

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

                    Oh !! I have found a script can control this function !! Thank you Jim !

                    Sketchup.active_model.rendering_options["InactiveHidden"] = !Sketchup.active_model.rendering_options["InactiveHidden"]
                    

                    The code is ready guys !


                    Context menu...

                    Frenglish at its best !
                    My scripts

                    1 Reply Last reply Reply Quote 0
                    • CadFatherC Offline
                      CadFather
                      last edited by

                      Sir Matt!!! ๐Ÿ˜ ๐Ÿ˜„

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

                        Dear Matt,

                        How does your script work?

                        Regards,
                        Bob

                        1 Reply Last reply Reply Quote 0
                        • N Offline
                          N Lindenthal
                          last edited by

                          @Matt

                          Zoom selection works great.

                          My question is, how it would be possible not to zoom, but to scale. A door would zoom to screen, a door handle would scale.

                          @watkins
                          select a group/component/item, right mouse click > ยปZoom on selectedยซ. The selected item fills the screen

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

                            Thank you for the instructions.

                            1 Reply Last reply Reply Quote 0
                            • N Offline
                              N Lindenthal
                              last edited by

                              @Matt

                              Maybe my questions was not understandable.

                              I would like not to zoom all selected items, but to see them from the near with same distance, so that a door or a door handle is shown with same scale in the middle of the screen. Is that possible with ยปZoom Selectionยซ?

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

                                Hi N Lindenthal !
                                Ok I see ! I don't know if it's possible. I will see. ๐Ÿ˜„

                                Frenglish at its best !
                                My scripts

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

                                  Try this, and tell me what you think about !


                                  Context menu "Zoom sel 2"

                                  Frenglish at its best !
                                  My scripts

                                  1 Reply Last reply Reply Quote 0
                                  • CadFatherC Offline
                                    CadFather
                                    last edited by

                                    Matt, a couple of bugs i think - when i am inside a group and i select a face, SU zooms to the face but hides all other geometry inside the group (!) - second (even worse) is that after i zoom, i can't do anything: the cursor is the selection tool but it actually doesn't work..it's in some kind no tool suspension. thought you'd be glad to know! ๐Ÿ˜ฎ ๐Ÿ˜„

                                    1 Reply Last reply Reply Quote 0
                                    • N Offline
                                      N Lindenthal
                                      last edited by

                                      @CadFather
                                      Your list of mistakes I could verify. But with right mouse click I could leave the marked object.

                                      @Matt
                                      Is there a difference to zsel.rb?

                                      I look to your Zoom Selection, because I look for a way to find objects in my SU-model by name by dragging them in the middle of screen with even same distance. Looking distance for example even 200 cm. This way, all found objects are shown with same scale.

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

                                        @CadFather,
                                        ๐Ÿ˜„ When the tool's activating, you can read on the bottom left of the screen : "Right-click to quit..." ๐Ÿ˜‰

                                        @n lindenthal said:

                                        Is there a difference to zsel.rb?

                                        Yes but this is not what you want... I don't understand what you want, sorry... Can you show some images, perhaps ?

                                        Frenglish at its best !
                                        My scripts

                                        1 Reply Last reply Reply Quote 0
                                        • CadFatherC Offline
                                          CadFather
                                          last edited by

                                          thanks Matt, but i'm slightly confused. the idea is to zoom a selected object to screen (and if nothing is selected all objects) - what is the right click for? obviously i'm missing something.. ๐Ÿ˜•

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

                                            The last script was for N lindenthal. But i don't understand what he relly wants... ๐Ÿ˜• My poor english language !!

                                            This last script zooms on selected entities, and hide others. The right click stops script and gives last view before starting script.

                                            Frenglish at its best !
                                            My scripts

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

                                            Advertisement