Why Not?
-
just something i've been curious about lately...
how possible would it be for sketchup to have a GUI based scripting system?
basically, i'm thinking of OS X and it's use of applescripts.. i don't know the first thing about writing applescripts but in the past, the setup was similar to today's ruby/sketchup in that clueless-about-code SU users can ask for a script to be made by someone that knows the language.. it's hit or miss on whether that script will actually be made for their specific use. (and i'm not at all trying to undermine the amazing scripts being written that often beyond my imagination).. i'm just talking about simple little tasks..
apple then released an app called automator..
http://www.apple.com/macosx/features/300.html
(see the 2nd & 3rd entries for applescript and automator)while not as powerful as writing actual scripts, automator makes it a lot easier for me to create custom tailored operations.. for instance: an action that can take a screenshot, upload it to my server, and give me the link.. doing that manually can be a bit of monotonous effort but now it's a one click deal.. i definitely couldn't write that via applescript but automator makes things like that much easier for the common user..
in a way, dynamic components is flirting with this idea but even then, i think they missed the mark..
should i even be wishing for something like this in sketchup or is it basically impossible? if it is possible, is it something that would have to be written at the core level or is it plugin-able?
thanks for any info
-
You just described a macro recorder, Vue 7 has got one for that exact purpose.
-
Yeah, that sounds like Macro recording. SU used to have a version of this, but it was scrapped because it was only screen coordinate based. Once you changed the screen aspect, all the icons and menu items would move and render the recorded macro useless.
It could be useful. I'm not sure if all the elements are in place to actually make it happen though. I think it would require a lot of observers so the script could watch everything that the user did, and it seems like the observers are still a little shaky.
Chris
-
@chris fullmer said:
...and it seems like the observers are still a little shaky.
I've run across three of them which doesn't seem to trigger putting a major fork into one of my plugins...
-
well, automator isn't a user action recorder.. (although it has that as one of it's options).. i guess what you guys are talking about is similar to creating an action in photoshop where i push record/do some things/stop recording then when i play the action, it will repeat what i did..
the basic interface that i'm talking about looks like this:
i can select which type of file etc i would like to control and then a list of options for that appear (the screenshot shows the options for file/folders.. a new set of options shows up if i select say 'sort finder items' (by date,type,size,name,etc) ) and there's a list of varibles as well..
basically, it's letting me write a script without actually writing.. the same idea as a mouse with windows/icons etc compared to a command line...
Advertisement