how to stop some plugin toolbars from appearing at startup

The ideal place for beginners to get help using SketchUp

how to stop some plugin toolbars from appearing at startup

Postby troypiggo » Sat Jun 30, 2012 2:33 am

Hi there. I've been building up a library of very cool plugins. A couple of them seem to open little toolbars at startup. eg Profile Builder (what an awesome plugin) and Hatchface. Is there a way to stop this from happening?
0
This is not my signature. I type it at the end of every message for quality control.

troypiggo 
 

Re: how to stop some plugin toolbars from appearing at start

Postby Gaieus » Sat Jun 30, 2012 10:56 am

First undock these toolbars (drag the off the toolbar area so that they are floating. Maybe you will need to restart SU to see if this has taken a permanent effect.

Now go to View > Toolbars and here uncheck what you do not want to appear. Again, at this area you can now save the toolbar positions (just in case)

Undocking is important first otherwise when you enable them again, they will try to find their places in the dock and mess up your other toolbars. This way, if you need them temporarily (and go to the View menu again to check them), they will appear floating.
0
User avatar
Gaieus 
Administrator
 

Re: how to stop some plugin toolbars from appearing at start

Postby jeff hammond » Sat Jun 30, 2012 12:22 pm

hey Caaba.. I believe Troy is on a Mac in which case, the problem lies in how the plugin is coded.

it's a simple fix (one or two lines of code need edited) but with profile builder, it's not such a simple fix because it's a scrambled code.. so Whaat (orig author) would have to modify it then redistribute.

there is a thread or two around here discussing what needs changed. I'll try to search for it in a bit. (on a phone & at work so no promises on finding the threads ;) )
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: how to stop some plugin toolbars from appearing at start

Postby troypiggo » Sat Jun 30, 2012 12:32 pm

Thanks guys. Yes, I'm on a Mac. I might contact Whaat via PM (if OK) and let him know. Will also do a bit of a search on the fix. I assume it means manually editing the ruby code. That's cool. I've been doing a bit of reading about that and was going to have a go at some scripting myself.
0
This is not my signature. I type it at the end of every message for quality control.

troypiggo 
 

Re: how to stop some plugin toolbars from appearing at start

Postby jeff hammond » Sat Jun 30, 2012 12:39 pm

here's one such post:

viewtopic.php?p=147126#p147126

there are more scattered about in various thread with me asking the authors to make the required changes :D

it's something to do with toolbar.show and or toolbar.restore
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: how to stop some plugin toolbars from appearing at start

Postby troypiggo » Sat Jun 30, 2012 1:11 pm

Jeff Hammond wrote:here's one such post:

viewtopic.php?p=147126#p147126

there are more scattered about in various thread with me asking the authors to make the required changes :D

it's something to do with toolbar.show and or toolbar.restore


Thanks mate. That was a point in the right direction. I opened up the Hatchfaces.rb file and found the line with "toolbar.show" in it. I commented that out, restarted SU and it never shows on startup, which probably suits me considering how often I'll use it. If I close SU with the HF toolbar still open, it won't be there next time I start up.

Just for kicks, I substituted the line:

Code: Select all
toolbar.show


with:

Code: Select all
## start troypiggo edit
#toolbar.show
state = toolbar.get_last_state                                                 
if (state == TB_VISIBLE)
  toolbar.restore
end
## end troypiggo edit


and now it does indeed remember the state of the toolbar when SU was quit. Thanks again for the pointer.

Profile Builder does appear to be a scrambled ruby script, so I'll need to contact the author. I bought the pro version, so hoping it's supported :D
0
This is not my signature. I type it at the end of every message for quality control.

troypiggo 
 

Re: how to stop some plugin toolbars from appearing at start

Postby jeff hammond » Sat Jun 30, 2012 1:46 pm

it used to be where every plugin with toolbars had this problem. most of the authors have been very good about making their code cross platform these days and maybe they're doing something different than as shown in that thread..

hopefully TIG or thomthom (or fredo or jim etc) sees this thread as they'll be able to offer something a lot more meaningful/concrete than what I've spewed out here :D
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: how to stop some plugin toolbars from appearing at start

Postby Gaieus » Sat Jun 30, 2012 1:50 pm

Sorry guys, it's too hot here. :shock: Thanks Jeff for helping out! :thumb:
0
User avatar
Gaieus 
Administrator
 

Re: how to stop some plugin toolbars from appearing at start

Postby troypiggo » Fri Jul 13, 2012 11:23 pm

Just found the SoapSkinBubbleTool and it's a little different to stop toolbar opening every time.

In the plugins folder there's a folder called SoapSkinBubble, and in there is a file called SoapSkinBubbleMenu.rb. Edit that file and find the line:

Code: Select all
sbToolbar.show


and change that to:

Code: Select all
## start troypiggo edit
#   sbToolbar.show
state = sbToolbar.get_last_state                                                 
if (state == TB_VISIBLE)
  sbToolbar.restore
end
## end troypiggo edit
0
This is not my signature. I type it at the end of every message for quality control.

troypiggo 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Newbie Forum

Who is online

Users browsing this forum: Picardn and 1 guest

Visit our sponsors: