[Plugin] inputbox.rb Simplified Script Options

[Plugin] inputbox.rb Simplified Script Options

Postby Jim » Fri May 15, 2009 5:09 pm

I added a few methods to access the values, and added persistent storage using Sketchup.write_default and .read_default.

Here's an example usage:

118.jpg


Get it here.
0
Last edited by thomthom on Tue Dec 08, 2009 9:36 pm, edited 1 time in total.
Reason: Just cleaning up and organizing the Plugin forum.
Hi

Jim 
Global Moderator
 

Re: [plugin] inputbox.rb Simplified Script Options

Postby Chris Fullmer » Fri May 15, 2009 5:33 pm

Thats great Jim! Thanks for working on this one.

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] inputbox.rb Simplified Script Options

Postby Dan Rathbun » Thu Aug 11, 2011 2:38 pm

Because the file is not within a ZIP, when we d/l from the web, all the file dates are the download date.

Since you didn't put a Revision or Release within the file, it will be hard to tell what rev a user has.

I put "# Release: 2009-05-15" below the (c) line, since that's what you had on your d/l blog page.

I assume this is Rev: 2 ??
0
    I'm not here much anymore. But a PM will fire email notifications.
    User avatar
    Dan Rathbun 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] inputbox.rb Simplified Script Options

    Postby Jim » Fri Mar 07, 2014 1:06 am

    Are there still plugins that require this one? Should it be vanquished from existence? Should it be updated and made available in the SketchUcation Store?
    0
    Hi

    Jim 
    Global Moderator
     

    Re: [Plugin] inputbox.rb Simplified Script Options

    Postby Dan Rathbun » Fri Mar 07, 2014 4:28 am

    I love the basic concept of this!

    However it likely should be folded into some mixin module that coders would include() within their modules or classes.

    They could also subclass it. For example I myself am not keen on the registry key prefix of "Inputbox_".
    A subclass could change that, or better tell the subclass what key to save under, and what prefix for each value. etc.

    Ie, usually only Ruby base classes should be defined at the toplevel. So it should be in a module namespace.

    And the "download" link no longer works.
    0
      I'm not here much anymore. But a PM will fire email notifications.
      User avatar
      Dan Rathbun 
      PluginStore Author
      PluginStore Author
       

      Re: [Plugin] inputbox.rb Simplified Script Options

      Postby Jim » Fri Mar 21, 2014 9:55 am

      I like it too, and Inputbox does make adding basic options to a plugin easier. However, if I were to write it today I would base it on TT's SKUI webdialogs and offer a wider choice of input widgets.

      With the Plugins Store giving us the ability to quickly and easily offer updates, these kinds of library extensions have a better chance of being used.
      0
      Hi

      Jim 
      Global Moderator
       

      Re: [Plugin] inputbox.rb Simplified Script Options

      Postby tzuchi » Fri Aug 08, 2014 3:40 am

      Jim wrote:Are there still plugins that require this one? Should it be vanquished from existence? Should it be updated and made available in the SketchUcation Store?


      Push Pull Group used this one and I can't find any copies of your inputbox.rb. Looks like it vanished from existence? Anyway to bring it back in to reality?
      1

      tzuchi 
       

      SketchUcation One-Liner Adverts

      by Ad Machine » 5 minutes ago



      Ad Machine 
      Robot
       



       

      Return to Plugins

      Who is online

      Users browsing this forum: No registered users and 19 guests

      Visit our sponsors: