my_pugins: [ blog | smustard.com | src ], some materials, contact: [ form, email ], twitter // Advertise //

I can also be reached at the SketchUcation Community Forums

advertisement

ObserverTests



283

This is an update to a set of SketchUp “Do-Nothing” Observer classes I made up some time ago.

The WebDialog replace a menu system and makes it much easier to attach and remove the Observers. Look in the Tools menu to open the dialog.

The download contains a single observers/ folder meant to be placed in Plugins.

observers/ contains the menu loader menus.rb  file which can be manually loaded or moved into Plugins.

Output is printed to the Ruby Console, which is opened.

The namespace has been changed to ObserverTests.

Event methods are explicitly listed instead of relying on Ruby’s reflection to get their names – this was the cause of several problems in previous versions.

Download

 

2 comments:

Thomas Thomassen said...

Very interesting. Have you tested observers in SU7.1 vs previous versions. Seems to be some of them working better now.

Thomas Thomassen said...

When I try to attach an entity observer I get a dialog with a text field. What do I do with that?
I have an entity selected, but still it prompts me with this dialog.


(p.s. when posting a comment on this blog the CAPCHA and Post buttons are not seen. it get cropped just where the CAPCHA begins. Firefox 3.5. I had to turn off CSS styles temporarily to be able to post.)