(TRICK) To re-enable skp file preview

Share or learn with the Pros

Re: (TRICK) To re-enable skp file preview

Postby pbacot » Tue Nov 04, 2014 8:32 pm

SU development ignores the Mac interface as a rule.
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: (TRICK) To re-enable skp file preview

Postby driven » Tue Nov 04, 2014 10:07 pm

IMHO... the SU team support mac far more than our user numbers warrant.

Back On Topic: I actually prefer adding my own icons independently of "Save" and have a plugin that does this...

john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: (TRICK) To re-enable skp file preview

Postby pbacot » Tue Nov 04, 2014 11:22 pm

Not IMO. Compared to what? They haven't dropped the platform altogether, that's true.
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: (TRICK) To re-enable skp file preview

Postby xxtiny » Tue Mar 17, 2015 4:03 am

Does this work in sketchup 2015 windows 7 . I've been having the same problem with file preview.
0

xxtiny 
 

Re: (TRICK) To re-enable skp file preview

Postby steveclayton » Wed Apr 22, 2015 6:54 pm

For Mac

Download GraphicConverter: http://www.lemkesoft.de/en/products/gra ... /download/
Select: Download now (from Switch.ch)

Once you open the Free version of GraphicConverter, File/Open and find the folder, where you have placed all your Sketchup files. Under EDIT / Select All

Now at the bottom click on (Create Preview) This will change all :P the Sketchup logo(s) into it's graphic thumbnail.

Note: It will not launch the graphic icon, unless you are in Sketchup.

Open Sketchup and (Open File). You should see the Thumbnails, and these icons will launch. :)
1

steveclayton 
 

Re: (TRICK) To re-enable skp file preview

Postby kevsterman » Sun Dec 06, 2015 4:59 pm

steveclayton wrote:For Mac

Download GraphicConverter: http://www.lemkesoft.de/en/products/gra ... /download/
Select: Download now (from Switch.ch)

Once you open the Free version of GraphicConverter, File/Open and find the folder, where you have placed all your Sketchup files. Under EDIT / Select All

Now at the bottom click on (Create Preview) This will change all :P the Sketchup logo(s) into it's graphic thumbnail.

Note: It will not launch the graphic icon, unless you are in Sketchup.

Open Sketchup and (Open File). You should see the Thumbnails, and these icons will launch. :)



Steve, I could kiss you! I've been wanting to be able to see thumbnails of my SU files since I got my mac 4 years ago. Thank you so much for this tip! :fro:
0
"Avoid keeping more than 3 items on your desk that you can't fit into your mouth."

kevsterman 
 

Re: (TRICK) To re-enable skp file preview

Postby Lemoyne Architect » Tue Dec 08, 2015 4:34 pm

kevsterman wrote:Steve, I could kiss you! I've been wanting to be able to see thumbnails of my SU files since I got my mac 4 years ago. Thank you so much for this tip! :fro:


+Eleventy! No idea why SU doesn’t bother to support this. I’ve missed it ever since it was dropped.
0
User avatar
Lemoyne Architect 
 

Re: (TRICK) To re-enable skp file preview

Postby bflmpsvz » Thu Feb 04, 2016 12:14 pm

pibuz wrote:"regsvr32 thumbsup.dll" and press "return".


Great! It works!
My situation:
Windows XP 32 bit
installed Sketchup 8 and Sketchup 6 (version 6 installed later than 8 only for AutoCAD DWG files import, but not very usable BTW).
Only for .skp files made in version 6 thumbnails were visible.
Now I see all .skp files thumbnails!!! :fro: :thumb:
0

bflmpsvz 
 

Re: (TRICK) To re-enable skp file preview

Postby Aris » Fri Feb 12, 2016 9:39 pm

hello guys,
windows 10
sketchup 2016,
adobe bridge cs6
still no thumbnails....
explorer shows thumbnails perfectly but in bridge it's only icons... any suggestions?
0
Not a native speaker, point out my spelling (or other) mistakes, I won't be offended!!!
User avatar
Aris 
Premium Member
Premium Member
 

