import maya.cmds as mc
def sdksomething( sdk_obj="",
sdkAttr="",
sdk_ed_obj="",
sdkAttr_ed_obj="",
defaultvalue=[0,0],
sdkvalue=[0,0]):
sdk_obj01=sdk_obj
sdkAttr01=sdkAttr
sdk_ed_obj01=sdk_ed_obj
sdkAttr_ed_obj01=sdkAttr_ed_obj
defaultvalue01=defaultvalue
sdkvalue01=sdkvalue
mc.setDrivenKeyframe( sdk_ed_obj01+"."+sdkAttr_ed_obj01,currentDriver =sdk_obj01+"."+sdkAttr01, v=defaultvalue01[1],dv=defaultvalue01[0],itt="linear",ott="linear")
mc.setDrivenKeyframe( sdk_ed_obj01+"."+sdkAttr_ed_obj01,currentDriver =sdk_obj01+"."+sdkAttr01, v=sdkvalue01[1],dv=sdkvalue01[0],itt="linear",ott="linear")
sdksomething( sdk_obj="_blendshape",
sdkAttr="rt_neer",
sdk_ed_obj="blendShape8",
sdkAttr_ed_obj="R_nose_shink_mdf",
defaultvalue=[0,0],
sdkvalue=[1,1])
#______________________________________________________________
欢迎交流
vx:27971533