Help with adding extension to Trimble's Extension Warehouse.
-
Hi,
Just recently got aproved for adding plugins to Extension Warehouse but when I try adding one this error appears:
RBZ Problem: Your extension must implement the SketchupExtension class.
Can someone explain to me what is wrong with the following rbz found in this link?
http://sketchucation.com/forums/viewtopic.php?f=323&t=52238
Note: I have made the plugin to be an extension so that you can see it under Window > Preferences > Extensions.
Any help will be appreciated!
-
Hi Renderiza,
This error is because the SketchUp Extension Warehouse requires that you create and register your extension in your top-level .RB file, like this:
my_extension = SketchupExtension.new("MyExtension", File.join("MyExtension", "loader.rb"))
Set your name, description, version, creator, copyright properties here
Sketchup.register_extension(my_extension, true)
If you add that, your submission should work.
Paul
-
Hi,
The problem was that I had a .rb named RND_0_Menu which was there to make some menus and then load the main .rb named RND_Animatex which then had all the code to register the extension. Sinse RND_Animatex wasn't the top-level .rb I was getting that error but I will fix that soon.
Thank you for your help I really appreciate it!
-
That won't work.
You need an RBZ file containing a rb and a subfolder.
The 'extension_loader' rb that goes into the Plugins folder [and so it auto-loads] will be named say:
xxxxxxxx.rb
All that this particular file does is load/register your extension.
And then a subfolder of rb/rbs files - which MUST also be called 'xxxxxxxx
'.
One of these files should be the 'menu_toolbar_loader' rb [with 'any name' allowed] which is loaded byxxxxxxxx.rb
[potentially if its extension is 'checked'].
In turn that file can also load all of the remaining main-code rb/bs files in its subfolder and also make its menus/toolbars/webdialogs etc...It's just some of the many EW rules... which can't be avoided.
-
Hi,
I could not make it so that every plugin I made will share same sub-menu under plugins.
Tried even registering both RND_0_Menu and RND_Animatex as extensions but seem you can't have two under same .rbz file.Upon realizing this I decided to not put every plugin under same sub-menu and everything now works smoothly. I am awaiting approval for the plugin so fingers crossed.
Here is final RBZ file just in case someone is interest...
Finally thanks to everyone that was helping me on this!
-
I did it!
All my plugins will appear under "Renderiza Tools" in the Plugins Menu and still be compatible with Extension Warehouse Rules.
I looked at some of Chris Fullmer plugins to see how he did it and then tried does techniques to my plugins and it worked so THANKS Chris Fullmer!
-
Not a problem, glad it worked. I finally remade my menu scheme so as to remove the only global variable I had been using, and wrapped all my menus into my own developer module. Much cleaner now. Thanks to Dan for his examples of how to nicely wrap up scripts into a single developer module. Hopefully I did it right
Chris
-
ROFL
I remember a time when you got real testy about cleaning up your plugins.
Glad you've seen the light.
-
I think we all have our shining moments, and I'm certainly no exception
Advertisement