Maya 编程:在属性编辑器中将属性分为几个部分
抱歉,如此具体的应用程序,但我注意到另一篇关于 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案是从另一个来源提供的。显然,您可以编写一个 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.