Tool History Dialog/Recall?
-
Would it be possible to create a dialog window that shows the a running tab of the last 10 or so tools or plugins used and allow you to recall them?
Now that most of our plugin lists are off the page, it would be nice to have a recall option for certain modeling tasks that may require the use of the same plugins over and over.
-
@earthmover said:
Would it be possible to create a dialog window that shows the a running tab of the last 10 or so tools or plugins used and allow you to recall them?
The $" array holds a list of every ruby script that was loaded by the require command, but those scripts are usually ones we only wish to load once anyway. (Which is the purpose of the array in the first place, require checks the array so as not to reload scripts that have already been loaded.)
I say this because, the feature you desire would need a similar array, but it must have all files loaded by the load command, except those that are in the $" array. (Tricky because require passes it's file argument to load if it decides a script needs to be loaded.)
I hate to think about this, but one solution would be to override load; not desirable because it's already been overriden by Google to handle the .rbsfiles.
It may be better to create a new run command, that mantains the 'history' array and then passes the filename argument on to load.
So the 'rule' would be if you want a script in the history, use run, if not use load directly.
A webdialog could be made easily once the maintenance of the history array was solved. Heck.. even a Inputbox with a dropdown list would work, but a webdialog would be better (single click and it could remain open, the list could be updated continuously. An Inputbox would be 3-click, open it choose script, click OK.)
Advertisement