Re: (TRICK) To re-enable skp file preview

Postby GuruMonkey » Mon Feb 27, 2017 3:26 pm

does this work for windows 10?

i'm using SU make 2015, but i have 2016 too just to be able to open and re-save in 2015 friendly format. Does anyone else do that? I can't be bothered to set everything how i like it from scratch every year... and i preferred autonomy of size and location of entity info and layers, etc...

i'm just a tad scared of anything in the registry as it's way over my head, so advice appreciated in advance of tinkering.

Thanks
mike
0

GuruMonkey 
 

Re: (TRICK) To re-enable skp file preview

Postby rombout » Fri Apr 14, 2017 4:07 pm

slbaumgartner wrote:
driven wrote:
geomp wrote: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

Thanks a lot! it works already, as i now see thumbnails in the system. Im not sure what the quicklooks does, cause it already worked without a restart. Im using 10.11.6
0
User avatar
rombout 
 

Re: (TRICK) To re-enable skp file preview

Postby rombout » Fri Jun 23, 2017 8:16 pm

It just to work a while back but now im just seeing the icons aside of the SketchUp file. he files them self show the regular su icon. Not sure why it stopped working
0
User avatar
rombout 
 

Re: (TRICK) To re-enable skp file preview

Postby rombout » Thu Aug 10, 2017 5:24 pm

Does anyone have the quicklook function working on OSX under El Capitan?

On mavericks it worked but with El Capitan the thumbnails arent set to the file
0
User avatar
rombout 
 

Re: (TRICK) To re-enable skp file preview

Postby driven » Thu Aug 10, 2017 8:13 pm

it works fine with El Capitan and SU v17 for me...

if the Finder icon size is set to small it will revert to the generic icon instead...

and it will show old files the same unless saved in v17...

are you seeing none?

john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: (TRICK) To re-enable skp file preview

Postby rombout » Wed Dec 13, 2017 10:22 pm

I was looking into this little plugin again. I the quicklook.generator does give a error if i drop direct in the terminal, is that normal. The thumbnails are working but i dont preview them on the files no more. It did work for a small period of time though.

this is the code i got in terminal
-bash: /Library/QuickLook/SketchUp-Preview.qlgenerator/Contents/MacOS/SketchUp-Preview: Operation not permitted

using osx 10.11.6
0
User avatar
rombout 
 

Re: (TRICK) To re-enable skp file preview

Postby rombout » Wed Dec 13, 2017 11:06 pm

I did some more digging and found a method how you can see what quicklook can see or what is using it for that

Last login: Wed Dec 13 17:50:45 on ttys000
MBP-Schroef:~ Admin$ qlmanage -m | grep epub
org.idpf.epub-folder -> /System/Library/QuickLook/iBooks.qlgenerator (1)
org.idpf.epub-container -> /System/Library/QuickLook/iBooks.qlgenerator (1)
MBP-Schroef:~ Admin$ qlmanage -m | grep skp
MBP-Schroef:~ Admin$ qlmanage -m | grep previewp
MBP-Schroef:~ Admin$ qlmanage -m | grep iwork
com.apple.iwork.keynote.sffkth -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.pages.sfftemplate -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.keynote.key -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.numbers.sffnumbers -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.numbers.numbers-tef -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.keynote.sffkey -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.pages.pages-tef -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.pages.sffpages -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.keynote.key-tef -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.numbers.sfftemplate -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.pages.pages -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.keynote.kth -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.numbers.numbers -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.numbers.template -> /Library/QuickLook/iWork.qlgenerator (146)
com.apple.iwork.pages.template -> /Library/QuickLook/iWork.qlgenerator (146)
MBP-Schroef:~ Admin$ qlmanage -m | grep skb
MBP-Schroef:~ Admin$ qlmanage -m | grep .skp
MBP-Schroef:~ Admin$

