Skip to main content

Scull

Scull is a package that allows you to create skeleton animations.

Creating a skeleton

To start making animation you need to create a skeleton. You can load a model:

from scull.models.<model_name> import *

simple_model = simple("<skeleton_name>")
complex_model = complex("<skeleton_name>")

Or create custom:

from scull import *

skeleton = Skeleton("<skeleton_name>")
backbone = Backbone(0, 0, 7, 90)
skeleton["right_leg"] = Bone(backbone, 0, 10, -45)
skeleton["right_arm"] = Bone(backbone, 90, 10, -90)
skeleton["backbone"] = backbone
skeleton["head"] = Bone(backbone, 100, 3, 180)
skeleton["left_leg"] = Bone(backbone, 0, 10, 45)
skeleton["left_arm"] = Bone(backbone, 90, 10, 90)

Applying poses

When you have a skeleton you can apply a pose to it:

from scull.models.<model_name> import *

<pose_name>.apply(skeleton)

You can also create poses:

from scull import *

<pose_name> = Pose(
    left_upper_leg=-22.5,
    left_lower_leg=135,
    right_upper_leg=-56.25,
    right_lower_leg=157.5,
    left_upper_arm=22.5,
    left_lower_arm=-45,
    right_upper_arm=-22.5,
    right_lower_arm=-22.5,
    head=191.25
)

Animating the skeleton

Now you should animate the skeleton:

from scull.models.<model_name> import *

<animation_name>.play(skeleton)

Render

from scull.render.<render_type> import *

renderer = <renderer_name>()
renderer.render(skeleton, {
    "head": {
        "image": "head.png"
    },
    "left_upper_arm": {
        "image": "base.png"
    },
    "left_lower_arm": {
        "image": "lower_arm.png"
    },
    "left_upper_leg": {
        "image": "base.png"
    },
    "left_lower_leg": {
        "image": "lower_leg.png"
    },
    "backbone": {
        "image": "base.png",
        "effects": {
            "shadow": 15
        }
    },
    "right_upper_arm": {
        "image": "base.png",
        "effects": {
            "shadow": 25
        }
    },
    "right_lower_arm": {
        "image": "lower_arm.png",
        "effects": {
            "shadow": 25
        }
    },
    "right_upper_leg": {
        "image": "base.png",
        "effects": {
            "shadow": 25
        }
    },
    "right_lower_leg": {
        "image": "lower_leg.png",
        "effects": {
            "shadow": 25
        }
    }
})

Metadata

Release files for Scull 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Scull 1.0.0
File Size Uploaded Provenance Actions
Scull-1.0.0.tar.gz 5.5 kB Without provenance Details for Scull-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Scull 1.0.0
File Interpreter ABI Platform Actions
Scull-1.0.0-py3-none-any.whl Python 3 none any Details for Scull-1.0.0-py3-none-any.whl

Total release size: 11.7 kB

Release files / Scull-1.0.0.tar.gz

Download URL Scull-1.0.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d6b55fc40a2ac66f890c265f9868f7b425cd371187c712c997dc6256941f2c50
BLAKE2b-256 checksum
How to use checksums
cff83fab5512a4071a141cda448fa8caaac3cb20978f7cd42d75fcd8809eb0e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.0

Release files / Scull-1.0.0-py3-none-any.whl

Download URL Scull-1.0.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82623978d3e7ea14b5d2d64ec11674c81d3b323d966f8fe6b01ed44a30a7ca9f
BLAKE2b-256 checksum
How to use checksums
c94843dee85de482933b42b4ecb97849b95cbcb4c536e84c4532aed9eb7d35fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.0

Security for Scull 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page