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

    [Plugin] Free Rotate 4.4

    Scheduled Pinned Locked Moved Plugins
    92 Posts 22 Posters 50.6k Views 22 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      Please could you try changing your version of FreeRotate.rb.
      from the TAB code being under
      def **onKeyDown**(key, repeat, flags, view)
      to it being under
      def **onKeyUp**(key, repeat, flags, view)

      if key==9 or key==15 or key==48 ### TAB =9 for PC, MAC 15/48 for some locales ?
            if @tab
              self.make_disk()if @state>2
              if @state==0
                @msg=@msgAXIALPIVOT
              elsif @state==1
                @msg=@msgAXIALAXIS
              else
                @state=2
                @msg=@msgAXIALHANDLE
              end#if
              @tab=false ### axial
            else
              self.make_globe()if @state>2
              if @state==0
                @msg=@msgFREEPIVOT
              elsif @state==1
                @msg=@msgFREEAXIS
              else
                @state=4
                @msg=@msgFREE
              end#if
              @tab=true ### free
            end#if
            view.invalidate if @ip.display? or @ip1.display?
          end#if
      

      It's only in the one line, save and open a SKP...
      Retry FreeRotate and see if the TAB key now works on your MAC and you toggle between 'Free' and 'Axial' modes...
      Keep the Ruby Console open to see any errors etc...
      For some reason TAB 'down' is plain flaky on the Mac - but perhaps TAB 'up' isn't !?
      If it then works on the PC too I'll change it around... otherwise I'll do both - one test for PC one for MAC ...
      I think we are getting near to a solution here...
      Thanks for your help.

      I'll issue an updated version soonest...

      Then I need to fix ALL tools for MAC with the same issue... πŸ€“

      PS: by the way here's a new version of keycode.rb that reports key-pressed and key-released events...keycode.rb

      TIG

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Here's v4.2 http://forums.sketchucation.com/viewtopic.php?p=266561#p266561
        The glitch with 'Tab' [9] on MAC etc trapped by using 'key-up' not 'key-down' check ❓
        Don't know why... but it works... πŸ˜’

        TIG

        1 Reply Last reply Reply Quote 0
        • mitcorbM Offline
          mitcorb
          last edited by

          FYI:
          At least on my machine, the new zipped versions do not overwrite the original stand alone rb, so I did not see the toolbar icon, and I had two instances of FreeRotate in the Plugins dropdown menu. I simply deleted the original rb file in the SU7 plugins subfolder and restarted the program. The toolbar icon loaded and, I assume the old menu line disappeared.
          Maybe this will help someone.

          I take the slow, deliberate approach in my aimless wandering.

          1 Reply Last reply Reply Quote 0
          • jeff hammondJ Offline
            jeff hammond
            last edited by

            @tig said:

            Here's v4.2 http://forums.sketchucation.com/viewtopic.php?p=266561#p266561
            The glitch with 'Tab' [9] on MAC etc trapped by using 'key-up' not 'key-down' check ❓
            Don't know why... but it works... πŸ˜’

            working now on mac..
            i'll check 2d tools in a little bit.
            thanks a ton.

            [ed]- keycode.rb now returns 9 when releasing the tab key.. there's only one other key on my keyboard that exhibits the same behavior (no number on keydown) and that's the delete key 127

            dotdotdot

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

              Tab on OSX doesn't work on keyDown?

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

              1 Reply Last reply Reply Quote 0
              • jeff hammondJ Offline
                jeff hammond
                last edited by

                @thomthom said:

                Tab on OSX doesn't work on keyDown?

                correct.
                it appears to do absolutely nothing (in sketchup)

                depending on my system prefs, keydown will either activate the VCB regardless of what tool i'm using or cycle through all of my toolbar icons. (ie- i can activate a tool via it's icon without mouse clicking it)

                it's as if the system is keeping tab keydown for itself and won't allow it to be re-assigned

                dotdotdot

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

                  TIG, thanks for the plugin πŸ‘

                  Rich, thanks for the video πŸ˜„

                  3D Printing with SketchUp Book
                  http://goo.gl/f7ooYh

                  1 Reply Last reply Reply Quote 0
                  • ken28875K Offline
                    ken28875
                    last edited by

                    Wow! Awesome. That's what I needed. πŸ‘ πŸ‘

                    Thanks, TIG.

                    _KN

                    Follow Your Dreams.

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      Here's 4.3 http://forums.sketchucation.com/viewtopic.php?p=266561#p266561
                      A typo (= v ==) in code corrected around line#708: was not affecting results.
                      The Gizmos' Guides are displayed even when Guides are set to be 'off' in the current Style [the 'off' setting is momentarily suspended and then restored].

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • E Offline
                        eddy
                        last edited by

                        Salut Γ  tous, Wow! Awesome, very useful. πŸ‘ πŸ‘ πŸ‘

                        Thanks, TIG.

                        @ ++ Eddy

                        1 Reply Last reply Reply Quote 0
                        • TIGT Offline
                          TIG Moderator
                          last edited by

                          Here's v4.4 http://forums.sketchucation.com/viewtopic.php?p=266561#p266561

                          You might have seen elsewhere on the forums that a fix for the Instructor window has been stumbled upon... which means it can now be used for custom tools [with the right code] as well as the built-in tools...

                          My FreeRotate always had the Instructor window's files etc, but they never displayed... until now. It was believed that the Instructor part of th API was broken, but it turns out that although it is 'sort of', it is fixable after all with some ingenuity in building the file-paths etc...

                          FreeRotate's Instructor window should work cross-platform - feedback please, especially from MAC users...

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • Rich O BrienR Online
                            Rich O Brien Moderator
                            last edited by

                            I see trails in the Instructor dialog box. I can see it but each transitions is slighty greyed resulting in below...

                            FreeRotate.PNG

                            Download the free D'oh Book for SketchUp πŸ“–

                            1 Reply Last reply Reply Quote 0
                            • TIGT Offline
                              TIG Moderator
                              last edited by

                              i know... I noticed this too... I need to have a look at the gif to see if I can improve it πŸ˜•
                              PS: the gif is fine BUT SUp itself seems to add some ghosting... I'm going to compare it with the built in stuff...
                              The html/gif/css works fine in an ordinary browser - the browser that loads for the Instructor is screwed... πŸ˜• πŸ˜•
                              I just wanted to get the thing out and tested to see what the issues are if any, especially with MACs or users with odd set ups......

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • Rich O BrienR Online
                                Rich O Brien Moderator
                                last edited by

                                It's perfect in Firefox and IE.

                                Download the free D'oh Book for SketchUp πŸ“–

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

                                  What versions of IE are you guys dealing with?

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

                                  1 Reply Last reply Reply Quote 0
                                  • TIGT Offline
                                    TIG Moderator
                                    last edited by

                                    I have IE8...
                                    It loads OK directly in that... but when it loads via SUp it's 'ghosting'... πŸ˜’
                                    My html's code is just cloned from the built-in Instructor html files...

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • Rich O BrienR Online
                                      Rich O Brien Moderator
                                      last edited by

                                      ie9

                                      Download the free D'oh Book for SketchUp πŸ“–

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

                                        @tig said:

                                        I have IE8...
                                        It loads OK directly in that... but when it loads via SUp it's 'ghosting'... πŸ˜’
                                        My html's code is just cloned from the built-in Instructor html files...

                                        quirks mode vs standards mode?
                                        Embedded webcontrols falls back to quirks more often than the standalone - so one doesn't always get the same results.

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

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

                                          I am trying to download the Free Rotate 4.4 zip file. Somehow I am not authorized although I think that I registered myself correctly: Usename AnnetGroneman. Please help

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

                                            Hi Annet,

                                            If you can post, you are registered correctly and also logged in. There must be something else. What do you actually see? Is it a red/pink bar showing that you are not authorised?

                                            Gai...

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

                                            Advertisement