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

    Calling Whaat and Fredo!! new MAC issues (SOLVED)

    Scheduled Pinned Locked Moved Developers' Forum
    94 Posts 19 Posters 17.9k Views 19 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.
    • fredo6F Offline
      fredo6
      last edited by

      Thanks Edson,

      I forgot to ask about the default Plugin Folder.
      You need to type Sketchup.find_support_file "plugins" in the Ruby console.

      What I suspect is that the result would be the '/User...' folder (the first one in the $: list.

      Unfortunately, some scripts, among which BezierSpline, make the assumptions that the icons folder is located underneath this Default SU Plugin folder, whereas the real folder is in the '/HD...' folder, along with main script. You may have the same problem with JPP.

      I tried to fix that with LibFredo6. Could you confirm that FredoScale or TOS works fine with the above configuration.

      Fredo

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

        I´ll install Podium 1.5 on my MacMini OSX10.4.
        Currently everything works. I have ProfileBuilder isntalled under HD. No plugins under User.

        Current folder info:

        
        > $;
        ["/Library/Application Support/Google SketchUp 7/SketchUp/Plugins", "/Library/Application Support/Google SketchUp 7/SketchUp/Tools", "/Users/thomas"]
        > Sketchup.find_support_file "plugins"
        /Library/Application Support/Google SketchUp 7/SketchUp/plugins
        
        

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

        1 Reply Last reply Reply Quote 0
        • fredo6F Offline
          fredo6
          last edited by

          @thomthom said:

          I´ll install Podium 1.5 on my MacMini OSX10.4.
          Currently everything works. I have ProfileBuilder isntalled under HD. No plugins under User.

          Current folder info:

          
          > > $;
          > ["/Library/Application Support/Google SketchUp 7/SketchUp/Plugins", "/Library/Application Support/Google SketchUp 7/SketchUp/Tools", "/Users/thomas"]
          > > Sketchup.find_support_file "plugins"
          > /Library/Application Support/Google SketchUp 7/SketchUp/plugins
          > 
          

          I suspect that on Mac there is a disconnect between the $: and the Sketchup.find_support_file "plugins".
          This is why I no longer use the find_support_file method and rely only on the location of the main script to find its subfolders.

          Fredo

          PS: actually, I have written a small plugin for my own usage where I put scripts in a separate folder (on 😧 drive), which are accessed and shared by SU6, SU7.0 and SU7.1, so that I can test all versions, without copying scripts around. The other interest is that you do not have to bother with the Vista and Windows 7 access restriction to the C:\program file folder.

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

            After Podium 1.5 installation:

            
            > $;
            ["/Library/Application Support/Google SketchUp 7/SketchUp/Plugins", "/Library/Application Support/Google SketchUp 7/SketchUp/Tools", "/Users/thomas", "/Library/Application Support/Google SketchUp 7/SketchUp/Plugins/Podium.suplugin/Contents/MacOS"]
            > Sketchup.find_support_file "plugins"
            /Library/Application Support/Google SketchUp 7/SketchUp/plugins
            
            

            And ProfileBuilder still works.

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

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

              @thomthom said:

              I´ll install Podium 1.5 on my MacMini OSX10.4.

              It would be interesting to know if having 10.4 as opposed to 10.5 or 10.6 changes anything? I know that there are many more technologies in the later cats. I would test this for you guys, but I need to get this job done this week, with SketchUp. I don't want to have the unjoy of another Podium whip around! 😲 😉

              My book "Let's SketchUp!" Download from here

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

                I'm on my laptop which is a ppc PowerBook running tiger w/ sketchup 5.0.262, 6.4.120, & 7.1.5803. (but I'm typing on a phone so bear with me 😄 )

                I sync my plugin folder with my main mac (intel quad leopard, su 7.1) and they all work the same so I don't think the different OS or different versions of sketchup have anything to do with it.

                I think you (chris and Tom) may be installing whaat's rubys improperly.
                For BoolTools, you should place two items in your plugin folder.
                -- a file named "booltools.rbs"
                -- a folder named "BoolTools" (which contains 3 gif icons)

                for profile builder, there are two items that go in the plugin folder.
                -- a file named "pb_loader.rb"
                -- a folder named "ProfileBuilder" (which contains 17 items of varying types)

                (iirc) when you download one of these rubys and unzip them, you will have one folder named the same as the ruby. You have to open that folder to find the two items I mentioned then place those two items in the plugin folder.

                dotdotdot

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

                  (agAin, I'm on a phone so....)

                  chris, I guess you are using the correct two profilebuilder files if you can get it to work in the user library.
                  Have you tried putting the profilebuilder files in the MacHD library AND removing the user library plugin folder altogether?

                  I dunno, I use three differnt macs with various OS and SU versions + a lot of these so-called trouble rubys and I never experience these problems. none of my computers have a SU plugin folder in the user directory (not even an empty folder-- which will still cause certain rubys to break). I can only base my opinion on my own user experience but seriously, ditch the user library plugin folder. I haven't come across a single ruby that needs to be placed there in order for it to work. The only time a ruby has to be in the user library plugin folder in order for it to work is when that folder is there to begin with. Even podium whose installer causes most of these problems doesn't need the user plugin folder in order to work. It will run perfectly from the standard MacHD location.

                  dotdotdot

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    chrisjk
                    last edited by

                    @unknownuser said:

                    (agAin, I'm on a phone so....)

                    chris, I guess you are using the correct two profilebuilder files if you can get it to work in the user library.
                    Have you tried putting the profilebuilder files in the MacHD library AND removing the user library plugin folder altogether?

                    ...(not even an empty folder-- which will still cause certain rubys to break).

                    Jeff,
                    You are right - thank you. Even an empty plugins folder at the user level is enough to cause things to break. Moving everything over to the top level and deleting the user level folder has worked for me. Now all the tools and icons are there and functioning - great result! I quite thought I had tested this arrangement but I must have become confused by all the shuffling back and forth I have been doing.

                    Chris

                    Chris

                    1 Reply Last reply Reply Quote 0
                    • EdsonE Offline
                      Edson
                      last edited by

                      in fairness i must say that jeff's suggestion has worked for me. i moved all the plugins i had at the user level to the regular plugins folder and removed the extra plugins folder. so far all the plugins are working, even podium which originally installs itself at the user level and booltools.

                      edson mahfuz, architect| porto alegre • brasil
                      http://www.mahfuz.arq.br

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

                        I've bookmarked this thread, and I'm going to try shifting everything around after I've finished this church visualisation project. But, it all looks very promising, so thanks to everyone for putting all this time in- especially Jeff! 😄

                        My book "Let's SketchUp!" Download from here

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

                          @chrisjk said:

                          Jeff,
                          I have tried installing Profile Builder as you suggest but to no avail - it is not to be seen. The manual makes explicit mention of this "The plugin may NOT work if installed to the following directory: Macintosh HD/Library/Application Support/Google Sketchup 6/SketchUp/Plugins" and although I am using SU7.1 (5803) rather than the version 6 mentioned by WHAAT,it makes no difference. The other plugins you mention will work in either place albeit missing some toolbars/icons or actual tools as in the case of Fredo's BZ tools.

                          The key word above is 'may'. The plugin will work if put in the standard HD plugin location (as long as there is no User/plugin folder). At the time I wrote the manual, the best workaround I could think of for this problem was to require all users to install Profile Builder to the Users subfolder.

                          Since then, I have found the solution to this problem which was been discussed at length here. The problem is related to the Sketchup.find_support_file("Plugins") method which will not return the HD subfolder if there exists a Users plugins subfolder (I never determined if it was related to the OS version or not...)

                          The solution I have found is to not use this method unless you also specify the desired subfolder. For example, if you say Sketchup.find_support_file("Plugins\/ProfileBuilder"), it will return the ProfileBuilder subfolder regardless of where it is installed (as long as it's in one of the $: locations)

                          I intend to update ProfileBuilder, SDS, and BoolTools with this fix but I have been dragging my heels a bit (sorry for this...)
                          So, to summarize, all my plugins should work if you install them in the standard HD plugins subfolder. However, if you run into a conflict with Podium, put the plugin in the Users plugins subfolder.

                          SketchUp Plugins for Professionals

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

                            @whaat said:

                            Since then, I have found the solution to this problem which was been discussed at length here. The problem is related to the Sketchup.find_support_file("Plugins") method which will not return the HD subfolder if there exists a Users plugins subfolder (I never determined if it was related to the OS version or not...)

                            Would be interesting to hear what Sketchup.find_support_file("Plugins") returns on Edison's 10.5 system. As on my 10.4 system it still returned the HD path after installing Podium.

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

                            1 Reply Last reply Reply Quote 0
                            • EdsonE Offline
                              Edson
                              last edited by

                              Sketchup.find_support_file("Plugins")
                              /Library/Application Support/Google SketchUp 7/SketchUp/Plugins

                              note: i have now all my plugins at the hd level.

                              edson mahfuz, architect| porto alegre • brasil
                              http://www.mahfuz.arq.br

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

                                Ah. Then we need someone else with 10.5/10.6 and User plugins folder to test this.

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

                                1 Reply Last reply Reply Quote 0
                                • cmeedC Offline
                                  cmeed
                                  last edited by

                                  Can I say a huge Thank you to all those people who have helped this problem go away. I have no user level plugins folder now and everything seems to work. THANK YOU!

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    Jim
                                    last edited by

                                    Holy carp, so Sketchup.find_support_file is not portable?

                                    Does that mean I need to look at all the locations stored in $LOAD_PATH to be sure?

                                    It does explain some blank toolbar image problems I have on the Mac.

                                    Hi

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

                                      @jim said:

                                      Holy carp, so Sketchup.find_support_file is not portable?

                                      Does that mean I need to look at all the locations stored in $LOAD_PATH to be sure?

                                      It does explain some blank toolbar image problems I have on the Mac.

                                      If you use that to get the path of your own plugin - use File.dirname(__FILE__) instead. Or possilby File.dirname( File.realpath(__FILE__) ).

                                      To find other plugins: yes I think you do.

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

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        Jim
                                        last edited by

                                        Yes, but File.dirname(__FILE__) does not return a valid path when used in an encrypted file.

                                        What is File.realpath?

                                        Hi

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

                                          @jim said:

                                          Yes, but File.dirname(FILE) does not return a valid path when used in an encrypted file.

                                          Really? Never used encrypted files. What do you get in return then?

                                          @jim said:

                                          What is File.realpath?

                                          Sorry, I mixed up with PHP. 😳 I meant File.expand_path http://ruby-doc.org/core/classes/File.html#M002540
                                          Reason you might want to use that is explained here: http://forums.sketchucation.com/viewtopic.php?f=180&t=26040&st=0&sk=t&sd=a#p224558

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

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            Jim
                                            last edited by

                                            The File:

                                            print "*** file1.rb being loaded..."
                                            print __FILE__
                                            print File.dirname(__FILE__)
                                            print File.dirname(File.expand_path(__FILE__))
                                            print "*** Done."
                                            

                                            Output when not scrambled:

                                            *** file1.rb being loaded...
                                            c;/Program Files/Google/Google Sketchup 7/Plugins/file1.rb
                                            c;/Program Files/Google/Google Sketchup 7/Plugins
                                            c;/Program Files/Google/Google Sketchup 7/Plugins
                                            *** Done.
                                            

                                            Output when scrambled: No idea why the podium path is in there?

                                            *** file1.rb being loaded...
                                            (eval)
                                            .
                                            c;/Program Files/Google/Google Sketchup 7/Plugins/SU_Podium_V2/plug_in/extensions
                                            *** Done.
                                            

                                            Hi

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

                                            Advertisement