// =========================================================================== // 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. // =========================================================================== // // // Creation Date: April, 2005 // // Procedure Name: // AEhikFloorContactMarkerTemplate // // Description Name; // Creates the attribute editor controls for the hikFloorContactMarker node // // Input Value: // nodeName // // Output Value: // None // global proc AEhandsFloorEnable(string $nodeName ) { int $enable = `getAttr ($nodeName+".handsContact")`; editorTemplate -dimControl $nodeName "drawHandContact" (! $enable); editorTemplate -dimControl $nodeName "handsFloorPivot" (! $enable); editorTemplate -dimControl $nodeName "handsContactType" (! $enable); editorTemplate -dimControl $nodeName "handsContactStiffness" (! $enable); editorTemplate -dimControl $nodeName "handHeight" (! $enable); editorTemplate -dimControl $nodeName "handBack" (! $enable); editorTemplate -dimControl $nodeName "handMiddle" (! $enable); editorTemplate -dimControl $nodeName "handFront" (! $enable); editorTemplate -dimControl $nodeName "handInSide" (! $enable); editorTemplate -dimControl $nodeName "handOutSide" (! $enable); } global proc AEfeetFloorEnable(string $nodeName ) { int $enable = `getAttr ($nodeName+".feetContact")`; editorTemplate -dimControl $nodeName "drawFeetContact" (! $enable); editorTemplate -dimControl $nodeName "feetFloorPivot" (! $enable); editorTemplate -dimControl $nodeName "feetContactType" (! $enable); editorTemplate -dimControl $nodeName "feetContactStiffness" (! $enable); editorTemplate -dimControl $nodeName "footHeight" (! $enable); editorTemplate -dimControl $nodeName "footBack" (! $enable); editorTemplate -dimControl $nodeName "footMiddle" (! $enable); editorTemplate -dimControl $nodeName "footFront" (! $enable); editorTemplate -dimControl $nodeName "footInSide" (! $enable); editorTemplate -dimControl $nodeName "footOutSide" (! $enable); } global proc AEtoesFloorEnable(string $nodeName ) { int $enable = `getAttr ($nodeName+".toesContact")`; editorTemplate -dimControl $nodeName "toesContactType" (! $enable); editorTemplate -dimControl $nodeName "toesContactRollStiffness" (! $enable); } global proc AEfingersFloorEnable(string $nodeName ) { int $enable = `getAttr ($nodeName+".fingersContact")`; editorTemplate -dimControl $nodeName "fingersContactType" (! $enable); editorTemplate -dimControl $nodeName "fingersContactRollStiffness" (! $enable); } global proc AEhikFloorContactMarkerTemplate (string $nodeName ) { editorTemplate -beginScrollLayout; editorTemplate -beginLayout (uiRes("m_AEhikFloorContactMarkerTemplate.kFloorContactMarkerAttributes")) -collapse 0; editorTemplate -addControl "markerSize"; editorTemplate -beginLayout (uiRes("m_AEhikFloorContactMarkerTemplate.kFeetToFloorContactAttributes")) -collapse 0; editorTemplate -addControl "feetContact" "AEfeetFloorEnable"; editorTemplate -addControl "drawFeetContact"; editorTemplate -addControl "feetFloorPivot"; editorTemplate -addControl "feetContactType"; editorTemplate -addControl "feetContactStiffness"; editorTemplate -addControl "footHeight"; editorTemplate -addControl "footBack"; editorTemplate -addControl "footMiddle"; editorTemplate -addControl "footFront"; editorTemplate -addControl "footInSide"; editorTemplate -addControl "footOutSide"; editorTemplate -endLayout; editorTemplate -beginLayout (uiRes("m_AEhikFloorContactMarkerTemplate.kHandsToFloorContactAttributes")) -collapse 1; editorTemplate -addControl "handsContact" "AEhandsFloorEnable"; editorTemplate -addControl "drawHandContact"; editorTemplate -addControl "handsFloorPivot"; editorTemplate -addControl "handsContactType"; editorTemplate -addControl "handsContactStiffness"; editorTemplate -addControl "handHeight"; editorTemplate -addControl "handBack"; editorTemplate -addControl "handMiddle"; editorTemplate -addControl "handFront"; editorTemplate -addControl "handInSide"; editorTemplate -addControl "handOutSide"; editorTemplate -endLayout; editorTemplate -beginLayout (uiRes("m_AEhikFloorContactMarkerTemplate.kFingersToesToFloorContact")) -collapse 1; editorTemplate -addControl "fingersContact" "AEfingersFloorEnable"; editorTemplate -addControl "fingersContactType"; editorTemplate -addControl "fingersContactRollStiffness"; editorTemplate -addControl "toesContact" "AEtoesFloorEnable"; editorTemplate -addControl "toesContactType"; editorTemplate -addControl "toesContactRollStiffness"; editorTemplate -endLayout; editorTemplate -endLayout; // end Floor Contact Marker attrs // include/call base class/node attributes AEtransformMain $nodeName; AEtransformNoScroll($nodeName); // suppressed attributes editorTemplate -suppress "floorContacts"; editorTemplate -suppress "feetContactPosition"; editorTemplate -suppress "contactsPosition"; editorTemplate -suppress "handsFloorContactSetup"; editorTemplate -suppress "feetFloorContactSetup"; editorTemplate -suppress "toesFloorContactSetup"; editorTemplate -suppress "fingersFloorContactSetup"; editorTemplate -suppress "mentalRayControls"; editorTemplate -addExtraControls; editorTemplate -endScrollLayout; }