Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 MEL 中使用了 addNewShelfTab 和 scriptToShelf 命令为我的迷你 mel 脚本创建了一个图标。我希望能够使用 MEL 或 Python 像在书架编辑器中一样从默认值更改此按钮的图标。我该怎么做呢?
shelfButton mel 命令帮助
shelfButton -edit -image1 "icon.png" $name;
以下 python 脚本对我有用:
import maya.mel as mel import pymel.core as pm mel.eval('addNewShelfTab($shelfName)'); pm.shelfButton( annotation='Annotation', image1=$image, command='<command>' );