【问题标题】:Alphabetically sorted attributes in a custom node Maya Python API 2.0自定义节点 Maya Python API 2.0 中按字母顺序排序的属性
【发布时间】:2020-05-26 15:42:54
【问题描述】:

我目前正在使用 Maya Python API 2.0 处理自定义节点。

我设法创建了继承自 MPxNode 的节点,并添加了几个 MFnNumericAttributes 和 MFnCompoundAttributes。然而。在 Maya 中,当我创建此节点时,属性按字母顺序排序...

看起来像这样 -> ZoneNode1 picture

我想要我的属性,以便它们根据插入到节点中进行排序,而不是按字母顺序排列,因为它们似乎是默认的。

有人知道要打什么电话吗?

【问题讨论】:

    标签: python maya


    【解决方案1】:

    如果您想要自己的排序,您可以使用 NodeEditorTemplate xml 文件。它的工作方式类似于 AETemplate 文件,将在 NodeEditor 中用于显示节点的输入和输出。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-31
      • 1970-01-01
      • 1970-01-01
      • 2012-11-02
      • 2018-04-19
      • 1970-01-01
      • 2015-01-13
      相关资源
      最近更新 更多