Code Monkey home page Code Monkey logo

pyslapi's Introduction

pyslapi

Python bindings for the official Sketchup API and an importer for blender based on them

OSX Build info

INSTALL DEV TOOLS

  1. Install Python3 from Python website (python.org)

  2. Install Cython from shell: pip3 install Cython --install-option="--no-cython-compile" (replace by pip if needed)

  3. Download Sketchup SDK https://extensions.sketchup.com/sketchup-sdk

BUILD

  1. Copy LayOutAPI.framework and SketchUpAPI.framework from SDK directory to pyslapi

  2. Build OSX/Windows version python3 setup.py build_ext --inplace

  3. Run the two last lines of setup script manually: install_name_tool -change @rpath/SketchUpAPI.framework/Versions/Current/SketchUpAPI @loader_path/SketchUpAPI.framework/Versions/Current/SketchUpAPI sketchup.cpython-37m-darwin.so install_name_tool -change @rpath/SketchUpAPI.framework/Versions/A/SketchUpAPI @loader_path/SketchUpAPI.framework/Versions/A/SketchUpAPI sketchup.cpython-37m-darwin.so

INSTALL

  1. Copy the following files from pyslapi to SketchUp_Importer LayOutAPI.framework SketchUpAPI.framework sketchup.cpython-37m-darwin

  2. Look the addon in Blender and enable it

pyslapi's People

Contributors

arindam-m avatar denc-nl avatar ideoservo avatar martijnberger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyslapi's Issues

Can't enable addon

Describe the bug
in os x cant enable the addon, when push the buton to enable adon it's nothing happens, the most intresting part its allso dont work on windows 10 mashine

To Reproduce
no errors

Expected behavior
enable adon, but nothing happens

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2022-04-06 at 19 37 13

System Info

  • Operating System: Windows 10, Mac Os Big Sur 11.6.5 Intel
  • Blender Version 3.1
  • SketchUp Version 2018, 2021, 2022
  • Importer Version v.0.23.0, 0.22.0

Additional context
Add any other context about the problem here.

UV map of the model unwraps incorrectly

Describe the bug
I found an issue that UV map of the model unwraps incorrectly when I import it from Blender 2.93LT using SketchUp Importer v0.23. Since image texture nodes are properly connected, each object needed to be unwrapped in order to re-texture it.

When same .skp file is imported in Blender 2.83LT through SketchUp Importer v0.21, its texture was imported correctly without an issue and the UV map was also aligned as it should be. When I tried opening other files, same issue has occurred in v0.23 though it did not happen in the previous version. Would it be possible if this is an error within v0.23?

Steps to reproduce the behavior:
import .skp file

Screenshots
화면 캡처 2021-09-08 220552
화면 캡처 2021-09-08 220416

System Info

  • Operating System: Windows 10
  • Blender Version 2.93lt
  • SketchUp Version 2020 / 2017
  • Importer Version 0.23

Not working with blender 3.1.2 - can't install

Describe the bug
When trying install then nothing happen, no on list.

To Reproduce
Try to install on blender 3.1.2

Expected behavior
It's working previous version of this addon.

Screenshots
If applicable, add screenshots to help explain your problem.
[To attach a file to an issue, drag and drop it into the comment box]

System Info

  • Operating System: [e.g. Windows 10]
  • Blender Version [e.g. 2.82a] (Only official releases)
  • SketchUp Version [e.g. 2019]
  • Importer Version [eg. v.0.20.2]

Additional context
Add any other context about the problem here.

Unable to install in Blender 3.1 Release Candidate

Hello,
I am trying to install version 0.23 of this plug-in into Blender version 3.1 (Release Candidate, Windows 11); however, the plugin does not successfully install. I have no problems installing the plugin on Blender version 3.0.

Missing UVs on random objects

Describe the bug
Missing UVs on a few random objects. Material ID and any associated texture(s) are imported upon and there. But due to no (default) UV, the texture(s) if any, couldn't be mapped.

To Reproduce
Steps to reproduce the behavior:

  1. Import the sample SKP file (PFA)
  2. Upon importing a few of those objects (books here) are missing the UVs
  3. No Error Log

