ProgressBar v.1.000 by Todd Burch | unavailable free |
||
description | Displays a progress bar on the status line while a script is running. Several scripts need this script to run. It may also be used by other script writers. |
||
usage | This Ruby plugin is required for several other plugins. It provides a way for the calling plugin to communicate with you the progress of long running functions. There are 3 possible components to the progress bar text that shows up in the Status Bar within SketchUpTM.
When you download this plugin, place it in your /Plugins folder like you would for most every other plugin. Programming with ProgressBarIf you want to use progressbar.rb in your own Ruby plugins, you may, and here is how to do it. require 'progressbar.rb' Then, once you determine the total number of items you will be processing, create a new instance of a ProgressBar, passing both the total count and the optional name of the phase. (This is case sensitive) pb = ProgressBar.new(total_number{,optional_string}) # coding template pb = ProgressBar.new(myArray.length,"Making Faces...") # coding example Each time you process an item in your plugin, you need to update the progress bar, like this: pb.update(current_item_number) # coding template pb.update(i) # coding example There are no other methods. |
||
see also | other plugins by Todd Burch: |
||
notice | By downloading and installing this plugin, you indicate that you have read and agree to the terms and conditions of the End-User License Agreement (EULA). Prices subject to change. |