def ui():
'''
User interface for ml_tangentWeight
'''
with utl.MlUi('ml_tangentWeight', 'Weight Keyframe Tangents', width=400, height=140,
info='''Increase or decrease tangents length without affecting tangent angle.
Select keyframes and press buttons to weight their tangents.
If no keys are selected, the keys on the current frame will be affected.''') as win:
form = mc.formLayout()
b11 = win.buttonWithPopup(label='-', command=minus, annotation='Scale tangent down.')
b12 = win.buttonWithPopup(label='+', command=plus, annotation='Scale tangent up.')
b21 = win.buttonWithPopup(label='<', command=sharkFinLeft, annotation='Weight tangent toward the left.')
b22 = win.buttonWithPopup(label='>', command=sharkFinRight, annotation='Weight tangent toward the right.')
utl.formLayoutGrid(form, (
(b11,b12),
(b21,b22)
))
评论列表
文章目录