def ui():
'''
User interface for convert rotation order
'''
with utl.MlUi('ml_convertRotationOrder', 'Convert Rotation Order', width=400, height=140, info='''Select objects to convert and press button for desired rotation order.
Use the "Get Tips" button to see suggestions for a single object on the current frame.''') as win:
mc.button(label='Get tips for selection', command=loadTips, annotation='')
mc.scrollField('ml_convertRotationOrder_nodeInfo_scrollField', editable=False, wordWrap=True, height=60)
mc.rowColumnLayout(numberOfColumns=2, columnWidth=[(1,100), (2,400)], columnAttach=[2,'both',1])
for each in ROTATE_ORDERS:
_BUTTON[each] = win.buttonWithPopup(label=each, command=globals()[each], annotation='Convert selected object rotate order to '+each+'.', shelfLabel=each)
mc.textField('ml_convertRotationOrder_'+each+'_textField', editable=False)
resetTips()
评论列表
文章目录