Showing posts with label Python for Maya. Show all posts
Showing posts with label Python for Maya. Show all posts

25.5.15

PYTHON: Get Current Date and Time

import time
time.strftime(format)
## 24 hour format ##
time.strftime("%H:%M:%S")
## 12 hour format ##
time.strftime("%I:%M:%S")
time.strftime("%d/%m/%Y")
##25/05/2011
 
Text-to-speech function is limited to 100 characters

24.7.12

Animaton Library for maya v.02

Update ANIMLIB V02
new fiture
-work in maya 201x  32/64 bit
-apply selection


30.3.11

Character Animaton Library




animlib is a tool to manage characters animation clips (share,export,import) in Maya (2008 and2009),With this tool you could create animation clips and organize them in projects.
-export anim
-apply anim
-preview clips
-delete
-rollback

22.3.11

Auto null

import maya.cmds as mc
obj=[str(o) for o in mc.ls( sl=True,tr=True)]
for i in obj:
name="IFWnull_"+str(i)
objctrl= mc.curve(n=name,d=1,p=[(-1,1,1),(-1,1,-1),(1,1,-1),(1,1,1),(-1,1,1),(-1,-1,1),(-1,-1,-1),(-1,1,-1),(-1,1,1),(-1,-1,1),(1,-1,1),(1,1,1),(1,1,-1),(1,-1,-1),(1,-1,1),(1,-1,-1),(-1,-1,-1),],k=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16])
cons= mc.parentConstraint( i, objctrl,mo=False )
mc.delete(cons)
mc.setAttr (name+".overrideEnabled", 1)
mc.setAttr(name+".overrideColor", 30)
mc.select(i)