Skip to content

Instantly share code, notes, and snippets.

@nathanielanozie
nathanielanozie / na_camRig.py
Created October 5, 2014 04:02
makes a simple camera rig that can be used for deep or flat space shots
##@file na_camRig.py
#makes a simple camera rig that can be used for deep or flat space shots
##
##
#@author Nathaniel Anozie
#ogbonnawork at gmail.com
#Modify at your own risk
##
@nathanielanozie
nathanielanozie / na_addRefImage.py
Created October 5, 2014 04:05
automatically bring in a reference image into maya
#automatically bring in a reference image into maya
#
#@author Nathaniel Anozie
#
##
#@note inspired by Ricardo Viana (mayapy dot wordpress dot com) tutorials on shading groups
#@note inspired by Brian Ewert (xyz2 dot net) tutorials on texutres and materials
#@note inspire by Will Zhou's online tutorials on Open Maya and MImage (python inside maya, googe groups)
#@note inspired by Autodesk (Autodesk.com) online tutorials on MImage api
@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
#
#
##
@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 / 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 / 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 / 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 / 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 / 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_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