Skip to content

Instantly share code, notes, and snippets.

View est77's full-sized avatar

Esteban Tovagliari est77

View GitHub Profile
@est77
est77 / mesh_from_deform
Created September 23, 2013 02:25
Getting input geom from Maya deformer
MStatus SomeDeformer::deform( MDataBlock& data, MItGeometry& itGeo, const MMatrix &localToWorldMatrix, unsigned int geomIndex )
{
MStatus status;
MArrayDataHandle hInput = data.outputArrayValue( input, &status );
CHECK_MSTATUS_AND_RETURN_IT( status )
status = hInput.jumpToElement( geomIndex );
CHECK_MSTATUS_AND_RETURN_IT( status )
MObject oInputGeom = hInput.outputValue().child( inputGeom ).asMesh();
MFnMesh fnInputMesh( oInputGeom );
}
@est77
est77 / ase_reader.py
Created September 19, 2013 07:49
Parses Adobe swatch exchange files (color palettes).
#!/usr/bin/env python
# coding: utf-8
# Based on SwatchBooker code. Original license follows
#
# Copyright 2008 Olivier Berten <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by