default_library#

Import

from scenet import default_library

Defined in

scenet.assets.contract (source)

Install

pip install scenet

Since

0.1

Stability

Public: follows semantic versioning. Below 1.0, a minor release may change it, and the CHANGELOG says how.

scenet.assets.contract.default_library()[source]#

Load the puppets shipped with Scenet.

Two characters of deliberately different build, so that a bug in camera scaling cannot hide behind two figures that happen to be the same height.

Return type:

PuppetLibrary

Returns:

A library containing alice and bob.

Note

It reads the shipped puppet files on every call, and caches nothing: call it once and pass the library on. It raises nothing; the shipped puppets are checked when the package is built.

Example

>>> from scenet import default_library
>>> library = default_library()
>>> round(library.get("alice").heads_tall, 1)
7.5

See also

PuppetLibrary, to build one of your own.