sketchucation logo sketchucation
    • Login
    1. Home
    2. driven
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 43
    • Posts 2,966
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Texture optimization in 2016

      The standard instal of 'Texture Resizer' on a mac uses sips, so it doesn't even call ImageMagick...

      and it can use Goldilocks automatically...

      if you had posted on that thread, others who have posted there will get emails and may be able to help...

      post there and see who responds...

      AS for editing materials from within SU, I and others have made a few post of how to get that working again...

      john

      posted in SketchUp Discussions
      D
      driven
    • RE: SU 2015--New Textures

      you can only edit "In Model" materials...

      posted in Newbie Forum
      D
      driven
    • RE: Web dialog not displaying local image

      here's that toolbar example http://sketchucation.com/forums/viewtopic.php?p=363402#p363402...

      personally I avoid jpg like the plague and would go for png...

      
      require 'base64'
      File.open('imagetobase64.png', 'r') do |image_file|
      puts Base64.encode64(image_file.read)
      end
      

      john

      posted in Developers' Forum
      D
      driven
    • RE: Web dialog not displaying local image

      kaas reminds me that when running my own server I used something like...

      src="file;//localhost#{/path/to/file}"
      

      I'll see if I can find any of that stuff...

      john

      posted in Developers' Forum
      D
      driven
    • RE: Web dialog not displaying local image

      what does WebInspector tell you when you run it on the webdialog in SU...

      where is the html page hosted?

      does the image need to be dynamically loaded?

      and yes there a couple of base64 encoded images used in examples in the forum...

      search for toolbar button may find one...

      john

      posted in Developers' Forum
      D
      driven
    • RE: Position of SU viewport versus computer screen

      fredo,
      I just compiled my own mouse_position bin script and it comes in at 19kb...

      I also played around with that script so the dialog never overhangs the viewport...

      in reality it only needs to be run once per model with a corresponding click in SU to give you the variation between the 2 [ x, y] returns...

      john

      posted in Developers' Forum
      D
      driven
    • RE: Force sketchup ctrl+s/autosave to sketchup 8?

      @mazurek said:

      ...I did not find any option to force this on sketchup...

      you can't over-ride System commands, you need a plugin to save as different version and use a different shortcut key.

      have you looked at this one... http://sketchucation.com/forums/viewtopic.php?p=294768#p294768

      john

      posted in SketchUp Discussions
      D
      driven
    • RE: Position of SU viewport versus computer screen

      @fredo6 said:

      ... even if it requires an extra library (Cliclick).

      even my modified version of cliclick is only 99 KB and if all you want is mousePosition it could shrink a lot...

      I believe you can use getMousePosition via ruby on a PC...

      I also really like webDialogs and wish we had more control over them...

      john

      posted in Developers' Forum
      D
      driven
    • RE: Position of SU viewport versus computer screen

      Fredo,
      there's still no cross platform methods that I know of...

      you can do this with a simple bin script that can run from the plugin sub-folder on a mac...

      clk_dlg_mac.gif

      the onLButtonDown sends the x,y to the bin script, which returns the screen co-ords for the web dialog...

      # use a class to create a tool
      class ClicTool
        def activate
          puts 'ClickTool has been activated.'
          @clk_dlg = UI;;WebDialog.new
          # get the scale for retina
          @scale = @clk_dlg.screen_scale_factor.to_i
          p " @scale = #{@scale} "
        end
      
        #----------------------------------------------------------------------------------------#
      
        def set_dlg_position(mod_pt)
          # this utility reports the screen position of the last click, i.e. tthe one that invokes it...
          clk_pt = `/usr/local/bin/cliclick -r p;.`.split(/; /)[1].chomp!.split(',')
          msg = "mod_pt = #{mod_pt} and clk_pt = #{clk_pt}"
          w = 200
          h = 100
          @clk_dlg.set_html(msg)
          @clk_dlg.set_size(w, h)
          # play with positioning by
          pw = clk_pt[0].to_i - (w / 2)
          ph = clk_pt[1].to_i - (h / 2)
          @clk_dlg.set_position(pw, ph)
          @clk_dlg.show_modal
        end
      
        #----------------------------------------------------------------------------------------#
      
        def onLButtonDown(_flags, x, y, _view)
          mod_pt = [x / @scale, y / @scale]
          set_dlg_position(mod_pt)
          # puts "onLButtonDown; flags = #{flags}"
        end
      
        #----------------------------------------------------------------------------------------#
      end # class
      
      #----------------------------------------------------------------------------------------#
      
      clk_dlg = ClicTool.new
      Sketchup.active_model.select_tool(clk_dlg)
      #----------------------------------------------------------------------------------------#
      
      

      john

      posted in Developers' Forum
      D
      driven
    • RE: How to adjust photos in SU Pro 2016

      do you have 'Fixed Pins' ticked?

      posted in SketchUp Discussions
      D
      driven
    • RE: Where to store Global Settings for Plugin

      @thomthom said:

      I wouldn't recommend writing settings in the Plugins folder. Think of the Plugins folder like the Program Files folder on Windows - it's where the application packages are, settings and docs have other dedicated locations.

      Personally, I have always disagreed with this interpretation...

      These files are the Plugin/Extensions additional files, without the files the plugin will be less then intended, they 'should' remain together in a single location or be stored in Sketchup.read/write_default...

      The two main issues I've previously expounded are:

      the accidental removal if stored elsewhere...
      orphaning if the plugin is deemed no longer required...

      The second is my biggest bugbear...

      If you desire to locate these 'settings' elsewhere, you should provide an easily accessible 'uninstaller' that removes them whenever the user wants...

      If users requirers portability of any settings, this can be handled by an export settings method with a corresponding import settings method...

      too many plugins litter, too many files in too many locations...

      This should be discouraged not condoned...

      john

      posted in Developers' Forum
      D
      driven
    • RE: Requesting idea for creating shapes with webdialog

      @kaas, have a look for HEREDOC, the main gotcha is omitting the dash

        puts <<HEREDOC
      
        after newline and two spaces in
      this this will be left justified...
      HEREDOC # this MUST be left justified without the dash...
      
        puts <<-HEREDOC
      
        after newline and two spaces in
        adding dash allows nicer looking code, but text will not be left justified...
        HEREDOC
      
        @var = 'no curly brackets needed'
        var = 'curly brackets needed'
        puts <<-HEREDOC
      
        after newline and two spaces in
        #@var
        #{var}
        HEREDOC
      
      

      john

      posted in Newbie Forum
      D
      driven
    • RE: Materials After Installing Maintenance Release

      re the thread, it's your thread I'd say edit the Title to 'mac materials v16' or similar and carry on...

      You may as well leave the defaults alone, there are some good materials...

      in the [user] Materials folder you create sub-folders that contain .skm files...

      unless at that level you will not see them in SU on a mac... [ I think you can have nesting on a PC ]

      So you create your own sets and name the folders with an identifier lf_bricks, lf_carpets, lf_etc...

      you'll notice any forum sets folders are suc-mat_type and then inside the folders the .skm name are also tagged...

      it comes in handy to have easy to follow/find naming conventions, particularly when exporting/rendering...

      john

      posted in SketchUp Discussions
      D
      driven
    • RE: Materials After Installing Maintenance Release

      on the 'other forum' I did say...

      @unknownuser said:

      User files will remain intact...

      on a mac, this means keeping them in your User Library SketchUp Folder if you want them available every time SU starts...

      there are lots of threads on how to Make or Find this 'Materials' folder...

      it is never over-written, and will only disappear if you remove it...

      anything you put 'inside' the app will be removed every time the app is modified...

      john

      posted in SketchUp Discussions
      D
      driven
    • RE: Mac reopens last file.

      that shouldn't work...

      google sold sketchUp and Trimble don't use it's name on the folders...

      so for 13, 14, 15, 16 just change the last digit...

       com.sketchup.SketchUp.2016 
      

      john

      posted in Newbie Forum
      D
      driven
    • RE: 3dConnexion Problem w/ 2016

      sorry I didn't read your first post more diligently...

      on a mac, it installs the plugin into a folder that 'can' have permission issues, it may also do that on your PC...

      can you find it's plugin files on your system?

      is the plugin listed in 'Ruby Console' if you type in $"?

      I ended up totally removing it, permanently...

      john

      posted in Corner Bar
      D
      driven
    • RE: 3dConnexion Problem w/ 2016

      the 'plugin' is loaded into each SU version when you instal the 'driver'...

      if the SU version wasn't there at the driver instal time, it can never see it...

      reinstalling the driver should fix it...

      john

      posted in Corner Bar
      D
      driven
    • RE: SU 16 Mac: Sandbox &lt;Errno::ENOENT:No such file or directory&gt;

      @TIG, I did ask that at the start but overlooked the reply...

      @filippobasso said:

      About OSX install, I've a normal "File System Personality: Case-sensitive Journaled HFS+" OSX install, yes

      @Filippo, this is not a normal OSX install, and many apps will run into problems, not just SU...

      I believe OS X server and iOS are [Case-sensitive], but OS X became 'Case Preserving' in its standard releases...

      there are are few threads with reply from SketchUp staff discussing the known problems you will have...

      your second mac must have the 'standard' journalling if it works...

      john

      posted in SketchUp Discussions
      D
      driven
    • RE: SU 16 Mac: Sandbox &lt;Errno::ENOENT:No such file or directory&gt;

      for some reason it is failing on Line number 35 in the menu ruby...

      when you look at line #35 and those following you will notice it uses CamelCase filenames...

      Sketchup;;require 'su_sandbox/FromContours'
      Sketchup;;require 'su_sandbox/FromScratch'
      Sketchup;;require 'su_sandbox/SmooveTool'
      Sketchup;;require 'su_sandbox/StampTool'
      Sketchup;;require 'su_sandbox/DrapeTool2'
      Sketchup;;require 'su_sandbox/DetailTool'
      Sketchup;;require 'su_sandbox/FlipEdgeTool'
      

      but the files it requires have all lowercase names...

      detailtool.rbs		fromscratch.rbs		smoovetool.rbs
      drapetool2.rbs		geometryhelpers.rbs	stamptool.rbs
      extension_info.txt	images			su_sandbox.hash
      flipedgetool.rbs	meshhelpers.rbs		triangulatorutility.rbs
      fromcontours.rbs	sandboxmenus.rb
      

      it's poor practice to do this with filenames, but it shouldn't be an issue, as Sketchup::require will call downcase on the filenames...

      but you are seeing it fail for some reason...

      if you rename and down-case those filenames, then restart, does it load?

      if so you may have a system setting that is blocking the downcasing...

      john

      posted in SketchUp Discussions
      D
      driven
    • RE: SU 16 Mac: Sandbox &lt;Errno::ENOENT:No such file or directory&gt;

      do you have "3DArcStudio 3D Tree Maker" on the one that works?

      I would, disable it and retry...

      always eliminate 3rd party plugins first...

      john

      posted in SketchUp Discussions
      D
      driven
    • 1 / 1