[Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Re: [Plugin] ToolbarEditor (1.1.1) – updated 07.05.2014

Postby glro » Thu Jun 19, 2014 10:05 am

another detail: the toolbar position is not stored when you close sketchup

so you have to move it everytime you open

not really important, but would it be possible to dck the created toolbars as the other native toolbars?
0

glro 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby Aerilius » Thu Jun 19, 2014 8:22 pm

Plugins can not influence the position of the toolbar (they can only tell SketchUp to show/hide a toolbar, and Sketchup remembers the position). Since these toolbars are created with a timeout (after all other plugins have been loaded), there was initially a problem wher the toolbar didn't remember its position. After report it was improved in SU2013 so that SketchUp should remember the position even after timeout. In which SketchUp version does it happen to you?
I have reduced the timeout, maybe that caused the problem?
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby glro » Fri Jun 20, 2014 11:00 pm

Aerilius wrote:Plugins can not influence the position of the toolbar (they can only tell SketchUp to show/hide a toolbar, and Sketchup remembers the position). Since these toolbars are created with a timeout (after all other plugins have been loaded), there was initially a problem wher the toolbar didn't remember its position. After report it was improved in SU2013 so that SketchUp should remember the position even after timeout. In which SketchUp version does it happen to you?
I have reduced the timeout, maybe that caused the problem?


i use sketchup 8

i shall try version 13 or 14, to check

thank you
0

glro 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby keithwins » Mon Jun 23, 2014 3:33 pm

This would be just what I'm looking for... if I could get it working.

When I open it up (v. 1.1.2 on SU 2014 on Win7), the list of available commands is very limited.

The vast majority of them is from the 1001bits extension I've got installed. Then there are perhaps 20 more. No View menu commands, for example, which is what I wanted.

Speaking for myself and as a relative noob, I think I'd prefer the commands listed in menu order: i.e. Tools/Sandbox/Smoove, but I perhaps I'm putting too much stock in the menus, with which I'm faintly familiar. I'd also love an option to list in different formats, i.e. a nice tight text list that would show about twice as much per page.

This looks awesome, and I can see it's working for other people. I've tried shutting down & restarting SU. I also just uninstalled and reinstalled TE, and an interesting thing happened: it still had about as many non-1001bits commands, but not the same ones! I only know this b/c I saw smoove on there before, and it's not there now. I tried disabling 1001bits, and interestingly enough there aren't any more non-1001bits tools there than before. 25 to be precise. Then I uninstalled TE, reinstalled, and same thing.
0
SU Pro 2014
Win 7

There are two kinds of people in the world: those who believe there are two kinds of people, and...

keithwins 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby Aerilius » Mon Jun 23, 2014 9:50 pm

SketchUp does not make its menus readable, they can not be accessed or included in custom plugin toolbars. This plugin can only make toolbars for plugin commands (sorry, it got missing from the description in the SCF plugins store, it's still mentioned in the SU extension warehouse).

SketchUp's native commands need to be replicated one by one. You can install LaunchUp, which comes with a lot of copies of SketchUp's native commands.
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby keithwins » Tue Jun 24, 2014 2:24 pm

Thanks Aurelius, I don't think I understand, but now I understand that I don't understand. I haven't really looked at creating commands, my level of sophistication extended only to picking something off a list :p
0
SU Pro 2014
Win 7

There are two kinds of people in the world: those who believe there are two kinds of people, and...

keithwins 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby Box » Tue Jun 24, 2014 2:27 pm

Do you know you can make custom toolbars natively in 2014?
0
User avatar
Box 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby theviru » Tue Jul 01, 2014 10:49 pm

Hello,

Im looking to make a button that will add a custom object that I have made. I am currently running SU8 and some one in my company (no longer here) made a button that did this. But I want to move to sketchup 2014 unfortunately I cant seem to figure out how to add this button. I see the box on your toolbar editor that allows you to add in ruby code but I'm not a programmer. I don't know if any one has made a button like this and would be willing to share there ruby code would help out allot.

I dont know if this is important but I also have to be able to move/edit parts of this object once it has been placed.
0

theviru 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby Aerilius » Wed Jul 02, 2014 8:29 am

The old button must have been a plugin, so it has ruby code. Without that ruby code there won't be a button. Could you look up where that plugin was located (installed) in the old SketchUp version (SU8 had the plugins under Program Files/Google/Google SketchUp 8/Plugins) and then you could just install it in SketchUp 2014 (under <your_user>/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins).

This plugin is rather for small code snippets (~1-10 lines). Of course one can make such a script that inserts a component, but that depends on what exactly it should do.
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby theviru » Wed Jul 02, 2014 5:57 pm

Thanks there seems to be multiple .rb files that have names of the buttons. So if I run them I should get the button thanks for the help.
0

theviru 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby Krisidious » Sun Sep 21, 2014 3:53 am

You can add native plugins and commands if you install Jim's custom toolbars in conjunction with Aerilius' custom toolbars. Jim's makes native commands available inside of Aerilius' customizer. I have both installed for this reason.
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby derei » Wed Feb 04, 2015 8:18 pm

I think I found a very nasty bug on Toolbar Editor. It acts strange sometimes. Please check the image attached.
Also, a backup function for it would be nice... ideally embedded in warehouse user account somehow, if possible.
But, in the meantime, look at my unintended toolbars:
Is not the first time when it acts randomly. On a previous date I found a separator that I never dragged it in place.
Any possible explanation?
2015-02-04_191921.png
1
DESIGNER AND ARTIST DEREI.UK
User avatar
derei 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby Aerilius » Wed Feb 04, 2015 9:17 pm

Second note:
When editing an existing toolbar, in edge cases not all changes can be correctly applied (for example buttons can not be removed, and buttons can only be appended at the end), but changes should be completely applied at next restart. The alternative would be that the plugin does not even try updating the toolbar, but requests the user to restart SketchUp.

Anyways, it is clear that wrong icons should not be added. I'll try to find the best compromise for updated toolbars.

First note: Could be a hash collision (although I thought unlikely). I will try to reproduce it (evt. I will ask for a specific registry setting). Can you tell me what plugin the two pencil icons are?
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby deaneau » Sat Apr 18, 2015 9:15 am

hello,
how look a ruby-snipped to have a plugin with an icon?

some developer have only plugins that's work in menue. ok i could add short-cuts for this, however sometimes i would have a toolbar with all my most used plugins together.
0
MADE, BORN AND LIVING IN BERLIN
Big Thank You to all Programmers
Some German words are so long that they have a perspective. M.Twain
User avatar
deaneau 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby TIG » Sat Apr 18, 2015 11:32 am

deaneau wrote:hello,
how look a ruby-snipped to have a plugin with an icon?

some developer have only plugins that's work in menue. ok i could add short-cuts for this, however sometimes i would have a toolbar with all my most used plugins together.
See how plugins that do have a toolbar do it...
Typically the plugin's menu entry is set up using a 'command'.
You can add a line or two of code to that to use that command in a new toolbar.
You'll need an icon png file to be loaded from somewhere.
After all of the scripts have loaded as SketchUp starts, you cannot add items to an existing menu or toolbar.
Several scripts can add items to an existing menu or toolbar if they do so as they load when SketchUp starts, but this is only possible if that menu or toolbar has a 'reference' that they can access - e.g. an @instance_variable or a CONSTANT, which has been set up in a module which they all share, or a $global_variable_with_a_unique_name [not recommended as it is shared by all modules and could clash with other's too]...

An example of the menu making command is:
Code: Select all
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:
Code: Select all
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...
Remember to use a plain-text editor like Notepad++ to edit the .rb file.
Encoding must be UTF-8_without_BOM to be compatible with all SketchUp versions...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby thomthom » Sat Apr 18, 2015 1:31 pm

TIG wrote:toolbar.show if toolbar.get_last_state.abs == 1 # TB_VISIBLE/NEVER

toolbar.restore does the exact same thing.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby deaneau » Sat Apr 18, 2015 7:59 pm

thanks at TIG and ThomThom... i will look at this deeper in the next week.

thank you
0
MADE, BORN AND LIVING IN BERLIN
Big Thank You to all Programmers
Some German words are so long that they have a perspective. M.Twain
User avatar
deaneau 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby Esense3d » Sat Apr 18, 2015 8:19 pm

Thank You
but downloadlink do not work for me ?
0

Esense3d 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby TIG » Sun Apr 19, 2015 2:22 pm

Esense3d wrote:Thank You
but downloadlink do not work for me ?
Have you tried the PluginStore RBZ ??

Download

0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby deaneau » Mon Apr 20, 2015 7:18 pm

short answer. SKP2015 make and pro works. download and install.

@Esense3d.. dont be shy to answer.

the shortest and fastest answer is this (if this work)

=> :thumb: <=

;)
0
MADE, BORN AND LIVING IN BERLIN
Big Thank You to all Programmers
Some German words are so long that they have a perspective. M.Twain
User avatar
deaneau 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby Guilherme Bera » Thu Jul 21, 2016 7:04 am

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.
1

Guilherme Bera 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby greenskp » Fri Jul 29, 2016 7:44 pm

Thank you very much!
0
User avatar
greenskp 
Premium Member
Premium Member
 

Re: [Plugin] ToolbarEditor (1.1.1) – updated 07.05.2014

Postby Guilherme Bera » Tue Aug 16, 2016 4:55 am

Aerilius wrote: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 :(
0

Guilherme Bera 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby thirdleft » Sat Sep 17, 2016 4:12 am

When I import my registry from one computer to another it loads all of the toolbars but does not load the buttons.Any ideas why this may be happening?

Thanks in advance!
1

thirdleft 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby thirdleft » Mon Sep 19, 2016 6:13 am

thirdleft wrote:When I import my registry from one computer to another it loads all of the toolbars but does not load the buttons.Any ideas why this may be happening?

Thanks in advance!


Okay the problem is because it remembers the username of the original computer. I logged into a colleagues computer with my username and it works but when i log in with his it doesnt. Is there any way of fixing this manually?

Ideally i want to set up a registry and plugin data file for 3-4 users in our office so we all have the same toolbars but because we obviously dont have the same username it isnt working. Does this mean i have to set it up one by one?

Thanks for all your help

Regards,
Keith
0

thirdleft 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby Jim » Mon Sep 19, 2016 9:54 pm

Look also in your "%APPDATA%\SketchUp Toolbar Editor" folder for toolbar commands.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby rv1974 » Tue Sep 20, 2016 8:39 am

I've got subjective feeling that my custom TE icon loading is painfully slow on start-up.
Is it possible or loading original toolbars would take the same amount of time?
0

rv1974 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby Ahmed0007 » Sun Mar 17, 2019 3:16 am

Toolbar Editor (1.1.3); not showing any icon in sketchup 2016, 17, 18 but it's showing 2019 can you please fix this problem.
1

Ahmed0007 
 

Re: [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

Postby panixia » Fri Jan 24, 2020 1:15 pm

Is there a code snippet i can use to emulate keystrokes?
That would be a quick way to create a custom button which mimics a shortcut for menu entry.. :!:
0
User avatar
panixia 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to Plugins

Who is online

Users browsing this forum: 6789zero, cchin, Google Bot and 16 guests

Visit our sponsors: