Posts made by lfpaul
-
Best Practice for Altering Project Components w/ Ruby API
I am working on building a custom plugin for use inside SketchUp using the Ruby API. A WebDialog is used to display information that is pulled from the model (Such as scenes, materials, grids, etc). I am able to correctly display the desired information, however I want to be able to change/upadte this information from within the WebDialog and have it update in the SketchUp project.
Ex) Inside the WebDialog all of the scenes in the project are listed. I want to be able to update the name of a scene, or delete a scene from within this dialog. So say I change the name of a scene from within the dialog, I want the dialog scene list and SketchUp project to update with the new name of the scene that was specified.
What is the best practice for achieving this type of communication between a WebDialog and SketchUp using the Ruby API?
I am fairly new to this SketchUp Ruby API and would appreciate any other tips or general advice about using it to manipulate project properties and components.
Thanks in advance!