# Sketchup (SKP) importer

**URL:** <https://blenderartists.org/t/sketchup-skp-importer/632085>\
**Category:** Released Add-ons and Extensions\
**Tags:** add-ons\
**Created:** [January 20, 2015, 12:41pm UTC](https://blenderartists.org/t/sketchup-skp-importer/632085 "2015-01-20T12:41:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juicyfruit](https://blenderartists.org/user_avatar/blenderartists.org/juicyfruit/32/18515_2.png) [@Juicyfruit](https://blenderartists.org/u/Juicyfruit)\
**Post date:** [January 20, 2015, 12:41pm UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/1 "2015-01-20T12:41:00Z")

</div>

**Importer for Sketchup 6-2015**

I made this importer based to the official Sketchup API/SDK, This makes it work really well as file format compatibility is great as you would expect. This is also the greatest weakness in that this is incompatible with the GPL.

Added sketchup 2016 and blender 2.77 support

**Supports:**

- Components
- Groups
- Meshes
- Materials ( to cycles only)
- Cameras
- UV coordinates, including correct STQ to UV and scales
- Setting up viewport transparency for objects that have transparent materials
- Reusing existing materials by name ( the script does not import materials if they already exist in the scene, this to facilitate reimporting / rendering work-flows )
- Use dupli vert / face for cases where very many instances need to be imported
- Skip UV importing if object has no materials with textures
- Import all camera’s
- Honor ‘hidden’ flag
- Importing Scenes ( you have to know the scene name )

**Todo:**

- Import ortho cameras
- import sun with position / rotation
- map sketchup layers onto blender layers
- Fix dupli verts mode. ( not a priority as dupli face mode is superior)

**Cannot be done:**

- Linux support ( the libraries used are only released for Windows and OS X)

**Known issues:**

- Current render engine is set to cycles by importer
- This is not GPL compatible and cannot ever be distributed together with blender.
- if current camera is ortho script fails

**Source:** https://github.com/martijnberger/pyslapi

**Downloads:**

> **[martijnberger/pyslapi](https://github.com/martijnberger/pyslapi/releases/tag/0.15)**
>
> pyslapi - Python bindings for the official Sketchup API

---

<div class="post-metadata">

**Author:** ![raziel\_henzo](https://blenderartists.org/user_avatar/blenderartists.org/raziel_henzo/32/26860_2.png) [@raziel\_henzo](https://blenderartists.org/u/raziel_henzo)\
**Post date:** [January 20, 2015, 2:33pm UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/2 "2015-01-20T14:33:49Z")

</div>

WOW thanks man

---

<div class="post-metadata">

**Author:** ![maraCZ](https://blenderartists.org/user_avatar/blenderartists.org/maracz/32/449661_2.png) [@maraCZ](https://blenderartists.org/u/maraCZ)\
**Post date:** [January 20, 2015, 2:39pm UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/3 "2015-01-20T14:39:47Z")

</div>

cool! looking forward to test it, I have never managed to export camera from sketchup so I hope this addon will solve the problem 🙂

---

<div class="post-metadata">

**Author:** ![Juicyfruit](https://blenderartists.org/user_avatar/blenderartists.org/juicyfruit/32/18515_2.png) [@Juicyfruit](https://blenderartists.org/u/Juicyfruit)\
**Post date:** [January 20, 2015, 11:17pm UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/4 "2015-01-20T23:17:43Z")

</div>

> [@maraCZ](#):
>
> cool! looking forward to test it, I have never managed to export camera from sketchup so I hope this addon will solve the problem 🙂

I need to redo the camera math as there is something not 100% right currently. I have had this working in a previous unreleased importer for Maxwell renders scenes, so it should work soonish 🙂

---

<div class="post-metadata">

**Author:** ![ingoenius](https://blenderartists.org/user_avatar/blenderartists.org/ingoenius/32/4350_2.png) [@ingoenius](https://blenderartists.org/u/ingoenius)\
**Post date:** [January 21, 2015, 2:35am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/5 "2015-01-21T02:35:32Z")

</div>

Excellent script  
would also make possible the exporter from blender to sketch-up  
TANKS

---

<div class="post-metadata">

**Author:** ![bluecd](https://blenderartists.org/user_avatar/blenderartists.org/bluecd/32/20152_2.png) [@bluecd](https://blenderartists.org/u/bluecd)\
**Post date:** [January 21, 2015, 3:10am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/6 "2015-01-21T03:10:44Z")

</div>

WOW ! Thanx a lot !

Works great but…if no material assigned.  
Importer cant find relevant material if assigned and does not import at all…

location: \<unknown location\>:-1  
[Sketchup 2015-Jan-21 12:24:06] importing skp 'F:\X\_PROJEKTY\_Tato\DOM\_ERGA\D5  
_20140929.skp’  
[Sketchup 2015-Jan-21 12:24:07] Done parsing skp ‘F:\X\_PROJEKTY\_Tato\DOM\_ERGA  
\D5\_20140929.skp’ in 0.8180 sec.  
c: emp;950ec55c577812fab2390bb0a8371759.jpg  
Traceback (most recent call last):  
File "E:\Blender\_Foundation\Blender\2.73\scripts\addons\_contrib\sketchup\_impor  
ter\_init_.py", line 317, in execute  
return SceneImporter().set\_filename(keywords[‘filepath’]).load(context, \*\*ke  
ywords)  
File “E:\Blender\_Foundation\Blender\2.73\scripts\addons\_contrib\sketchup\_impor  
ter\__init_\_.py”, line 113, in load  
self.write\_materials(skp\_model.materials)  
File “E:\Blender\_Foundation\Blender\2.73\scripts\addons\_contrib\sketchup\_impor  
ter\__init_\_.py”, line 148, in write\_materials  
img = bpy.data.images.load(tmp\_name)  
RuntimeError: Error: Cannot read ‘c: emp;950ec55c577812fab2390bb0a8371759.jpg’:  
No such file or directory

location: \<unknown location\>:-1

location: \<unknown location\>:-1

---

<div class="post-metadata">

**Author:** ![Juicyfruit](https://blenderartists.org/user_avatar/blenderartists.org/juicyfruit/32/18515_2.png) [@Juicyfruit](https://blenderartists.org/u/Juicyfruit)\
**Post date:** [January 21, 2015, 7:42am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/7 "2015-01-21T07:42:05Z")

</div>

> [@bluecd](#):
>
> WOW ! Thanx a lot !
> 
> Works great but…if no material assigned.  
> Importer cant find relevant material if assigned and does not import at all…
> 
> location: \<unknown location\>:-1  
> [Sketchup 2015-Jan-21 12:24:06] importing skp 'F:\X\_PROJEKTY\_Tato\DOM\_ERGA\D5  
> _20140929.skp’  
> [Sketchup 2015-Jan-21 12:24:07] Done parsing skp ‘F:\X\_PROJEKTY\_Tato\DOM\_ERGA  
> \D5\_20140929.skp’ in 0.8180 sec.  
> c: emp;950ec55c577812fab2390bb0a8371759.jpg  
> Traceback (most recent call last):  
> File "E:\Blender\_Foundation\Blender\2.73\scripts\addons\_contrib\sketchup\_impor  
> ter\_init_.py", line 317, in execute  
> return SceneImporter().set\_filename(keywords[‘filepath’]).load(context, \*\*ke  
> ywords)  
> File “E:\Blender\_Foundation\Blender\2.73\scripts\addons\_contrib\sketchup\_impor  
> ter\__init_\_.py”, line 113, in load  
> self.write\_materials(skp\_model.materials)  
> File “E:\Blender\_Foundation\Blender\2.73\scripts\addons\_contrib\sketchup\_impor  
> ter\__init_\_.py”, line 148, in write\_materials  
> img = bpy.data.images.load(tmp\_name)  
> RuntimeError: Error: Cannot read ‘c: emp;950ec55c577812fab2390bb0a8371759.jpg’:  
> No such file or directory
> 
> location: \<unknown location\>:-1
> 
> location: \<unknown location\>:-1

Ill look into that.

Just updated the script to also do UV coordinates.

---

<div class="post-metadata">

**Author:** ![Juicyfruit](https://blenderartists.org/user_avatar/blenderartists.org/juicyfruit/32/18515_2.png) [@Juicyfruit](https://blenderartists.org/u/Juicyfruit)\
**Post date:** [January 21, 2015, 7:46am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/8 "2015-01-21T07:46:36Z")

</div>

> [@ingoenius](#):
>
> Excellent script  
> would also make possible the exporter from blender to sketch-up  
> TANKS

Yes exporting is also very possible but for my current situation importing is much more needed.  
I don’t have to much free time and working on blender / cycles itself eats the majority so not giving an ETA 🙂

---

<div class="post-metadata">

**Author:** ![vklidu](https://blenderartists.org/user_avatar/blenderartists.org/vklidu/32/4040_2.png) [@vklidu](https://blenderartists.org/u/vklidu)\
**Post date:** [January 21, 2015, 8:07am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/9 "2015-01-21T08:07:02Z")

</div>

Juicyfruit: I installed version for OS X. I’m not able to even enable the add-on.  
Can you recognize the reason? Thank you for help.

```auto
Traceback (most recent call last):
  File "/Users/filip/Downloads/Blender-Builds/blender-2.73-fdddd4e-OSX-10.6-x86_64/blender.app/Contents/MacOS/../Resources/2.73/scripts/modules/addon_utils.py", line 299, in enable
    mod = __import__ (module_name)
  File "/Users/filip/Library/Application Support/Blender/2.73/scripts/addons/sketchup_importer/ __init__.py", line 32, in &lt;module&gt;
    from . import sketchup
ImportError: dlopen(/Users/filip/Library/Application Support/Blender/2.73/scripts/addons/sketchup_importer/sketchup.so, 2): Library not loaded: @rpath/slapi.framework/Versions/Current/slapi
  Referenced from: /Users/filip/Library/Application Support/Blender/2.73/scripts/addons/sketchup_importer/sketchup.so
  Reason: image not found

```

---

<div class="post-metadata">

**Author:** ![2ndClemens](https://blenderartists.org/letter_avatar_proxy/v4/letter/2/f19dbf/32.png) [@2ndClemens](https://blenderartists.org/u/2ndClemens)\
**Post date:** [January 21, 2015, 11:43am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/10 "2015-01-21T11:43:39Z")

</div>

wow, works much better than sketchup dae export, thanks! couldn’t activate it on mac though, same error as vklidu reported.

---

<div class="post-metadata">

**Author:** ![lenain34](https://blenderartists.org/user_avatar/blenderartists.org/lenain34/32/14270_2.png) [@lenain34](https://blenderartists.org/u/lenain34)\
**Post date:** [January 22, 2015, 12:47am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/11 "2015-01-22T00:47:47Z")

</div>

@ Juicyfruit - Nice progress so far! You said me in the other thread that the importer was already operating a Remove Doubles on all objects, so it’s weird, because from my tests, it don’t.  
Also there is a scale problem with the UV mapping. It doesn’t seem to take into account the texture scale specified in the Sketchup Edit tab from the Materials panel. It seems to export the default scale (10cm x 10cm).  
Here are my tests files: [https://www.dropbox.com/sh/xf6hybwvnq8t9py/AAC24MPBu2vZVfefI\_j2zpbHa?dl=0](https://www.dropbox.com/sh/xf6hybwvnq8t9py/AAC24MPBu2vZVfefI_j2zpbHa?dl=0)

Edit: I tried on another model, an everything worked fine… so that’s great news 😃 ! But I’m really wondering what’s wrong with the import of my test scene… If you have time I’d like you to check the files in order to know if there are rules to make the import consistent.  
Thank you Juicyfruit for this addon!

---

<div class="post-metadata">

**Author:** ![Alain](https://blenderartists.org/user_avatar/blenderartists.org/alain/32/6179_2.png) [@Alain](https://blenderartists.org/u/Alain)\
**Post date:** [January 22, 2015, 1:38pm UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/12 "2015-01-22T13:38:23Z")

</div>

Fantastic Script ! Thank you !

The only thing that confuses me a bit are the wrong displayed Faces in Solid-Mode:

 ![](https://blenderartists.org/uploads/default/original/4X/9/c/6/9c6696630925c0198e6993b2b21adef7ef45892c.jpg)  
 ![](https://blenderartists.org/uploads/default/original/4X/d/d/8/dd8b2fe86074e838e18e2b577b66237bac20da70.png)  

Texture-Mode works:

 ![](https://blenderartists.org/uploads/default/original/4X/d/5/1/d515fd1ffb265166103378f512da8f114a771526.png)  

Kind regards  
Alain

---

<div class="post-metadata">

**Author:** ![lenain34](https://blenderartists.org/user_avatar/blenderartists.org/lenain34/32/14270_2.png) [@lenain34](https://blenderartists.org/u/lenain34)\
**Post date:** [January 23, 2015, 11:00am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/13 "2015-01-23T11:00:30Z")

</div>

Crazy thing happening when viewing in orthographic mode in blender:

 ![](https://blenderartists.org/uploads/default/original/4X/f/6/c/f6cb8f71af447f92271fb546dddab03b6497e800.jpg)  

Also, I’m unable to render with an external renderer when there is some geometry imported from sketchup (with Cycles, everything works fine). Blender automatically crashes when I press F12. The same geometry imported via Collada worked.

Maybe this is what you meant by “current render engine is set to Cycles by importer”…

---

<div class="post-metadata">

**Author:** ![Andr3yAngel](https://blenderartists.org/user_avatar/blenderartists.org/andr3yangel/32/1242902_2.png) [@Andr3yAngel](https://blenderartists.org/u/Andr3yAngel)\
**Post date:** [January 26, 2015, 7:05am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/14 "2015-01-26T07:05:01Z")

</div>

One question: What versions of Sketchup are compatible with this addon?

---

<div class="post-metadata">

**Author:** ![Juicyfruit](https://blenderartists.org/user_avatar/blenderartists.org/juicyfruit/32/18515_2.png) [@Juicyfruit](https://blenderartists.org/u/Juicyfruit)\
**Post date:** [January 27, 2015, 2:01am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/15 "2015-01-27T02:01:06Z")

</div>

> [@Andr3yAngel](#):
>
> One question: What versions of Sketchup are compatible with this addon?

I have tried versions 6 to 2015 but pre version 6 may also work

---

<div class="post-metadata">

**Author:** ![cekuhnen](https://blenderartists.org/user_avatar/blenderartists.org/cekuhnen/32/496_2.png) [@cekuhnen](https://blenderartists.org/u/cekuhnen)\
**Post date:** [February 13, 2015, 10:56am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/16 "2015-02-13T10:56:34Z")

</div>

wuhu this is fantastic!

---

<div class="post-metadata">

**Author:** ![artisanicview](https://blenderartists.org/user_avatar/blenderartists.org/artisanicview/32/3607_2.png) [@artisanicview](https://blenderartists.org/u/artisanicview)\
**Post date:** [February 28, 2015, 7:53am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/17 "2015-02-28T07:53:52Z")

</div>

Thank you for your effort on bringing this to life. For me is working just fine under OSX.

But will be better to preserve the geometry as quads instead of triangles. Maybe an option to chose this at the importing time will be great. Right now I need to convert all the tris to quads manually.

Also an .skp exporter for Blender will be of great help. I need to save some objects from Blender to .skp format and send the .skp files to Vcarve for nesting and CNC mechanisation. Unfortunately to this moment Vcarve can import only .skp files and is a tedious task to export blend models to SketchUp and from there to save in .skp format and after that to open .skp files in VCarve.

---

<div class="post-metadata">

**Author:** ![cekuhnen](https://blenderartists.org/user_avatar/blenderartists.org/cekuhnen/32/496_2.png) [@cekuhnen](https://blenderartists.org/u/cekuhnen)\
**Post date:** [March 11, 2015, 9:13am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/18 "2015-03-11T09:13:12Z")

</div>

Oh I noticed often materials and such are missing. Any idea why? I have the feeling colors or textures applied to individual faced dont transfer but applied to a group works!

---

<div class="post-metadata">

**Author:** ![Nubi](https://blenderartists.org/letter_avatar_proxy/v4/letter/n/bcef8e/32.png) [@Nubi](https://blenderartists.org/u/Nubi)\
**Post date:** [March 14, 2015, 9:33pm UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/19 "2015-03-14T21:33:29Z")

</div>

Having an issue with the add-in and not quite sure why. I’m running on Windows and get the following error message when I try to import:

 ![](https://blenderartists.org/uploads/default/original/4X/1/6/c/16ce22cf33658bfe99699217469337117d340b78.JPG)  

Any Ideas what is going on here?

---

<div class="post-metadata">

**Author:** ![nickchun](https://blenderartists.org/letter_avatar_proxy/v4/letter/n/ce7236/32.png) [@nickchun](https://blenderartists.org/u/nickchun)\
**Post date:** [March 31, 2015, 2:04am UTC](https://blenderartists.org/t/sketchup-skp-importer/632085/20 "2015-03-31T02:04:25Z")

</div>

Sorry for the noob question but I can’t get this to show up in the add ons menu. I am using Blender 2.72 and install from file option, double click on python file to install it. Should it come up under import/export in the add ons menu and does it show as ‘import SKP file’?

[Next page](https://blenderartists.org/t/sketchup-skp-importer/632085.md?page=2)
