Skip to main content

guerilla-transform-stack

guerilla_transform_stack is a Python package to manipulate Guerilla transform stack as Python object.

This package expose TransformStack, a wrapper class around the Guerilla transform stack of a scene graph node.

Usage

The first step is to wrap the Guerilla node with TransformStack class:

>>> import guerilla
>>> import guerilla_transform_stack as gts
>>> node = guerilla.pynode('mynode')
>>> node_ts = gts.TransformStack(node)
>>> node_ts
TransformStack('mynode')

Then you can add, access and manipulate transforms:

>>> node_ts.is_empty
True
>>> euler = node_ts.add('euler')  # Create an euler transform.
>>> euler
TransformEuler('mynode|Euler')
>>> node_ts['Euler']  # Access transform from its name.
TransformEuler('mynode|Euler')
>>> target = node_ts.add('target')
>>> target.is_on_top  # New transform nodes are added on top.
True
>>> len(node_ts)  # Get transform count.
2
>>> target.move_down()
>>> target.move_up()
>>> node_ts.top
TransformTarget('mynode|Target')
>>> euler_tmp = node_ts.add('euler')
>>> euler_tmp.delete()  # Remove transform.

Transform stack object can be iterated (from bottom to top):

>>> for transform in node_ts:
...   print transform
...
TransformEuler('mynode|Euler')
TransformTarget('mynode|Target')

Original Guerilla node is accessible with the node property:

>>> node_ts.node
<guerilla.SceneGraphNode object at 0x7f34498eb490>

Metadata

Release files for guerilla-transform-stack 0.0.1

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

Built distribution (wheel)

Table of built distributions (wheels) for guerilla-transform-stack 0.0.1
File Interpreter ABI Platform
guerilla_transform_stack-0.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / guerilla_transform_stack-0.0.1-py2.py3-none-any.whl

Download URL guerilla_transform_stack-0.0.1-py2.py3-none-any.whl
Size 8.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b8119dbd2ff09db4014b3ad323d460b86ad4ff6b34eebb021a203b4bd01f363d
BLAKE2b-256 checksum
How to use checksums
d70ea9b76e963aca49b8ea2fdd120c60d3cdb94d93016d0b2b37bc8f533ee1d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.2 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/2.7.16

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

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