1

我试图找出 MEL 代码的位置,特别是它的图标图像是从哪里获得的......

我在 Maya 中尝试了一个小测试,当我更改图像的格式时,它是否是 .xpm 到 .png 等的形式。我无法确定它是否来自......我'我在 2 台服务器上运行,因此,我不知道它是来自服务器 A 还是服务器 B...

是否有任何代码等可以让我确定它?还是有其他方法?我也在用linux

string $window = `window -title "shelfButton Example"`;
string $tabs = `tabLayout`;
string $shelf = `shelfLayout`;

shelfButton
    -enableCommandRepeat 1
    -enable 1
    -width 32
    -height 32
    -mw     0
    -mh     0
    -manage 1
    -visible 1
    -label "Render to Git"
    -image1 "rexSpotLight.xpm"
    -style "iconOnly";


tabLayout -edit -tabLabel $shelf "Example Shelf" $tabs;

showWindow $window;
4

1 回答 1

2

所有图片搜索路径都在

getenv XBMLANGPATH;

在梅尔。我相信它们是按给定顺序使用的,因此包含位图的第一个路径就是您所看到的路径。您需要拆分路径(它们由分号组成)并检查每个路径以查看实际文件的位置。

编辑注释更正拼写:XBM,不是 XMB

于 2014-04-09T15:51:52.513 回答