def add_toolbox_menu():
gridLayout = 'hj_gridLayout'
if mc.gridLayout(gridLayout, q=1, ex=1):
mc.deleteUI(gridLayout)
mc.setParent('flowLayout2')
size=36
mc.gridLayout(gridLayout, nc=1, cwh=[size, size])
mc.setParent(gridLayout)
global_vars = inspect.getouterframes(
inspect.currentframe())[-1][0].f_globals
# global_vars = globals()
mc.shelfButton(
i='play.png', c=lambda *x: __import__("pyshell").main(global_vars),w=40)
评论列表
文章目录