skp isnt linked to anything as it seems. Could you have a look at i again perhaps :)
0
User avatar
rombout 
 

Re: (TRICK) To re-enable skp file preview

Postby slbaumgartner » Thu Dec 14, 2017 2:36 pm

I don't know why it stopped working. It is possible that Apple changed something in releases of OS X since I wrote my qlgenerator or that subsequent versions of SketchUp associate the skp files with a different system id. There was so little interest expressed at the time that I haven't bothered to maintain it. I've since moved on to macOS 10.13.2, which might also behave differently than your OS. Plus, SketchUp 2018 comes with its own new qlgenerator, which eliminates the need for mine going forward. That said, you could try the ideas below to investigate.

You are using the wrong pattern in grep to search the return from qlmanage. Try qlmanage -m | grep Ske instead and you should see what is handling SketchUp files. If my qlgenerator is correctly installed, you should see entries for dyn.ah62d4rv4ge81g45u and com.sketchup. I had to use these because at the time SketchUp itself wasn't registering anything. The icons will take effect only after you save a file while the plugin is installed, as the plugin is what creates the image used by the icon.

It's been long enough I may have forgotten, but I don't think qlgenerators can be run standalone from the Terminal. They hook into a calling chain where they are fed a file and return an image handle, which doesn't make sense standalone.

You might also check for a folder named .QL_SketchUp in your home folder (things starting with . are hidden by default - in terminal you need to use ls -a to see them). It should exist, be writable, and should contain an image for each skp you have saved since the plugin was installed.

Check your system's log files to see whether you can find anything about quick look errors. Because OS X creates vast numbers of log messages about things that will mean nothing to you, this is somewhat like looking for a needle in a haystack but if you find something it might provide a clue about why it is no longer working.
1

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: (TRICK) To re-enable skp file preview

Postby rombout » Thu Dec 14, 2017 6:45 pm

I got it working by changing the plist file

I went on for hours checking and googling stuff. drove me nuts. I even installed Xcode but got to the point where you need to add code which does all the work and look at the folders and files. I didnt know what todo there.

So i went on again looking in other files. Then i noticed that when i changed com.skethup to com.sketchup.skp it does work again.

This is the altered Plist i got.

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>BuildMachineOSBuild</key>
    <string>12C3006</string>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeExtensions</key>
            <array>
                <string>skp</string>
            </array>
            <key>CFBundleTypeRole</key>
            <string>QLGenerator</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>com.sketchup.skp</string>
                <string>dyn.ah62d4rv4ge81g45u</string>
                <string>dyn.ah62d4rv4ge81g45c</string>
            </array>
        </dict>
    </array>
    <key>CFBundleExecutable</key>
    <string>SketchUp-Preview</string>
    <key>CFBundleIdentifier</key>
    <string>SLBaumgartner.SketchUp-Preview</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>SketchUp-Preview</string>
    <key>CFBundleShortVersionString</key>
    <string>1</string>
    <key>CFBundleVersion</key>
    <string>1.0</string>
    <key>CFPlugInDynamicRegisterFunction</key>
    <string></string>
    <key>CFPlugInDynamicRegistration</key>
    <string>NO</string>
    <key>CFPlugInFactories</key>
    <dict>
        <key>36F18F11-EC39-4F93-9C9A-39C5CA341D28</key>
        <string>QuickLookGeneratorPluginFactory</string>
    </dict>
    <key>CFPlugInTypes</key>
    <dict>
        <key>5E2D9680-5022-40FA-B806-43349622E5B9</key>
        <array>
            <string>36F18F11-EC39-4F93-9C9A-39C5CA341D28</string>
        </array>
    </dict>
    <key>CFPlugInUnloadFunction</key>
    <string></string>
    <key>DTCompiler</key>
    <string></string>
    <key>DTPlatformBuild</key>
    <string>4G2008a</string>
    <key>DTPlatformVersion</key>
    <string>GM</string>
    <key>DTSDKBuild</key>
    <string>12C37</string>
    <key>DTSDKName</key>
    <string>macosx10.8</string>
    <key>DTXcode</key>
    <string>0452</string>
    <key>DTXcodeBuild</key>
    <string>4G2008a</string>
    <key>LSApplicationCategoryType</key>
    <string></string>
    <key>NSHumanReadableCopyright</key>
    <string>Copyright © 2012 Stephen Baumgartner. All rights reserved.</string>
    <key>QLNeedsToBeRunInMainThread</key>
    <false/>
    <key>QLPreviewHeight</key>
    <real>600</real>
    <key>QLPreviewWidth</key>
    <real>800</real>
    <key>QLSupportsConcurrentRequests</key>
    <false/>
    <key>QLThumbnailMinimumSize</key>
    <integer>16</integer>
    <key>UTImportedTypeDeclarations</key>
    <array>
        <dict>
            <key>UTTypeConformsTo</key>
            <array>
                <string>public.data</string>
            </array>
            <key>UTTypeDescription</key>
            <string>SketchUp File</string>
            <key>UTTypeIdentifier</key>
            <string>com.sketchup.skp</string>
            <key>UTTypeTagSpecification</key>
            <dict>
                <key>public.filename-extension</key>
                <array>
                    <string>skp</string>
                    <string>skb</string>
                </array>
            </dict>
        </dict>
    </array>
