maya 写UI 用到的工具

import os
cmds.window()
scrollLayout = cmds.scrollLayout(w=150)
cmds.gridLayout( numberOfColumns=30, cellWidthHeight=(30, 30) )
for a in cmds.resourceManager(nameFilter="*.png"):
    cmds.symbolButton (image = a,c = 'os.popen( "cmd /c echo %s | clip")'%(a) )
cmds.showWindow()

image

点击图标复制图标名

posted @ 2014-07-04 11:55  Jonn.  阅读(773)  评论(0编辑  收藏  举报