*mayattk is a collection of backend utilities for Autodesk Maya.*
Project description
MAYATK (Maya Toolkit)
mayattk is a collection of backend utilities for Autodesk Maya.
Installation:
To install:
Add the mayatk
folder to a directory on your python path, or
install via pip in a command line window using:
python -m pip install mayatk
Example use-case:
Import the class Node
from the package.
As the name suggests, the class Node
holds the package's node related functions.
from mayatk import Node
Node.is_locator(<obj>)
# Returns: bool
You can also import a function directly.
from mayatk import is_group
is_group(<obj>)
# Returns: bool
from mayatk import get_bounding_box
get_bounding_box(<obj>, 'centroid|size')
# Returns: tuple: the combined bounding box center and size.
# ex. ((-0.02406523456116849, -0.8100277092487823, 0.0), (3.3830200057098523, 4.0155477063595555, 3.40770764056194))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mayatk-0.6.2.tar.gz
(100.0 kB
view hashes)
Built Distribution
mayatk-0.6.2-py3-none-any.whl
(170.7 kB
view hashes)