</dict>
</plist>


So su18 supports finally thumb previews? thats about time ;)

Does it also preview material icons now in material editor? I use thea and has own material library, yet it doesnt take the icon out of the material but shows a texture only
0
User avatar
rombout 
 

Re: (TRICK) To re-enable skp file preview

Postby rombout » Thu Dec 14, 2017 6:52 pm

Heavy models do take super long to save, is that due to jpg creation?
0
User avatar
rombout 
 

Re: (TRICK) To re-enable skp file preview

Postby rombout » Thu Dec 14, 2017 7:24 pm

Im baffled, i worked for a while and stopped again. I didnt put all my other ql plugins back and so i did. Then nothing happened again.

Now ive taken all out accept qlsketchup and still nothing is created??
Also thumb generator was working and that as well stopped now. I think ill do a restart orso.
0
User avatar
rombout 
 

Re: (TRICK) To re-enable skp file preview

Postby rombout » Thu Dec 14, 2017 8:31 pm

Not sure whats happening, but removed all other. put them back restart and now it seems to work again... weird stuff
0
User avatar
rombout 
 

Re: (TRICK) To re-enable skp file preview

Postby slbaumgartner » Thu Dec 14, 2017 11:16 pm

rombout wrote:I got it working by changing the plist file


I looked some more, and it seems that SketchUp's own plist files affect what CFBundleDocumentTypes are initially registered for skp files. At some point they went from just com.sketchup to com.sketchup.skp, which necessitates the change you made in my plist.
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: (TRICK) To re-enable skp file preview

Postby slbaumgartner » Thu Dec 14, 2017 11:21 pm

rombout wrote:Heavy models do take super long to save, is that due to jpg creation?

Heavy models can take a long time to save even without the jpg generation, but yes it will slow the save even more. You could get a sense of the impact by exporting the model as a 800x600 2D jpeg image, which is essentially what the plugin does.
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: (TRICK) To re-enable skp file preview

Postby slbaumgartner » Thu Dec 14, 2017 11:25 pm

rombout wrote:Not sure whats happening, but removed all other. put them back restart and now it seems to work again... weird stuff


Recent versions of OS X cache both plists and the qlmanage settings. You often need to force them to refresh their caches to get things to "stick", especially if an affected app is open at the time. To force refresh of the preferences cache you can either log off and back on, reboot, or issue "killall cfprefsd" in the Terminal. To force refresh of the quick looks, do "qlmanage -r".
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to SketchUp Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests

Visit our sponsors: