// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // File: AEcomposeMatrixTemplate.mel // // Description: Attribute Editor Template for composeMatrix node // // global proc AEcomposeMatrixTemplate( string $nodeName ) { editorTemplate -beginScrollLayout; editorTemplate -beginLayout (uiRes("m_AEcomposeMatrixTemplate.kInputProperties")) -collapse false; editorTemplate -addControl "inputTranslate"; editorTemplate -addControl "inputRotate"; editorTemplate -addControl "inputScale"; editorTemplate -addControl "inputShear"; editorTemplate -addControl "inputRotateOrder"; editorTemplate -addControl "useEulerRotation" "composeMatrixDimCallback"; editorTemplate -addControl "inputQuat"; editorTemplate -endLayout; editorTemplate -beginLayout (uiRes("m_AEcomposeMatrixTemplate.kOutputProperties")) -collapse false; editorTemplate -addControl "outputMatrix"; editorTemplate -endLayout; editorTemplate -addExtraControls; editorTemplate -endScrollLayout; } global proc composeMatrixDimCallback( string $node ) { int $useEuler = `getAttr ($node + ".useEulerRotation")`; editorTemplate -dimControl $node "inputRotate" ($useEuler == 0); editorTemplate -dimControl $node "inputRotateOrder" ($useEuler == 0); editorTemplate -dimControl $node "inputQuat" ($useEuler == 1); }