Skip to content

Instantly share code, notes, and snippets.

@nathanielanozie
nathanielanozie / naNurbsSurfaceControl.py
Created February 13, 2015 12:59
Glue(Rivet) some nulls to 0-1 parameter Nurbs Surface (Maya, Python Script)
#######
#Help with building Facial Rig User interface secondary movers
#By
#Nathaniel O. Anozie (ogbonnawork at gmail dot com)
#
#Inspired by Matt Estella (tokeru dot com) -- learning about constraint methods from his online tutorials
#Inspired by Hamish Mckenzie (macaronikazoo dot com) -- learning about zip for loops from his online tutorials
#Inspired by Chris Hickman -- i was inspired by his facial rigging work and online tutorials
#
#
@nathanielanozie
nathanielanozie / na_setDisplayTypeOnSelected.mel.cpp
Last active September 21, 2015 00:17
Some helpful Mel script for editing visibility of joint or shapes, code is useful for debugging and locking rigs
//na_setDisplayTypeOnSelected.mel -- please remove extension .cpp used for syntax highlighting only
//Author: Nathaniel Anozie
//ogbonnawork at gmail dot com
//Modify at own risk
//Inspired by:
//Jason Schleifer's Animator friendly rigging (jasonschleifer dot com) first learning about lockNode
//Kiryha Krysko (kiryha dot blogspot dot com) learning about lockNode from online tutorials
//last updated -- 09-20-2015 fixed overide detail bug when using for 2015 maya
//last updated -- 01-13-2015
@nathanielanozie
nathanielanozie / na_faceIt.py
Created December 26, 2014 18:23
help with building face ui of blendshape based rig for Maya
#######
#help with building face ui of blendshape based rig
#By
#Nathaniel O. Anozie (ogbonnawork at gmail dot com)
#
#inspired by: Phil Sloggett's online tutorials for learning about set driven keys in python
#inspired by: Autodesk online documentation examples on promptDialog
#######
#created: 12-26-2014 initial release
@nathanielanozie
nathanielanozie / cutGeo.py
Created December 4, 2014 14:01
Given selected transforms or joints cut geometry in Maya at those places (assumes to make cut all through geometry so split arms,legs etc first)
##@file cutGeo.py
#splits geo ex: arm or leg using selected transforms
##
##
#@author Nathaniel Anozie
#ogbonnawork at gmail.com
#
#Modify at your own risk
#
@nathanielanozie
nathanielanozie / na_selectClusterOfHierarchy.mel
Created October 14, 2014 11:36
select all cluster in all selected roots
//select all cluster in all selected roots
//Author: Nathaniel Anozie (ogbonnawork at gmail dot com)
//nathananozie dot blogspot dot com
global proc na_selectClusterOfHierarchy(){
string $result[] = {};
string $sel[] = `ls -sl`;
for($arg in $sel){
string $past[] = {};
$past =`listConnections $arg`;
string $hist[] = `ls -type cluster $past`;//cluster history
@nathanielanozie
nathanielanozie / createIKSC.mel
Created October 14, 2014 11:34
create ik sc use selected root, assumes has child (MEL)
//create ik sc use selected root, assumes has child
//inspired by Anop A.K (codecg dot com) learning about iksc drawing in mel
string $sel[] = `ls -sl`;
if(size($sel) == 1){
string $root = $sel[0];
select -r $root;
string $check[] =`listRelatives -children -type joint $root`;
if(size($check) != 1){ error("Error Nothing to Draw IK SC with, check end"); }
@nathanielanozie
nathanielanozie / camNode.py
Created October 5, 2014 04:30
camera custom node (maya plugin)
##@file camNode.py
#
#Track start and end frames and a transform in Maya(Tested Maya 2008)
#
#@author Nathaniel Anozie
#
#
#@note Inspired by Maya's api tutorials and examples on sineNode.py and lambertShader.cpp
#
##
@nathanielanozie
nathanielanozie / renameImage.py
Last active August 29, 2015 14:07
rename image by creation time
#!/usr/bin/python
#@author Nathaniel Anozie
#
##
#Inspired by Greg Hewgil's online tutorial on sorting files by creation time
#last updated: 07/28/2013 -- initial release
import getopt,sys
@nathanielanozie
nathanielanozie / naTangentTypeCmd.cpp
Last active August 29, 2015 14:07
make all the selected animation curves' keys stepped or smoothed (maya command plugin)
/**@file naTangentTypeCmd.cpp
@brief v1.0.0 naTangentTypeCmd -step; //make all the selected animation curves' keys stepped or smoothed -smooth
@author Nathaniel O. Anozie (ogbonnawork at gmail dot com)
@note modify at your own risk
*/
//Flags:
//
// -step <string>: whether to use step tangent
//
@nathanielanozie
nathanielanozie / reference.py
Created October 5, 2014 04:08
reference utility in maya
##@file reference.py
#
#(Tested Maya 2008)
#
#@author Nathaniel Anozie
#
#@note Inpired By Bryan Ewert (xyz2 dot net) for learning about deferred reference node and load state
#
#
##