Sample File: Missing_UVs.zip

Expected behavior
Any texture image that is mapped to a particular face (in SketchUp) should be there in Blender as well when imported. It's basically a case of missing UV.

Screenshots
skp_75
blr_50

System Info

  • Operating System: [Windows 10]
  • Blender Version [2.82a]
  • SketchUp Version [2019]
  • Importer Version [v.0.20.2]

Additional context
No issue with the Material ID or any Texture mapped to it. Every polygonal face is indexed to their proper and respective Material ID slots.

Can't activate the addon in Blender 2.93

I can install the latest version of the addon, but I can't activate it. The tickbox doesnt let me tick it. It just stays empty when I click it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to preferences
  2. install the addon zipfile

Expected behavior
A tick should appear that activates the addon

Screenshots
If applicable, add screenshots to help explain your problem.
[To attach a file to an issue, drag and drop it into the comment box]

System Info

  • Windows 10 64 bit fully updates
  • Blender Version 2.93
  • SketchUp Version [e.g. 2021
  • Importer Version = SketchUp_Importer_v0.21.1_Windows_x64

FileNotFoundError on os.mkdir (MacOS 10.15)

  1. File > Import > Sketchup scene...
  2. Choose any file to import.
  3. The addon throws the following error:
Python: Traceback (most recent call last):
  File "/Users/username/Library/Application Support/Blender/2.93/scripts/addons/sketchup_importer/__init__.py", line 982, in execute
    return SceneImporter().set_filename(keywords['filepath']).load(
  File "/Users/username/Library/Application Support/Blender/2.93/scripts/addons/sketchup_importer/__init__.py", line 236, in load
    self.write_materials(self.skp_model.materials)
  File "/Users/username/Library/Application Support/Blender/2.93/scripts/addons/sketchup_importer/__init__.py", line 433, in write_materials
    os.mkdir(temp_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/nr/50wh3xf90rb5lqnrf0vpwtz00000gn/T\\/path/to/my/sketchup-file'

location: <unknown location>:-1

Note that both the temporary folder path /var/folders/nr/50wh3xf90rb5lqnrf0vpwtz00000gn/T and /path/to/my/sketchup-file exist, but there is no path made up of the concatenation of both.

Expected behavior
The code should load the file selected.

System Info

  • Operating System: MacOS 10.15 (intel iMac)
  • Blender Version 2.93.4
  • SketchUp Version 2018
  • Importer Version 0.23.0

Nothing happens on export

Export not working.
Nothing happens at all.
I've tried some other files and also tried changing the export destination but still nothing...

Steps to reproduce the behavior:

  1. Go to file
  2. Click on export skp scene
  3. export window pops up
  4. click export
  5. nothing happens
  • Operating System: w10 20h2
  • Blender Version [e.g. 2.82
  • Importer Version [eg. v.0.20.2]

Not able to load certain files.

Describe the bug
While trying to import some files, an error shows up.

To Reproduce
Steps to reproduce the behavior:

  1. Trying to import a file
  2. Get errors in the console, log as shown below
SKP | Importing: G:\todosa4.skp
SKP | Skipping Layers ...
SKP | Parsed in 1.1613 sec.
imb_load_photoshop: The embed colorspace ("") not supported in existent OCIO configuration file. Fallback to system default colorspace ("sRGB").
SKP | Materials imported in 3.7165 sec.
SKP | Component depths analyzed in 0.1030 sec.
Traceback (most recent call last):
  File "C:\Users\rx\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\SketchUp_Importer\__init__.py", line 868, in execute
    context, **keywords)
  File "C:\Users\rx\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\SketchUp_Importer\__init__.py", line 184, in load
    self.write_duplicateable_groups()
  File "C:\Users\rx\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\SketchUp_Importer\__init__.py", line 237, in write_duplicateable_groups
    group = bpy.data.groups.new(name=gname)
AttributeError: 'BlendData' object has no attribute 'groups'

location: <unknown location>:-1

Expected behavior
Have an imported model

System Info

  • Operating System: Windows 10
  • Blender Version 2.82
  • SketchUp Version 2019 and version 4
  • Importer Version v.0.20.2

Additional context
Originally posted in blender artist thread: https://blenderartists.org/t/sketchup-importer-ported-for-blender-2-82a/1223412/33

Followed a proposed solution. However, the plugin doesn't load and I get this:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\modules\addon_utils.py", line 352, in enable
    mod.__time__ = os.path.getmtime(mod.__file__)
  File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\python\lib\genericpath.py", line 55, in getmtime
    return os.stat(filename).st_mtime
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

If I revert file plugin loads again.

Sketchup to Blender Import Error

Describe the bug
Importing Sketchup model to Blender results in only cameras (Scenes) being imported.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'File>Import'
  2. Click on 'Import Sketchup Scene'
  3. Error log
Traceback (most recent call last):
  File "C:\Users\jdkoll\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer\__init__.py", line 886, in execute
    context, **keywords)
  File "C:\Users\jdkoll\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer\__init__.py", line 185, in load
    self.write_duplicateable_groups()
  File "C:\Users\jdkoll\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer\__init__.py", line 245, in write_duplicateable_groups
    group=group)
  File "C:\Users\jdkoll\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer\__init__.py", line 640, in conponent_def_as_group
    group=group)
  File "C:\Users\jdkoll\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer\__init__.py", line 613, in conponent_def_as_group
    self.context.scene.objects.link(ob)
