skp2blend - a CLI tool which runs on linux and converts .skp files to .blend and/or .obj#6
Open
recraft-ou wants to merge 5 commits intoRedHaloStudio:masterfrom
Open
skp2blend - a CLI tool which runs on linux and converts .skp files to .blend and/or .obj#6recraft-ou wants to merge 5 commits intoRedHaloStudio:masterfrom
recraft-ou wants to merge 5 commits intoRedHaloStudio:masterfrom
Conversation
Add obj_builder.py as a pure-Python OBJ+MTL writer that reads the same intermediate.json as blend_builder.py, flattening the entity tree into world-space geometry with Z-up to Y-up coordinate conversion for OBJ convention. New CLI flags --also-obj and --obj-only control whether OBJ output is produced alongside or instead of .blend output. convert.sh passes these flags through to the Docker container. Add GitHub Actions workflow to build and push the skp2blend Docker image to ghcr.io.
dd50ea0 to
591f00f
Compare
Hidden SketchUp tags/layers are no longer dropped during conversion. Instead, their geometry is placed into per-tag Blender collections (named "Hidden Tag: <tag>") that are excluded from the view layer — present in the file but hidden by default. Also adds a --preview flag that renders a 1920x1080 PNG alongside the .blend output, and removes the default Blender cube/camera/light objects that were leaking into output files.
…ert.sh obj_builder.py no longer drops hidden-tag geometry — all entities are included in the OBJ output regardless of scene layer visibility (OBJ has no concept of collection exclusion). blend_builder.py gains sub-collections for top-level groups and skips empty groups with no geometry in their subtree. convert.sh now passes through all --flags to the Docker container instead of only --also-obj and --obj-only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Convert SketchUp
.skpfiles to Blender.blend(and optionally Wavefront.obj) on Linux amd64 — no SketchUp installation required.The SketchUp C SDK and its Python bindings (
sketchup.pyd) are not available for linux. This makes batch-converting.skpfiles on Linux servers or CI pipelines impossible without a Windows machine.skp2blend solves this by packaging everything into a single Docker image:
.skpfiles.blendoutput with full material, texture, camera, and hierarchy supportThe result is a self-contained CLI tool that runs on any Linux amd64 host with Docker or Podman.