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

    [Request]: RotateByCenterpoint.rb

    Scheduled Pinned Locked Moved Plugins
    11 Posts 7 Posters 1.3k Views 7 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.
    • R Offline
      remus
      last edited by

      Sounds like a good idea to me 👍 All we need now is some clever ruby person to come along and code it...

      http://remusrendering.wordpress.com/

      1 Reply Last reply Reply Quote 0
      • 2 Offline
        2kemon
        last edited by

        I get that it would be a nice tool, but until then, maybe you could draw a construction point from the edge of the dome to the center, and then draw a construction point from the center and about a 100m down, so you'll always be able to find it, and use it for rotating the dome?

        1 Reply Last reply Reply Quote 0
        • K Offline
          kwistenbiebel
          last edited by

          Thanks for the response Remus and 2Kemon.
          Drawing a construction line is indeed a workable solution in the mean time.

          1 Reply Last reply Reply Quote 0
          • chrisglasierC Offline
            chrisglasier
            last edited by

            
            rv = Geom;;Vector3d.new(0,0,1) if theAxis == "z"
            rv = Geom;;Vector3d.new(0,1,0) if theAxis == "y"
            rv = Geom;;Vector3d.new(1,0,0) if theAxis == "x"
            
            tr = Geom;;Transformation.rotation(Geom;;Point3d.new(instance.bounds.center), rv, theDegrees)
            	
            instance.transform! tr 
            

            Here's what Jim gave me to do that, but it is part of a callback. Perhaps someone else can make it into a standalone ruby.

            Chris

            With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

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

              Have you tried Rpedits its free there is a rotate tool in it . I selected an object - clicked the blue rotation arrows and it appears to rotate around centre point.

              1 Reply Last reply Reply Quote 0
              • GaieusG Offline
                Gaieus
                last edited by

                Hi Kwist and all,

                If you turn your skydome into a group or component and hover over it with the Move tool , you will get those tiny grips on top with which you can easily rotate it around the Z axis

                Rotate.jpg

                Note that the tool turns into a Rotate tool like Protractor but it is still the Move tool.

                Gai...

                1 Reply Last reply Reply Quote 0
                • K Offline
                  kwistenbiebel
                  last edited by

                  Yes, but it is a lot more difficult when you are inside that sphere (skydome) looking at your scene and wanting to rotate the sphere so the clouds are where you want them to be.

                  Rpedit I still need to check out. Thanks for that tip.

                  1 Reply Last reply Reply Quote 0
                  • GaieusG Offline
                    Gaieus
                    last edited by

                    That's true - I didn't think about being inside.

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      kwistenbiebel
                      last edited by

                      Not a problem 😄

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bellwells
                        last edited by

                        Todd at Smustard.com developed centerpoint.rb which identifies the centerpoint of selected geometry.
                        EDIT: After re-reading your original request, Kwistenbiel, I realize you already referred to this script....so never mind!!

                        Ron

                        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