Skip to content

Instantly share code, notes, and snippets.

View tbttfox's full-sized avatar

Tyler Fox tbttfox

View GitHub Profile
@tbttfox
tbttfox / blendPose.py
Last active May 8, 2025 18:38
An example poseBlending maya plugin using the same idea as my poseblendlib
import maya.api.OpenMaya as om2
import numpy as np
maya_useNewAPI = True
class blendPose(om2.MPxNode):
typeName = "blendPose"
typeId = om2.MTypeId(0x00122717)
"""Build a matrix from translation values
This should give you a feel for how transformation matrices actually WORK in Maya.
Transformation matrices can be thought of as 3 vectors, and a point.
So I made 4 objects. One representing each of the X Y and Z axis vectors
And a fourth representing the translation point.
Then I connected the translation values of each object to a fourByFourMatrix node which
builds a matrix from 16 values. Then I connected that matrix to the model.
@tbttfox
tbttfox / quickKeys.py
Created May 31, 2025 18:08
Plugin to set keys on multiple attributes over multiple frames
from __future__ import absolute_import, print_function
import sys
import maya.api.OpenMaya as OpenMaya
import maya.api.OpenMayaAnim as OpenMayaAnim
from six.moves import range
maya_useNewAPI = True
@tbttfox
tbttfox / print_alembic_hierarchy.py
Last active June 4, 2025 18:03
A quick script to print the hierarchy of an alembic file and its properties.Sorry, no nice command line interface. You've gotta edit it yourself
import os
from alembic.Abc import IArchive
from alembic.AbcGeom import (
IXform,
IPolyMesh,
ICamera,
ICurves,
ILight,
INuPatch,
IPoints,