Maya 2014에서 작업 중입니다. 사용자 정의 속성이 Channels Box
에 있습니다. 이제는 사용자 정의 속성을 Attribute Editor
에 표시하려고합니다. 나는 AECamera_OrthoTemplate.mel
코드 아래라는 AETemplate 파일이 :Maya의 속성 템플릿
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 ;
}
보는 내 사용자 지정 카메라 모양을 선택하여 내가 그 안에 아무것도 모두가 Extra Attributes
레이아웃 섹션 내부에 배치 한 것으로 나타났습니다 컨트롤과 오픈 Camera
레이아웃을 참조 Attribute Editor
오른쪽 하단에. Camera
섹션에 중첩 된 컨트롤을보고 싶습니다. 이 장애물이 평가 될 것입니다 과거
어떤 도움
는감사합니다 저를 얻을 수 있습니다.
사실, 당신의 발견은 모두 옳았습니다. 이전에 그 질문을 찾았을 것이고, 나는 대답했을 것입니다. 자신의 대답을 "대답"으로 표시 할 수도 있습니다. – St0fF