def ui():
'''
User interface for ml_lockAndHideAttributes
'''
with utl.MlUi('ml_lockAndHideAttributes', 'Lock and Hide', width=400, height=140, info='''Select channels in the channel box to be locked or hidden.
then hit the appropriate button.''') as win:
form = mc.formLayout()
b11 = win.buttonWithPopup(label='Lock', command=lock, annotation='Lock selected attributes.')
b12 = win.buttonWithPopup(label='Hide', command=hide, annotation='Hide selected attributes.')
b13 = win.buttonWithPopup(label='Lock and Hide', command=lockAndHide, annotation='Lock and hide selected attributes.')
b21 = win.buttonWithPopup(label='Unlock', command=unlock, annotation='Unlock selected attributes.')
b22 = win.buttonWithPopup(label='Unhide', command=unhide, annotation='Unhide all core attributes.')
b23 = win.buttonWithPopup(label='Unlock and Unhide', command=unlockAndUnhide, annotation='Unlock and unhide selected attributes.')
utl.formLayoutGrid(form, (
(b11,b21),
(b12,b22),
(b13,b23)
))
评论列表
文章目录