sketchucation logo sketchucation
    • Login
    1. Home
    2. Guilherme Bera
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Groups 1

    Guilherme Bera

    @Guilherme Bera

    10
    Reputation
    1
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Guilherme Bera Unfollow Follow
    registered-users

    Latest posts made by Guilherme Bera

    • RE: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

      @aerilius said:

      The toolbars are stored in the registry
      HKEY_CURRENT_USER\Software\SketchUp\SketchUp 2014\Plugins_ae\ToolbarEditor.
      You can copy and paste it in the same key on another SketchUp installation or version. You can also use the File β†’ Export functionality of the registry. I'm not sure whether I should add an export button to each of my plugins, I hope SketchUp will provide an efficient and central place to migrate settings.

      From a developer side, I want to emphasis again that most of us want plugin settings to be namespaced and bundled in one sub-key, and not mixed within SketchUp's internal keys.

      I did my backup in this way, and today I restarted my windows and restored the registry key. The custom toolbar appeared again, but I was unable to add more toolbar or functions.

      So the only way was to redo all the custom toolbars 😞

      posted in Plugins
      G
      Guilherme Bera
    • RE: [Plugin] SectionCutFace

      I'd like to thank you by this plugin.

      As I started to use the plugin "Toolbar Editor" from Aerilius, it induced me to make the Sketchup's workspace more visual and this plugin doesn't have toolbar. I'd to modify by myself just enough to support toolbar but this script is scrambled. So I'd be glad if you could modify your plugin just enough to support toolbar.

      I'd say a simple way to add toolbar on it, but it'd be a quote from you (bit.ly/29PAk6T).

      PS: If it could be helpful, I attached icons created for the toolbar.


      SectionCutFace_24.png


      SectionCutFace_32.png

      posted in Plugins
      G
      Guilherme Bera
    • RE: [Plugin] Lines to tubes

      I'd like to thank you by this plugin.

      But it doesn't have a toolbar, and once that the plugin "Toolbar Editor" from Aerilius, induced me to make the workspace more visual. I decided to modify a bunch of scripts just enough to support toolbar, but your script is scrambled, so I can't do it by myself. So I'd be glad if you could modify your plugin just enough to support toolbar.

      Then a simple way to add the toolbar support is like TIG commented in another topic (bit.ly/29PAk6T😞

      @unknownuser said:

      An example of the menu making command is:

      unless file_loaded?(__FILE__)
      >    cmd = UI;;Command.new("SomeCommandName"){ SomeCommand.new() }
      >    UI.menu("Plugins").add_item(cmd)
      > ### START - ADD TOOLBAR HERE...
      > ### END -   ADD TOOLBAR HERE
      >    file_loaded(__FILE__)
      > end
      

      If it's a 'Tool' the CMD setup is slightly different...

      An example to use that within a toolbar is this additional code added between the ### markers:

      cmd.tooltip = "SomeCommandName"
      > cmd.status_bar_text = "SomeText"
      > cmd.small_icon = File.join("SomeCommandFolder/ImagesFolder", 'icon-24.png')
      > cmd.large_icon = File.join("SomeCommandFolder/ImagesFolder", 'icon-32.png')
      > toolbar = UI;;Toolbar.new("SomeCommandName")
      > toolbar.add_item(cmd)
      > toolbar.show if toolbar.get_last_state.abs == 1 # TB_VISIBLE/NEVER
      

      Note how addition properties are needed for the cmd to be used in a toolbar.
      The path to the button icons and their names is up to you...

      PS: If it could be helpful, I attached icons created for the toolbar.


      lines2tubes_32.png


      lines2tubes_24.png

      posted in Plugins
      G
      Guilherme Bera
    • RE: [Plugin] S4u Scale Definition

      Thank you for your effort in make this plugin that has been quite useful for me.

      I'm just a bit upset, because it doesn't have a toolbar. So I'd be glad if you could modify your plugin just enough to support toolbar. I could do it by myself, but your script is crypted.

      Then a simple way to add the toolbar support is like TIG commented in another topic (bit.ly/29PAk6T😞

      @unknownuser said:

      An example of the menu making command is:

      unless file_loaded?(__FILE__)
      >    cmd = UI;;Command.new("SomeCommandName"){ SomeCommand.new() }
      >    UI.menu("Plugins").add_item(cmd)
      > ### START - ADD TOOLBAR HERE...
      > ### END -   ADD TOOLBAR HERE
      >    file_loaded(__FILE__)
      > end
      

      If it's a 'Tool' the CMD setup is slightly different...

      An example to use that within a toolbar is this additional code added between the ### markers:

      cmd.tooltip = "SomeCommandName"
      > cmd.status_bar_text = "SomeText"
      > cmd.small_icon = File.join("SomeCommandFolder/ImagesFolder", 'icon-24.png')
      > cmd.large_icon = File.join("SomeCommandFolder/ImagesFolder", 'icon-32.png')
      > toolbar = UI;;Toolbar.new("SomeCommandName")
      > toolbar.add_item(cmd)
      > toolbar.show if toolbar.get_last_state.abs == 1 # TB_VISIBLE/NEVER
      

      Note how addition properties are needed for the cmd to be used in a toolbar.
      The path to the button icons and their names is up to you...

      And I attached icons that I created for the toolbar, if it can be helpful.


      small icon


      large icon

      posted in Plugins
      G
      Guilherme Bera
    • RE: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

      Wow, thanks Aerilius for this plugin!! I was so amazed that I added the toolbar function to a bunch of plugins. Indeed, I'll post to each author, my icons and the modified script.

      Anyway, I was wondering if would be possible mix the Toolbar Editor and the LaunchUp. Let's me explain, the LaunchUp is able to keep the last searched function as a mini functional toolbar. And the Toolbar Editor make possible create custom toolbars. So, you would have some floating windows grouping your custom toolbars, a even more revolutionary UI implementation.

      I'd like to make me helpful, but I'm just a ruby starter yet.

      posted in Plugins
      G
      Guilherme Bera
    • Backuping Sketchup workspace

      Well, I read in a post of Dan Rathbun, in another forum a step by step guide, that is really useful for who need to install sketchup and some plugins in several machines or has tons of plugins to manage in workspace.

      So I modified the info about the path of the backup, that showed in my tests to be restricted to the RubyWorkspace's folder and not the entire registry of Sketchup. And I also added two .bat files to automate the process (the compiled files are attached).

      PS: It's valid for 2015 version, but I belive that it isn't difficult to modify the script.

      @unknownuser said:

      (1) Log onto the "fresh standard profile"
      (2) Install all the allowed plugins.
      (3) Open all the toolbars that you wish displayed when SketchUp starts, and dock them where they need to be.
      (4) Open any inspector tool windows (Layers, Materials, Scenes, etc.) and place and stack them where you wish.
      (5) Close SketchUp so all the toolbar and window locations are saved into the registry.

      If you cannot log into the "fresh standard profile", ie, if it is generated "on-the-fly".
      Then you may be able to do like anme suggests, ...

      (1) Create a new user profile, and log into it.
      (2) Install all the allowed plugins.
      (3) Open all the toolbars that you wish displayed when SketchUp starts, and dock them where they need to be.
      (4) Open any inspector tool windows (Layers, Materials, Scenes, etc.) and place and stack them where you wish.
      (5) Close SketchUp so all the toolbar and window locations are saved into the registry.

      Then open a command prompt, and use the REG command to save the "SketchUp 2015" hive to a reg file:

      REG EXPORT "HKCU\Software\SketchUp\SketchUp 2015\RubyWorkspace" "relative/path/from/current/dir/su2015.reg"
      

      (It is easier to change to the destination directory first.)

      You now have a reg file, you can import into any profile with:

      REG IMPORT "relative/path/from/current/dir/su2015.reg"
      

      Or, you could edit the file and change all
      "[HKEY_CURRENT_USER" to "[HKEY_USERS.DEFAULT"
      which would import the settings into a machine's default user, and any new user created (on that machine,) will inherit those settings.

      Credits: Dan Rabuth
      http://bit.ly/29UJUD0

      .BAT Automatic Backup Workspace Exporter

      @echo off
      REM actual path is a relative path to the location of your bat "%~dp0\su2015_rubyworkspace.reg"
      REM reg script's author; Dan Rathbun 
      REM bat compilation; Guilherme Bera
      
      REG EXPORT "HKCU\Software\SketchUp\SketchUp 2015\RubyWorkspace" "%~dp0\su2015_rubyworkspace.reg"
      

      .BAT Automatic Backup Workspace Importer

      @echo off
      REM actual path is a relative path to the location of your bat "%~dp0\su2015_rubyworkspace.reg"
      REM reg script's author; Dan Rathbun 
      REM bat compilation; Guilherme Bera
      
      REG IMPORT "%~dp0\su2015_rubyworkspace.reg"
      

      SU2015 Workspace Backup Exporter & Importer

      posted in SketchUp Tutorials sketchup
      G
      Guilherme Bera