[tutorial] Sketchup Macros (OSX)
-
Can you shortcut to the services>macro?
-
@unknownuser said:
Can you shortcut to the services>macro?
yes. your services can be activated via keyboard shortcuts. there's also a real easy way to turn them on/off.. group them etc.
-
nice... thanks much.
i have similar issues as your stringer with compound roof components.
pretty sure i can combine your method here with what i've started to work out in a compound timber valley / hip DC.here's a video of the DC i started on awhile ago but abandoned due to its complexity turning it into something like a solid or single component:
-
here's another one i made yesterday (wouldn't really call this a sketchup macro though)..
it's does a 'save a copy as' plus assigns an interactive screenshot as a 512px icon to the file..
http://youtu.be/IFpNr2V0hRI?hd=1
[flash=853,480:1yl5v7i5]http://www.youtube.com/v/IFpNr2V0hRI?version=3&hl=en_US&rel=0[/flash:1yl5v7i5]
[a sort of attempt at mimicking osx lion's Versions though this still creates multiple .skps instead of the snapshots being in a single file]
-
Setting the screenshot to a fixed ratio would be nice, with a timestamp/watermark
-
@unknownuser said:
Setting the screenshot to a fixed ratio would be nice, with a timestamp/watermark
yeah.. i agree.. the popup alerting you to take a screenshot then the selection window is getting annoying..
i think i'm going to set it up as a square ratio (height of window determines how wide to make it.. (i.e.- the same thing as choosing medium format 6x6 in advanced camera tools)
probably won't do the timestamp.. osx makes it easy to view/sort by pretty much anything that could be associated with a fileβ¦
(i will say, this service, while definitely helpful for me, is nowhere as neat/integrated as what's possible to do with osx itself.. i might upload an example of how saving works in Rhino (which is tied into osxVersions).. it's great.. it does take a bit of getting used to at first because typical 'save' 'save as' etc is so ingrained in us now and versions changes that (i.e.- you never save )..
i'm sure it will come to windows soon..
-
@unknownuser said:
@unknownuser said:
Setting the screenshot to a fixed ratio would be nice, with a timestamp/watermark
yeah.. i agree.. the popup alerting you to take a screenshot then the selection window is getting annoying..
i think i'm going to set it up as a square ratio (height of window determines how wide to make it.. (i.e.- the same thing as choosing medium format 6x6 in advanced camera tools)
probably won't do the timestamp.. osx makes it easy to view/sort by pretty much anything that could be associated with a fileβ¦
(i will say, this service, while definitely helpful for me, is nowhere as neat/integrated as what's possible to do with osx itself.. i might upload an example of how saving works in Rhino (which is tied into osxVersions).. it's great.. it does take a bit of getting used to at first because typical 'save' 'save as' etc is so ingrained in us now and versions changes that (i.e.- you never save )..
i'm sure it will come to windows soon..
i so need to get on board with the saving stuff in OSX. still dating each file nearly every other day and having a hard time getting used to where to find stuff when i need a particular file. 'date modified' was my favorite sort in windows... that seems hit and miss in OSX.
this is good stuff. thanks for sharing.
-
that last video is great...
will have to investigate that for sure. -
@bmike said:
that last video is great...
will have to investigate that for sure.I'll rewrite parts of it so it's not specific to my machine and share it.
(if you're on lion, sharing services is a breeze.. still possible to share on 10.5 & 6 but the user has to manually place it in the services folder) -
Cool Stuff !
Why only just now and not from many years ago ?Any idea for make the same on PC (the first macro)
-
did create a couple macros
would like guidance on creating macro of full SU window capture for icon/preview followed by cmd S without creating new file.
I'll let ForeverSave keep the manual(Automator) versions with it's autosave unchecked and sort from there.
-
Jeff,
having problems with the final applescript, doesn't seem to access SU.
"A" toggles axes off, but doesn't toggle back on with last script. Other test was trying "cmd a" in final script which should have selected all in SU but selected all on desktop instead. Tried shifting order?
other problem is this SU dialog which pops up after every first save after running macro. Can I automate a Save for this?
if I use GC, icon updates on main file which is probably my main goal as I don't often use ForeverSave2 as was icing on a big Mac bundle...
-
@wind-borne said:
Jeff,
having problems with the final applescript, doesn't seem to access SU.
yeah.. you've left the sketchup environment at this point in your script by going to finder and maybe graphic converter..
to get back to sketchup, you'll have to add this prior to your final system events tell
tell application "sketchup" to activate
this will bring sketchup back to the front application.
@unknownuser said:
other problem is this SU dialog which pops up after every first save after running macro. Can I automate a Save for this?
[attachment=2:32yjarrq]<!-- ia2 -->SketchUp.png<!-- ia2 -->[/attachment:32yjarrq]hmm.. i'll have to look into this a little later to see what's going on..
fwiw, getting a non interactive screenshot (unless it's the entire screen) has proven to be a lot more difficult than i originally though it would be.. i'm in a thread at an applescript forum right now trying to reach a solution but it's not looking too good..
i also tried going the route of using sketchup's 2d export to create the icon image (which is actually pretty awesome because you could do pngs with transparent backgrounds.. it also eliminates what you're doing with hiding the axes because a 2d export doesn't include it).. the problem with that is there's about a 5 second delay in there because of something weird going on with the export dialogs (and i've posted about this on the google sketchup forums)..
if you open 'activity monitor' then go to sketchup's 2D export -> Options⦠you'll see a ginormous spike in cpu usage.. something is wrong with opening those panels which causes a slow down in the script i was trying to make..
still researching though.. non conclusive as of now.
-
Thanks,
I had tried moving script between Screenshot and Finder section.
tell application "sketchup" to activate
needs to be
tell application "SketchUp" to activate
Works now.
I was trying the " Watch Me Do" to automate pick window, didn't work how I tried.
-
@wind-borne said:
Thanks,
I had tried moving script between Screenshot and Finder section.
tell application "sketchup" to activate
needs to be
tell application "SketchUp" to activate
Works now.
I was trying the " Watch Me Do" to automate pick window, didn't work how I tried.
yeah.. watch me do doesn't work out as good as it seems.. super slow and whatnot..
i'm now messing around with the idea of getting the icon image via ruby instead of a screenshot or GUI scripting sketchup.. ruby confuses the hell out of me though ..i'll make a post in the developers forum real quick.. those guys will help me sort it out..
Advertisement