Py Origami Editor 3D project
Python preprocessing tool to create OrigamiScript input files for Origami Editor 3D
Overview
Origami Editor 3D is a GUI for creating origami "on the screen". OrigamiScript is a scripting tool for Origami Editor 3D. However, the scripting capabilities are limited, mainly the fact that numbers mist be hard-coded, there are no variables, no computing etc.
This project is a Python preprocessing tool for OrigamiScript. The exported result is OrigamiScript file, but before the export, you can use Python to compute some intermediate values, use variables for re-used values etc.
Usage
The implemented commands are basically analogous to the original OrigamiScript definitions.
See the example below
Example
Kirigami example from OrigamiScript manual
from py_origami_editor_3d.origami import Origami
from py_origami_editor_3d.paper_types import SQUARE
#
origami = Origami()
origami.comment("A very basic paper flower")
origami.paper(SQUARE)
origami.comment("Fold in half twice:")
origami.plane((200, 200), (1, 0, 0)).reflect()
origami.plane((200, 200), (0, 1, 0)).reflect()
origami.comment("Cut some paper:")
origami.angleBisector((200, 0), (100, 0), (200, 100)).cut()
origami.angleBisector((0, 200), (0, 100), (100, 200)).cut()
origami.plane((130, 200), (1, 1, 0)).cut()
origami.comment("Unfold:")
origami.target(100, 100).plane((200, 200), (1, 0, 0)).reflect()
origami.target(100, 100).plane((200, 200), (0, 1, 0)).reflect()
origami.save("kirigami.txt")
Installation
-
Using
pip[sudo] python3 -m pip install [options] py-origami-editor-3d, e.g.pip install --user py-origami-editor-3d -
Using
make(callspython3 -m pip install ., i.e. option 3, internally):make install [options], e.g.make install USER=TRUE -
Using
piplocallypython3 -m pip install . [options], e.g.python3 -m pip install . --user
Contribution
Merge Requests
Are welcome
Bug reporting
In case of any question or problem, please leave an issue at the GitLab page of the project.
Contributors
License
This project is licensed under the MIT License - see the license file for details.
TODO
- other commands
- more tests
Metadata
Release files for py-origami-editor-3d 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-origami-editor-3d-0.1.0.tar.gz | 6.3 kB | Without provenance | Details for py-origami-editor-3d-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_origami_editor_3d-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for py_origami_editor_3d-0.1.0-py3-none-any.whl |
Total release size: 11.9 kB
Release files / py-origami-editor-3d-0.1.0.tar.gz
| Download URL | py-origami-editor-3d-0.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31c6e65f5b79ad33a3360488378fcdea01ec7afd523282d96962f3608c3f4e80
|
|
BLAKE2b-256 checksum How to use checksums |
3e698894f0fc84807103ee1181980dbabd50fcdb0fc7f3b9e481a9cb439f3d06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / py_origami_editor_3d-0.1.0-py3-none-any.whl
| Download URL | py_origami_editor_3d-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5be4afa6ff96dadc72ed5dcc35e4cf5245e6325a81aa6f1f58ff84fd418d57e9
|
|
BLAKE2b-256 checksum How to use checksums |
71bbea3abaddf830db926c73d0493044a305bb014989459b66dd72d03c6652d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for py-origami-editor-3d 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.