我在 Maya 2014 中工作。我的自定义属性显示在Channels Box
. 我现在正试图在Attribute Editor
. 我有一个名为AECamera_OrthoTemplate.mel
以下代码的 AETemplate 文件:
global proc AECamera_OrthoTemplate( string $nodeName ) {
editorTemplate -beginScrollLayout ;
editorTemplate -beginLayout "Camera" -collapse 0 ;
editorTemplate -label "Always Show Frustrum" -addControl "boolAttr" ;
editorTemplate -label "Frustrum NearZ" -addControl "numAttr" ;
editorTemplate -label "Frustrum FarZ" -addControl "numAttr" ;
editorTemplate -label "Frustrum Width" -addControl "numAttr" ;
editorTemplate -label "Frustrum Height" -addControl "numAttr" ;
editorTemplate -endLayout ;
// Currently editing values on the shape object,
// so drag in the shape attributes as well
AEshapeTemplate $nodeName ;
editorTemplate -addExtraControls ;
editorTemplate -endScrollLayout ;
}
当查看Attribute Editor
我选择的自定义相机形状时,我看到Camera
里面没有任何内容的打开布局,并且所有控件似乎都放置在Extra Attributes
底部的布局部分内。我想查看嵌套在该Camera
部分中的那些控件。
任何帮助我克服这个障碍的帮助将不胜感激,
谢谢。