AttributeError: 'bpy_prop_collection' object has no attribute 'link'

Expected behavior
Import of Sketchup geometry to Blender 2.83

Screenshot
Sketchup to Blender Import

System Info

  • Operating System: Windows 10
  • Blender Version 2.83
  • SketchUp Version 19.3.253 64-bit
  • Importer Version v21.0

Loading a file, it looks like all the geometry has been rotated or moved slightly

Describe the bug
It's kind of hard to explain it really but when I import a few different sketchup files, it seems like every object of the file has been moved or rotated slightly, sometimes both. It is also not rotated or moved along a specific axis, it's a random direction and random axis. But reloading the same file again always gives the same results. These files look fine in sketchup.

To Reproduce
Steps to reproduce the behavior:

  1. Open blender
  2. File>Import>Import Sketchup Scene
  3. Select .skp file

Expected behavior
The file to be loaded and not appear as if it is falling apart.

Screenshots
If applicable, add screenshots to help explain your problem.
Sketchup 8 desktop

sketchup 8

Sketchup Web

sketchup web

Blender 2.83.2 (looks the same with 2.90.1)

blender283

System Info

  • Operating System: Win 10
  • Blender Version: Tested with 2.83.2 and 2.90.1
  • SketchUp Version: Web version downloaded as 2019 and as sketchup 2020
  • Importer Version: 0.21

Additional context
I don't have a large library of files to check. Sorry. If this is something simple that I am overlooking, let me know. Thanks

SketchUp 2021 files will not import. There is no error message in the console. 2020.skp does import

Describe the bug
A clear and concise description of what the bug is. Does not open Sketchup 2021 Files

Steps to reproduce the behavior:

attempt to open a SketchUp 2021 file in Blender 2.92

  1. See error : Read prefs: C:\Users\XXXXXX\AppData\Roaming\Blender Foundation\Blender\2.92\config\userpref.blend
    SU | Importing: C:\Users\xxxxxx\Documents\Sketchup on Asrock\Drawings\blender plan.skp
    SU_ERROR_MODEL_VERSION
    SU | Error reading input file: C:\Users\Dave J\Documents\Sketchup on Asrock\Drawings\blender plan.skp
    SU | Sketchup library giving unexpected results SU_ERROR_MODEL_VERSION

Expected behavior
I expect to open a Sketchup file saved in the 2021 version in Blender

System Info

  • Operating System: Windows 10 20H2 19042.928
  • Blender Version 2.92
  • SketchUp Version 2021 Pro 21.0.391
  • Importer Version .21

Additional context

If I save the same file down to the 2020 SketchUp Pro version it will import the way it should. The SketchUp 22021 file structure has changed. Among them the file size is reduced by about half.

6/4/2021
I tried the new version, (0.22.3) it will not import the 2021.skp. files There is no error message. 2020 and down do import.

'Object' object has no attribute 'layers'

