@driven said:
@geomp said:
What's the best solution for Mac?
check out Jeff's earlier post, GraphicConvertor.app is still the best solution I'm aware of...
john
As a new Mac convert, I was frustrated by the lack of QuickLook thumbnails for SketchUp files, and worse, on my Mac QuickLook tried to treat the file as text, taking a long time and then displaying a huge amount of useless hexadecimal data. So I decided to see if there was a simple solution. Here's what I came up with.
First of all, although SketchUp saves a PNG format thumbnail inside each file (containing the last view you had open), and has Ruby API calls to generate thumbnails, these images are only 128 pixels wide. For a model of even modest complexity, this makes the image so distorted and blurry that it is useless. So, the first requirement was to create a better image for the file. To do this, I wrote the little Ruby plugin attached. It creates an observer that causes SketchUp to save a jpeg image of the current view each time you save a file. I set the image to 800x600 at a moderate level of compression to make it big and clear enough to see but not gigantic in size. You can easily edit the Ruby if you want a different size. The image has the same base name as the SketchUp file but with extension ".pv.jpg". There is a delay to export the image as you save a file; depending on the complexity of the model you might or might not notice.
Second, I wrote a little QuickLook generator, also attached, that looks for the image to go with a SketchUp file and tells the system to use it as a thumbnail. SketchUp does not (at this time) register its own UTI for its files, so OS X creates a dynamic UTI for them. I put the dynamic UTIs for skp and skb files in the info.plist for this generator. I am led to believe that these should be the same on all Macs, so hopefully they will work for everyone. With this generator, the thumbnail image is displayed for any file that has one and the SketchUp icon for files that do not.
To implement my system, copy the Ruby plugin into your plugins directory (~/Library/Application Support/Google SketchUp 8/SketchUp/Plugins) and copy the QuickLook generator into ~/Library/QuickLook. Note: by default the Finder hides your Library folder, but you can get there using the Go->Go To Folder menu in Finder. Also, you may need to restart the QuickLook system by rebooting or, if you are bolder, running qlmanage -r in a terminal window.
Despite the name of the generator, it actually creates a thumbnail, not a preview. After working on this it struck me that given a well-detailed thumbnail, there was really no need for a preview. If you want to go beyond the thumbnail, you can just open the file in SketchUp.
As I mentioned, I am new to Mac, so I don't know all the ins and outs of making this portable. I compiled the generator on a MacBook Pro under Mountain Lion, and I am not sure whether it will work on a non-Intel Mac or on an older version of the OS, as I have access to neither. If it won't run on your system, PM me and I'll be happy to send you the source code.
Steve
creates a jpeg image of the current view when you save a file
uses the jpeg for a thumbnail in QuickLook