Saturday, January 31, 2009

[Maya] Clock plug-in

Function:

Set the time of the 3d clock, then the hour hand and minute hand move to the right position.

 

Code and the Clock file:

http://www.rayfile.com/files/a39e730c-ef9c-11dd-8c0e-0014221b798a/

 

Main Tech:

doIt()

undoIt()

redoIt()

isUndoable()

MDagPath

query and edit mode

MArgDatabase for dealing with input parameters

MFnTransform for transforming the clock hands

setResult for returning the query result

 

Snapshot:

Capture

No comments:

Post a Comment

Google+