Pages

Plugin: Observer Tests

2010-05 - The renderingOptionsObsever now prints the name of the changed option.


Observer Tests a test suite of all the available observers in SketchUp.

The image shows the menu with the observers. Click an an observer to add it to the model. Be sure to open the Ruby Console window to view the events that get called.


The latest version includes all the Observers in SketchUp. A few of them need some user input to find something to attach to, and so I added some dialogs to help pick those things out. These are marked with an asterisk.

To install, unzip the file and move the observers folder into your Plugins folder. The Observers menu will appear in the Plugins menu.

Download from here.

9 comments:

  1. This is a fine blog and an excellent resource. Keep up the good work.

    ReplyDelete
  2. jim your blog and contributions to the sketchup community are amazing!!! please keep exploring

    ReplyDelete
  3. AnonymousMay 05, 2008

    load 'observers/menus.rb'

    just for quick copy/paste :)

    ReplyDelete
  4. Jim, have you had any luck in getting the Definition Observer to work?

    Or EntitiesObserver.onContentsChange event?

    ReplyDelete
  5. No Thomas, I haven't. Each Observer method is dynamically generated, and the 2 DefinitionObserver methods: onComponentInstanceAdded, and onComponentInstanceRemoved are both created. But I don't know what triggers them.

    ReplyDelete
  6. hey Jim, simply placing the "observers" folder in the plugins folder does not load the plugin for me (It does not show up in the Plugins menu list)

    ReplyDelete
  7. onizu - it should be in the Tools menu. Let me know if it is not there.

    ReplyDelete
  8. Jim, it does not show in the Tools menu either..

    ReplyDelete