Describe the bug
Unable to load Sketchup File

location: :-1

I want this to work, but it doesn't!
**Expected behavior**
Blender should put the entire SketchUp scene into view.



**System Info**
 - Operating System: Windows 11
 - Blender Version 2.93 LTS
 - SketchUp Version: 2021
 - Importer Version v0.23

**Additional context**

When I load a .skp file created in a recent version of SketchUp Pro,  I get this message in the output console:

SU | Importing: C:\Users\liljm\Documents\PSHS.skp
SU | Write instance definition as group cafe table.001 Material
Python: Traceback (most recent call last):
File "C:\Users\liljm\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SketchUp_Importer_init_.py", line 982, in execute
return SceneImporter().set_filename(keywords['filepath']).load(
File "C:\Users\liljm\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SketchUp_Importer_init_.py", line 261, in load
self.write_duplicateable_groups()
File "C:\Users\liljm\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SketchUp_Importer_init_.py", line 328, in write_duplicateable_groups
self.conponent_def_as_group(comp_def.entities,
File "C:\Users\liljm\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SketchUp_Importer_init_.py", line 716, in conponent_def_as_group
self.conponent_def_as_group(
File "C:\Users\liljm\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SketchUp_Importer_init_.py", line 710, in conponent_def_as_group
ob.layers = 18 * [False] + [True] + [False]
AttributeError: 'Object' object has no attribute 'layers'

2.93 is not working at all

Describe the bug
the addon is not working on 2.93

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'preferences'
  2. Click on 'add-ons'
  3. Deactivate the add-on
  4. reactivate but it doesn't budge

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
[To attach a file to an issue, drag and drop it into the comment box]

System Info

  • Operating System: [e.g. Windows 10]
  • Blender Version [e.g. 2.82a] (Only official releases)
  • SketchUp Version [e.g. 2019]
  • Importer Version [eg. v.0.20.2]

Additional context
Add any other context about the problem here.

Blender 2.9 support

Thank you for bringing us such an amazing plugin, but we need you to improve this plugin even more, for example with the released version 2.9 of blender.

Error Importing Specific File

Describe the bug
Nothing is imported, and a series of error messages in the log. Other .skp files work, just not this one; it's almost 500MB.

Expected behavior
An imported scene

Screenshots
Log:

image

System Info

  • Operating System: Windows 10
  • Blender Version 2.83.5
  • SketchUp Version 2019
  • Importer Version v.0.21.1

Additional context
I have changed the instance threshold to 1000000 under the correct directory (C:\Users[me]\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer_init_.py) but this makes no difference.

0.22.3 File Importer Does Not Import the desired File

Describe the bug

The file importer does not work.

To Reproduce
Steps to reproduce the behavior:

Open Blender
Attempt to import the 2021 SketchUp file using the importer version 0.22.3

Expected behavior

The file should be imported

System Info

Operating System: Windows 10 20H2 19042.928
Blender Version 2.92
SketchUp Version 2021 Pro 21.0.391
Importer Version 0.22.3

Additional context

If I save the same file down to the 2020 SketchUp Pro version it will import the way it should. The SketchUp 22021 file structure has changed. Among them the file size is reduced by about half.

  • Blender Version 2.93.0
  • SketchUp Version 2021 Pro
  • Importer Version 0.22.3

Additional context

There are no errors when the add-on is installed or on the file import.
Sample 2021 file.zip

Blender Compatibilty & Sketchup groups hierarchy

First of all i want to thank you very much for this add-on you've made, it is very usefull

I encounter two problems.

The fisrt is the incompatibility with blender 3.10 (sketchup importer worked with 3.00, now with 3.10 its line in the [preference / add-ons] is gray and we can't check the box to activate it)

The other problem is more technical and concern each blender versions. i found a solution for that so its just to keep you informed.
The plugin seems only work with sketchup2017 files, and if the project has multiple levels of groups hierarchy, the "groups" come in wrong place / size. To be able to import properly i need to explode the organization of my components/groups in order to keep only one level (not groups/components inside groups) and save it as a sketchup2017 file. It can takes some time to explode the herarchy and keep only the smallest groups levels when the project has thousand of groups.

System Info

  • Windows 10
  • Blender Version [3.10 & 3.00 & 2.93]
  • SketchUp Version [2021]
  • Importer Version [v.0.23.0]

I wish you a great 2022, full of inspiration. Respectfully

skp_importer_1
skp_importer_2

Can't activate plugin

I can't activate the installed plugin.

Operating System Windows 10
Version Of Blender: 2.92.0
Version of the plugin: 0.23.0

Istalled the plugin via Blender preferences - Add-ons - Install

It looks as installed properly, shows up in the list, but clicking on
the check box gives no reaction, despite checkbox is highlighted whev hovering over.

Thanks for your support !

Michael

image

i am not able to click and install the add on....

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error (if any) 'Error Log: ....'

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
[To attach a file to an issue, drag and drop it into the comment box]

System Info

  • Operating System: [e.g. Windows 10]
  • Blender Version [e.g. 2.82a] (Only official releases)
  • SketchUp Version [e.g. 2019]
  • Importer Version [eg. v.0.20.2]

Additional context
Add any other context about the problem here.

SketchUP graphic lag

i want a help .
when i make a closed layout area some shade get appear and change with zooming in and out and i cant see the details .
my laptop is HP 4670b i5-3rd GEN and intel GPU HD4000.
note // i only use sketchup to solar PV simulation .

Untitled

As blender 2.93 is on the way, which is a LTS release, please update the code to support version 2.93. As due to some reasons it dont work in 2.93. And perhaps the idea to preserve sketchup group in blender would be great.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error (if any) 'Error Log: ....'

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
[To attach a file to an issue, drag and drop it into the comment box]

System Info

  • Operating System: [e.g. Windows 10]
  • Blender Version [e.g. 2.82a] (Only official releases)
  • SketchUp Version [e.g. 2019]
  • Importer Version [eg. v.0.20.2]

Additional context
Add any other context about the problem here.

There is a version that works with Mac?

Describe the bug
It's not possible to enable the addon

System Info

  • Operating System: macOS Catalina 10.15.6
  • Blender Version [e.g. 2.9] (Only official releases)
  • SketchUp Version [e.g. 2020]
  • Importer Version [eg. v.0.20.2]

Mesh model broken when import SKP 2021 to Blender 3.0.0 Alpha

Describe the bug
Mesh model broken when import SKP2021 to Blender 3.0.0 Alpha

To Reproduce

In Blender 3.0.0 > File > Import SKP

I am not sure if SketchUp importer is ready to use with Blender 3.0.0
Imported model is broken when using add on, but when using import .DAE, imported model come in good mesh.
Is there SKP importer that compatible with Blender 3.0 ?
Thanks

Screenshots
SKP Import to Blender 3 0

System Info

  • Operating System: Windows 10
  • Blender Version : Blender 3.0.0 Alpha
  • SketchUp Version : SketchUp 2021 V21.1.299 64 bit
  • Importer Version : V.0.22.3

Addon not added on Win 10

Describe the bug
Downloaded the master.zip and developer.zip and tried to install the same way as other addons but it is not added.

To Reproduce
Steps to reproduce the behavior:

  1. Go to blender pereferences, addons
  2. Click on install from file
  3. no error appears but the addon doesn't show up

Expected behavior
the addon should appear normaly.

Screenshots
2020-11-26 14 05 16 Blender Preferences

2020-11-26 13 32 18 pyslapi-master

System Info

  • Operating System: [ Windows 10]
  • Blender Version [2.81.16] and [2.90.1]
  • SketchUp Version
  • Importer Version I've just downloaded .zip files today master.zip & developer.zip

Additional context

Change to Python 3.10

The addon can no longer be activated, no error messages.
Blender 3.1.0 - Beta and Blender 3.2.0 - Alpha has changed to Python 3.10.
Can you please make an update for your addon.

sRGB to Linear Color Space conversion

Describe the bug
sRGB (in SketchUp) to Linear color space (in Blender) conversion does not translate well.

To Reproduce
Steps to reproduce the behavior:

  1. Have an SKP file, with an object having a solid color as its Material.
  2. Upon importing, most of those solid colors seem incorrectly converted (mostly faded out, visually).

Expected behavior
A need for more accurate mapping/conversion of these color spaces.

Screenshots

SKP BLR

System Info

  • Operating System: [Windows 10]
  • Blender Version [2.82a]
  • SketchUp Version [2019]
  • Importer Version [v.0.20.2]

Additional context
Linear color space in Blender also seems to Gamma corrected (by approx. 2.2)

Import with Components/Groups intact

Describe the bug
Not a bug, but a question/feature request.
Can I import with Components and groups intact?
Currently groups and nested components are exploded down to 1st level.
This makes it difficult to move objects that were groups and/or nested components in Sketchup.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error (if any) 'Error Log: ....'

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
[To attach a file to an issue, drag and drop it into the comment box]

System Info

  • Operating System: Windows 10
  • Blender Version: 2.83.1
  • SketchUp Version: 2019
  • Importer Version: v.0.21.1

Additional context
Add any other context about the problem here.

Geometry gets imporrted in random places

Hi!
I experience an issue - when I import groups from a specific Sketchup model, they land spread randomly across Blender model space. I know, these groups have far origins (which is not ideal situation) but it is expected for geometry to land roughly in the same place in model space (relatively to world origin), no matter how far origins of particular groups are from nested geometry, is this right?
Sure, I could explode these 7 trees in Sketchup and regroup them with close origins, so that importer works fine but I eventually want to import >1000 trees, all having far origins, so you understand...
I attach the models in ZIP rchive.

Steps to reproduce the behavior:
Download my source SKP file and import it to Blender. See that position of trees in SketchUp, related to world origin, is very different from their position in Blender.

Expected behavior
Geometry is imported in the same place, related to world origin, that it was in SketchUp.

System Info

  • Operating System: Windows 10 64-bit
  • Blender Version 2.90.1 but similar issues occurred with earlier versions
  • SketchUp Version - working in 2020, saved SKP file to 2017, also tried saving to version 8, with the same outcome
  • Importer Version 0.21

Screenshots
trees in sketchup
trees in blender - randomly spread across model space

Trees.zip

Release v 0.23 does not import 2021 .SKP files

The sketchup importer ver .23 does not import ver 2021 .skp files. There is no error in the console. It does import ver 2020 .skp files. 😫

System Info

Operating System: Windows 10 20H2 19042.928
Blender Version 2.93
SketchUp Version 2021 Pro 21.1.299
Importer Version .23

Doesn't work with Blender 2.9.3.1

Describe the bug
After installed in Blender preferences, It doesn't allow me to enable the addon
Tried again with Blender 2.82 and it works fine, and allow me to enable it.

To Reproduce
Steps to reproduce the behavior:

  1. preferences
  2. install addon
  3. wont allow to enable

Expected behavior
Is there a way to fix this? Is this a bug or something?

System Info

  • Operating System: Windows 10
  • Blender Version 2.9.3.1
  • SketchUp Version 2019
  • Importer Version 0.21

Option "Use Existing Materials" not implemented

Wether the import option "Use Existing Materials" enabled or not, it doesnot affect import result.

Reproduce

  1. Prepare 2 .skp files which both have same-name-but-different-content material, such as "material01".
  2. Import first .skp file into new scene of Blender. Watch "material01" displayed correctly.
  3. Optionally, delete imported model of Step 2.
  4. Import second .skp file into current scene. Watch material of second model is displayed as first model.

SU_ERROR_SERIALIZATION. Blender 2.93.

Describe the bug
The model won't get imported, Getting "SU_ERROR_SERIALIZATION" error.

Expected behavior
I expect the Sketchup file importer to import Sketchup files.

Screenshots
error

System Info

  • Operating System: Windows 10
  • Blender Version: 2.93
  • SketchUp Version: I don't know
  • Importer Version [eg. v.0.23.0]

Additional context
None

Can I put a link to download the problematic file?. Is that allowed here?.

Thanks.

Feature Request: Imported groups are renamed per top parent group or TAG

Hello and thanks for the wonderful add-on.
I was wondering if it could be easy to rename imported groups - objects to something meaningful that could be used to organize the blender file.
Example 1: Rename all imported objects per top parent sketchup group. In this scenario one can use the sketchup outliner to name top groups and these names can be passed to blender.
Example 2: Use sketchup tags in the same manner.
Example 3: Create subcollections per top sketchup group or sketchup tag.

Unable to Add Add-on in Blender

Describe the bug
I am trying to add this Import/export add-on in to Blender 2.79b. I am unable to get the Sketch Up import/export add-on to work. I moved all the files from the zip file into the Blender add-n folder. When I try to active it, it gives me an error saying there is a syntax error: invalid syntax in line 55. This line contains says "camera_far_plane: FloatProperty(". I tried loading the init file into the text editor; and when I try to run the script, it give the same error but adds "location: unknown location:-1".

To Reproduce
Steps to reproduce the behavior:

  1. Unzip the SketchUp_Importer_v0.20.2_Windows_x64.zip to the Blender Add-on folder.
  2. Click on User Preferences/Add-ons/Import-export/init
  3. Blender will then report the error.

Expected behavior
Able to Import/Export a .skp file.

Screenshots
import error
import error 2

System Info

  • Operating System: Windows 10
  • Blender Version 2.79b
  • SketchUp Version All versions
  • Importer Version v.0.20.2

Additional context
Add any other context about the problem here.

Not appearing n the Add-ons list

I got to Edit> preferences > Add-Ons > Install and nothing shows up in the list.

Blender Specs

  • 2.93.5
  • Date 2021-10-05 12:04
  • Hash a791bdabd0b2

Computer Specs

  • Edition Windows 10 Pro
  • Version 21H1
  • Device name ʟᴇᴠɪᴀᴛʜᴀɴ
  • Processor -- Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz 3.20 GHz
  • Installed RAM -- 16.0 GB (15.9 GB usable)
  • System type 64-bit operating system, x64-based processor

Cant import

Hello i was trying to import a large 100mb .skp file, im not even sure whats inside it. I kinda know, that its architectual stuff, because it was sent to me from other comapny, but i cant import it to blender using default settings.

Traceback (most recent call last):
  File "C:\Users\Andzejs\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer\__init__.py", line 886, in execute
    context, **keywords)
  File "C:\Users\Andzejs\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer\__init__.py", line 185, in load
    self.write_duplicateable_groups()
  File "C:\Users\Andzejs\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer\__init__.py", line 245, in write_duplicateable_groups
    group=group)
  File "C:\Users\Andzejs\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer\__init__.py", line 640, in conponent_def_as_group
    group=group)
  File "C:\Users\Andzejs\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\SketchUp_Importer\__init__.py", line 614, in conponent_def_as_group
    ob.layers = 18 * [False] + [True] + [False]
AttributeError: 'Object' object has no attribute 'layers'

location: <unknown location>:-1

I have tried it in blender 2.83, 2.9, 2.91 and it didnt work.

Any help would be welcome.

Importing error in Blender 2.83 LTS

error_layers

I've downloaded Sketchup scene (don't know which version was used for scene) from CgTips.com (Link for SKP: https://link.cgtips.org/6z9gN4RYtG). And I tried to open it with latest release of Skp I/E v.021 but it has uparrow error.

System Info

  • Windows 7 X64
  • Blender 2.83 LTS (Only official releases)
  • Importer Version (latest v.021)

Can`t import great skp files to blender. I work with blender 2.9 and sketchup pro2021. I have installed the import-export plug-iand it works with small files. Is there any limit of the filesize?

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error (if any) 'Error Log: ....'

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
[To attach a file to an issue, drag and drop it into the comment box]

System Info

  • Operating System: [e.g. Windows 10]
  • Blender Version [e.g. 2.82a] (Only official releases)
  • SketchUp Version [e.g. 2019]
  • Importer Version [eg. v.0.20.2]

Additional context
Add any other context about the problem here.

Cant select this

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error (if any) 'Error Log: ....'

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
[To attach a file to an issue, drag and drop it into the comment box]

System Info

  • Operating System: [e.g. Windows 10]
  • Blender Version [e.g. 2.82a] (Only official releases)
  • SketchUp Version [e.g. 2019]
  • Importer Version [eg. v.0.20.2]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.