Reloading plugins while SketchUp is running
-
@thomthom said:
@javixp said:
is is possible to load/unload/reload plugins with SketchUp running?
You can load (and reload) scripts by using the Ruby Console, typing
load 'myRubyFile.rb'I tried that and it worked. However, what I wanted was to reload plugins using... another plugin, something like this:
def reload load 'myRubyFile.rb' endProblem is that one doesn't work, the Ruby Console says:
C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/myRubyFile.rb;64;in `load' C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/myRubyFile.rb;64 C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/myRubyFile.rb;64;in `call' C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/myRubyFile.rb;64Note: Line 64 is where the function 'reload' is called
Thanks
-
You must replace myRubyFile.rb with the actual filename of the plugin you want to reload. I just picked a random name...
-
I know, I know. I think you didn't understand me well

It does work on the ruby console, but not as a plugin itself.
-
You cannot load the file itself while it's being loaded. (.. it's a circular reference.)
The load call must be made from another file.
-
That fixed the 'issue', thanks

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement