SketchUcation Plugin Store

 

 

[Plugin] Plugin Loader for SketchUp

[Plugin] Plugin Loader for SketchUp

Postby alexschreyer » Tue Mar 10, 2009 4:58 am

11/5/2010: I just updated this to version 1.2!

I finally got around to finishing this plugin. Everything should be working fine - let me know if you run into any problems.

This little tool came out of a need for having plugins available in a “locked down” computer lab setting (see http://www.sketchucation.com/forums/scf ... 15&t=16029). It also provides an easy way to browse some of the web plugin repositories and then to load any plugin into SketchUp - from any location. Because I had a recurring need for keeping some developer references handy, I decided to include several reference web links as well. The image below shows the menu:



This is not a perfect "plugin management" solution. I'll leave that up to Google (or you!). It works pretty well for my needs, though. Try it out. Here's the download link:
http://www.alexschreyer.net/projects/pl ... -sketchup/

Thanks to Jim for helping me with some code! Let me know if I should add some more web links to the menu.

Cheers,
Alex

edit by remus: new version available here: http://www.alexschreyer.net/projects/pl ... -sketchup/ read the notes carefully.
Last edited by alexschreyer on Fri Nov 05, 2010 6:27 pm, edited 1 time in total.
Author of "Architectural Design with SketchUp":
http://sketchupfordesign.com/
User avatar
alexschreyer
 
Posts: 137
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [Plugin] Plugin Loader for SketchUp

Postby bianhai » Tue Mar 10, 2009 8:26 am

Thanks! Very good job! :thumb:
bianhai
Banned
 
Posts: 191
Joined: Fri Nov 30, 2007 3:05 pm
Location: Shanghai China
Name: Brian

Re: [Plugin] Plugin Loader for SketchUp

Postby Pilou » Tue Mar 10, 2009 9:19 am

Tested! :enlight:
Works like a charm! :thumb:
Why with your plug no necessary to restart the prog after loading a new plugin? :shock:
That is black & white magic :mrgreen:

Just why not a "free surf" on any Net's address :?:
For goto Smustard.com for example? A Plugs famous place ;)
Last edited by Pilou on Tue Mar 10, 2009 9:29 am, edited 3 times in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10040
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Plugin Loader for SketchUp

Postby Dylan » Tue Mar 10, 2009 9:26 am

Excellent work Alex and extremely useful :thumb:
Dylan
 
Posts: 1932
Joined: Mon Oct 22, 2007 1:41 pm
Location: Royston (Herts), UK
Name: Dylan Morton

Re: [Plugin] Plugin Loader for SketchUp

Postby MALAISE » Tue Mar 10, 2009 11:44 am

I find it very useful and time saver. :thumb: :thumb:

Thanks Alex.
MALAISE
La Connaissance n'a de valeur que partagée
MALAISE
 
Posts: 620
Joined: Sun Apr 20, 2008 1:23 pm
Location: Cergy Pontoise FRANCE
Name: Pierre

Re: [Plugin] Plugin Loader for SketchUp

Postby Burkhard » Tue Mar 10, 2009 2:46 pm

Nice one.
@Pilou there is a script from the first ruby days, called script loader. Works in the same way.Not magical ;) You can find it at Didiers site.
User avatar
Burkhard
Premium Member
Premium Member
 
Posts: 863
Joined: Sat Nov 17, 2007 12:45 pm
Location: Germany
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: interior design
Level of SketchUp: Advanced

Re: [Plugin] Plugin Loader for SketchUp

Postby alexschreyer » Tue Mar 10, 2009 3:11 pm

Thanks for the comments. I actually didn't know about the script_loader plugin. But you're right - the underlying load function is very simple, nothing fancy here. I like calling it "Plugin loader" though because the menu is the Plugin menu and I wanted to make it easily understandable even for the novice user.

@Pilou: I didn't include Smustard because the Sketchucation index seems to index their plugins and I wanted to keep the menu as concise as possible.

