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

    Idea for an Orbit tool focused on single object

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 5 Posters 2.9k 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.
    • CadFatherC Offline
      CadFather
      last edited by

      ..mmm, in a sense the protractors are already there (red crosses) - but it is interesting - perhaps you could have a shortcut key (say crtl + alt) that when the wheel of the mouse is pressed, rather tan orbiting the model, rotates the component...

      1 Reply Last reply Reply Quote 0
      • bigstickB Offline
        bigstick
        last edited by

        This is how Maya works and it's really useful. Definitely do-able I would say.

        1 Reply Last reply Reply Quote 0
        • P Offline
          psychomuffin
          last edited by

          best bet I think would be to probably integrate it with 3D connection's tools. I know they had some small programs which made an example of that. It was a somo cube and you had to use the cap to move and rotate each piece into place. I also know that in SU, the cap can rotate around the model on it's own, focused on an object (like normal SU), or rotate specifically around the selected object.

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

            Humm ... what a coincidence. Please, take a look at this post I just created:

            http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=14198

            But instead "target" (or focuse) on the center of gravity of the component(s) I think target a specific point (using the wonderful inference engine) seems to be more appropriate for precise work. Give a try on OrbitOnTarget ...

            1 Reply Last reply Reply Quote 0
            • MALAISEM Offline
              MALAISE
              last edited by

              Hi, All

              Thanks for answering, Let's try MarcioAB's tool ... 😄

              MALAISE 👍

              I just try your Plugin Marcio, click on face and the selected point is becoming orbit center.
              Double clic on every item of the drawing will center the picture on the selected item. 👍

              What I want to mean about my idea, is an orbit-like tool only apply to selected object(s) 😕

              How Marcio's plugin works :
              Initial picture before activating Marcio'stoolOrbit tool1.JPG
              Results when the plugin is used (some rotation and a far object selected )
              Orbit tool2.JPG
              PAM 😄

              La Connaissance n'a de valeur que partagée

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

                **@malaise said:

                Hi, All
                What I want to mean about my idea, is an orbit-like tool only apply to selected object(s) 😕
                **
                I see your point. Yes, easy components re-position is also in my wish list. Initially I was considering to see if it's possible to create "connectors" to that (like point-point contact, point-face contact, etc). But reuse "OrbitOnTarget" code to a new tool to re-position one or more components should not be that difficult.

                1 Reply Last reply Reply Quote 0
                • MALAISEM Offline
                  MALAISE
                  last edited by

                  Really curious about the way you make that plugin.
                  Maybe could you insert some comments in the ruby file.

                  Thanks Marcio 👍 👍

                  MALAISE

                  La Connaissance n'a de valeur que partagée

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

                    **@malaise said:

                    Really curious about the way you make that plugin.
                    Maybe could you insert some comments in the ruby file.
                    Thanks Marcio 👍 👍
                    MALAISE**

                    OrbitOnTarget.png
                    Initial understanding: SketchUP camera has 3 main components: Eye, Target and Up (vector). We need one more component: @target, that is the point that will be fixed.
                    So, now we have:

                    @target -> the fixed point and center of the 2 transformations (see below)
                    camera.eye -> remain camera.eye
                    camera.target associated with @center
                    camera.up associated with vetorT
                    VetorH is an auxiliar component (explain later why)

                    So centered in @target the other 3 components (@center, VetorT, camera.eye) must receive 2 transformations:

                    • Horizontal transformation around Z-axis
                    • Vertical transformation around vetorN (that is normal to vetorH both in horizontal plan)

                    The amount of these transformations (deltaV and deltaH) came from the mouse drags.

                    VetorH could be calculated (by projection of camera.eye on the horizontal plane), but gets complicated when the camera is passing over the poles. So, it's necessary to keep this vetorH just for that.

                    Let me know where I should provide more details.

                    Regards
                    Marcio

                    1 Reply Last reply Reply Quote 0
                    • MALAISEM Offline
                      MALAISE
                      last edited by

                      👍 👍 What a clear explanation Marcio! 😍

                      MALAISE 😄

                      La Connaissance n'a de valeur que partagée

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

                        Well, may be this (reused code) is more closer to what you will be talking about:

                        Here is an initial version of +1 product from OrbitOnTarget Line of Products (hehe 😄 )
                        Later I will write a better "manual", but in the mean time ...

                        1. Select Component(s).

                        2. Select the Tool (Component OrbitOnTarget)

                        3. Select a Reference point (with double-click and no feedback for now) - this is used to Move the selected Compo(s) in a radial direction, closer of more distance relative the Target.

                        4. Select the Target point (with double-click and no feedback for now) - this is used to Rotate the selected Compo(s) relative the Target.

                        5. LButton-down + drag to move the selected Compo(s).

                        6. LButton-down + Shift + drag (up/down) to move the selected Compo(s) more closer or distant the Target (up= +closer, down= +distant).

                        Both OOT: Camera and Component OrbitOnTarget. Give a try and let's see how to improve them.

                        OOT.zip

                        The ComponentOOT can be much more improved toward the concept of Connectors. For now this is a initial concept for the Point-to-Point connector (Reference-to-Target).

                        It's also necessary a roll-back mechanism to undo, etc, etc but looks promissing.

                        Regard,
                        Marcio

                        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