icons - Maya 2015-自定义货架按钮缺少图标
问题描述
我不确定这是否是 Maya 中的一个错误,或者它是否是我的问题 - 任何见解都将不胜感激。
我在自定义架子上有一个按钮。那里没有问题,它在单击时启动脚本,具有注释和标签,并且通常可以正常工作。但是,我为其选择的图标不会出现在架子上。相反,我得到了这个:
奇怪的是,即使在重新启动 Maya 之后,该图标仍显示在 Shelf Editor 窗口中:
所以 Maya 完全知道图标的路径(毕竟它是内置的 Maya 图标)并且能够显示它——它只是不想在架子上显示它。
更疯狂的是,自定义架子是通过我公司使用的插件创建和填充的。作为技术艺术家,维护这个架子是我的工作,因此该插件使用位于网络驱动器位置的架子 .mel 文件,以便该工具可以将架子传播给网络上的所有用户。在所有其他用户的机器上,这些图标都是可见的。只有在我的机器上它们不是。因此,我觉得插件没有引起问题。自然,所有因素都需要考虑,所以我对插件可能存在问题的可能性持开放态度,但我的机器会被挑出来让图标无法加载似乎很奇怪。
最后一个疯狂的事情:如果我以常规方式启动 Maya,而不是使用我公司的自定义 Maya 启动器,图标将不会出现 50% 的时间,但会出现其他 50% 的时间。使用自定义启动器也会发生同样的事情。有时,一半的按钮有图标,而一半没有。Maya 是否加载它们似乎完全是任意的。但是每一次,这些图标都在书架编辑器窗口中可见。
我想我的问题是:什么可能导致图标在书架编辑器中可见,但不在书架上?
解决方案
After a fair bit of experimentation, I've discovered that Maya does not like using some of its native icons as shelf icons.
I was able to fix the issue by identifying icons that will load every time, and using those.
If you have a particular Maya icon you really like, I recommend locating its file path, copying the image, and putting it somewhere outside of the Maya directory. For me, putting some of the images on our network drive did the trick, and all users were able to see the icons.
Unfortunately I wasn't able to determine why Maya wouldn't allow certain images to be visible on the shelf, and only on certain machines at that. I suspect it has something to do with the directory in which Maya is installed, and the Maya environment paths. But if you ever run into this issue, there are at least the above workarounds.
推荐阅读
- php - 将数组发布数据和插入到 sql
- c# - 如何从 Blazor 中的 HttpClients 关闭浏览器控制台中的“信息”登录?
- java - 带参数的 Java 方法调用,使用流 api
- html - 有没有办法让内部 CSS 表格扩展外部 CSS 表格的整个宽度?
- r - 根据另一个输入 r shiny 更改输入值
- javascript - 使用来自其他 npm 包的 gulp 文件(导入最终会存在的文件)
- reactjs - 请帮我!我不知道我做错了什么
- python - 如何使用 pyinstaller 将 chromedriver.exe 与在 selenium webdriver 上运行的 python 脚本合并?
- r - 错误地更改R中的内置数据框,如何改回来
- twitter-bootstrap - 如何使用自定义颜色@extend 引导类