我已在MEL中使用addNewShelfTab和scriptToShelf命令为微型mel脚本创建图标。我希望能够使用MEL或Python从工具架编辑器中更改该按钮的默认图标。我该怎么做呢?
发布于 2015-06-08 02:31:58
shelfButton mel command help
shelfButton -edit -image1 "icon.png" $name;发布于 2015-06-08 16:08:19
下面的python脚本适用于我:
import maya.mel as mel
import pymel.core as pm
mel.eval('addNewShelfTab($shelfName)');
pm.shelfButton( annotation='Annotation', image1=$image, command='<command>' );https://stackoverflow.com/questions/30655859
复制相似问题