Maya 编程:在属性编辑器中将属性分为几个部分

发布于 2024-09-08 02:16:09 字数 348 浏览 1 评论 0原文

抱歉,如此具体的应用程序,但我注意到另一篇关于 Maya 开发的回答很好的帖子。

我刚刚为 Maya 编写了一个插件节点。它只是根据湍流函数杀死一堆粒子。湍流由许多可在属性编辑器中调整的属性驱动。

在属性编辑器中,还有一些称为“缓存”和“节点状态”的其他属性,它们放置在湍流属性之前。对于用户来说这看起来不太漂亮。

我想要做的就是在 GUI 中放置分隔线以将它们分开。如果您在属性编辑器中查看大多数其他 Maya 节点,它们正是这样做的。它们在面板上有水平可折叠栏,将不相关的属性彼此分开。

我的简单问题是,如何告诉 Maya 创建这些可折叠栏来分割属性?

感谢您提供的任何帮助。

安迪

Sorry to be so application specific, but I noticed another well answered post about Maya development.

I've just written a plugin node for Maya. It just kills a bunch of particles according to a turbulence function. The turbulence is driven by a number of attributes that are adjustable in the attribute editor.

In the attribute editor there are a couple of other attributes called "Caching" and "Node State" which are placed before the turbulence attributes. This doesn't look too pretty for the user.

What I'd like to be able to do would be to place dividers into the GUI to separate them off. If you look at most other Maya nodes in the attribute editor, they do exactly that. They have horizontal collapsible bars across the panel which separate unrelated attributes from each other.

My simple question is, how do I tell Maya to create these collapsible bars to split up the attributes?

Thanks for any help you can give.

Andy

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如日中天 2024-09-15 02:16:09

答案是从另一个来源提供的。显然,您可以编写一个 MEL 脚本来提供名为

AETemplate.mel 的

布局信息,其中是 *.so(或 *.dll)文件的名称。

我认为 Maya 安装中有示例。

Answer was provided from another source. Apparently you can write a MEL script to provide layout information called

AE<pluginname>Template.mel

where <pluginname> is the name of the *.so (or *.dll) file.

I think there are examples in the Maya install.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文