Two questions for everyone:
* Is there a way to turn on the navigation buttons in the web dialog? Apparently these are off in Windows by default.
* Does this work on the mac? I haven't tested it yet.
Author of "Architectural Design with SketchUp":
http://sketchupfordesign.com/
User avatar
alexschreyer
 
Posts: 137
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [Plugin] Plugin Loader for SketchUp

Postby Didier Bur » Tue Mar 10, 2009 7:20 pm

Hi,

Hem hem, it seems I must update my site asap... :roll:
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur
 
Posts: 1238
Joined: Wed Nov 14, 2007 10:07 pm
Location: Nancy, France
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Plugin Loader for SketchUp

Postby alexschreyer » Tue Mar 10, 2009 8:54 pm

Hi Didier, didn't mean to put pressure on you... ;-)

Cheers, Alex
Author of "Architectural Design with SketchUp":
http://sketchupfordesign.com/
User avatar
alexschreyer
 
Posts: 137
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [Plugin] Plugin Loader for SketchUp

Postby Jean-Franco » Tue Mar 10, 2009 9:53 pm

Dear Alex, thank you for this very helpful plugin.
I've copied all my plugin folder on my USB key.
I've no problem with the single scripts. But if I want to load JPP plugin I've a bugslat !
The message box ask me to install progressbar.rb. But it already exists in my plugin folder.
Any idea on what could happen ?
Jean-Franco
User avatar
Jean-Franco
 
Posts: 427
Joined: Tue Nov 13, 2007 10:09 pm
Location: Mulhouse / France
Name: Jean-Franco
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Intermediate

Re: [Plugin] Plugin Loader for SketchUp

Postby alexschreyer » Tue Mar 10, 2009 10:00 pm

Jean-Franco wrote:The message box ask me to install progressbar.rb. But it already exists in my plugin folder.


This is a case where my loader might not work. Some (especially the more complex) plugins have dependencies that are "hardwired". It might help to have the progressbar.rb script in both locations. Dito for other standard scripts.
Author of "Architectural Design with SketchUp":
http://sketchupfordesign.com/
User avatar
alexschreyer
 
Posts: 137
Joined: Mon Jan 28, 2008 6:58 am
Location: Amherst, MA, USA
Name: Alexander Schreyer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [Plugin] Plugin Loader for SketchUp

Postby Renderiza » Thu Sep 20, 2012 12:36 am

Thank you very much!

Before this plugin I had to close & reopen my skecthup to review the changes I made to my ruby script but now I can just reload it right inside the program.
User avatar
Renderiza
 
Posts: 366
Joined: Thu Sep 13, 2012 9:41 pm
Name: Rafael Rivera
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Plugin Loader for SketchUp

Postby gilles » Fri Feb 15, 2013 11:44 am

I'm trying to manage my plugin collection, your plugin seems to be a good way doing it.

Halas, when I choose "load plugins from folder" select any plugin in the folder, I have this report in ruby console:


> load"/Volumes/USB/as_pluginloader.rb"
true
Error: #<NoMethodError: undefined method `as_require_all' for AS_plugin_loader:Module>
/Volumes/USB/as_pluginloader.rb:164:in `load_plugin_folder'
/Volumes/USB/as_pluginloader.rb:229

No plugin loaded. :(
User avatar
gilles
Top SketchUcator
 
Posts: 766
Joined: Mon Apr 07, 2008 10:29 am
Location: france
Operating system: Mac
SketchUp version: 8
License type: Free
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Plugin Loader for SketchUp

Postby driven » Fri Feb 15, 2013 1:19 pm

@gilles
add self. at line 143, that seems to work here... [ in a quick test at least!!! ]
Code: Select all
  def self.as_require_all(dirname)


john
driven
Top SketchUcator
 
Posts: 1409
Joined: Fri May 01, 2009 11:50 pm
Name: John
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Not a Premium Member yet? Check out the great time-limited deal we are offering.

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: brewsky, gilles, Google Feedfetcher, Krisidious, nachy and 13 guests