sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Tool History Dialog/Recall?

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 246 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EarthMoverE Offline
      EarthMover
      last edited by

      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.

      3D Artist at Clearstory 3D Imaging
      Guide Tool at Winning With Sketchup
      Content Creator at Skapeup

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        @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.)

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement