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

点击图标复制图标名

你可能感兴趣的:(Maya)