Saturday 9 August 2014

Script: Mirror pose in maya

This is a simple script for mirror pose ( X to -X, or -X to X )


download: pose


More sample video:
https://youtu.be/41ZaP04D0Cc
https://youtu.be/Coo0G3MXXJ8

Put the file under "Documents\maya\scripts"
usage:
import jp_poseModule as pose
reload(pose)

# you can use those command to change attrs Positive and negative to fit the rig axis.
pose.updateMirrorVector( "normalAttrs", -1,1,1,1,1,1 )
pose.updateMirrorVector( "ikAttrs", -1,1,1,1,1,-1 )
pose.updateMirrorVector( "centerAttrs", -1,1,1,1,-1,-1 )


pose.resetIkObjs() # setting ik ctrls by selecting controls and run this function.
pose.resetPoleVectorObjs()# setting poleVector ctrls by selecting controls and run this function.

for AnimShcool's Rig
pose.updateMirrorVector( "ikAttrs", -1,1,1,1,-1,-1 )



pose.copy() # store one farme value for selection

pose.mirror() # paste mirror value base on pose.copy()

pose.paste() # paste value to original object base on pose.copy()

To find out the mirror side. the script support side pattern below:
RIGHT; LEFT
RT; LF
_R_;  _L_
Right; Left,
Rt; Lf'
_r_; _l_


配合poseLib使用,以彌補貼上pose的不足






No comments: