// =========================================================================== // 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. // =========================================================================== // // Procedure Name: // AEsnapshotTemplate // // Description Name; // Creates the attribute editor controls for the snapshot node // // Input Value: // nodeName // // Output Value: // None // global proc AEsnapshotTemplate ( string $nodeName ) { global string $snapshotTemplateName; editorTemplate -beginScrollLayout; editorTemplate -beginLayout (uiRes("m_AEsnapshotTemplate.kSnapshotAttributes")) -collapse 0; editorTemplate -addControl "startTime"; editorTemplate -addControl "endTime"; editorTemplate -addControl "increment"; editorTemplate -suppress "update"; string $obj = (uiRes("m_AEsnapshotTemplate.kMotionObj")); string $snapGeom = (uiRes("m_AEsnapshotTemplate.kSnapGeom")); editorTemplate -callCustom ( "AEinputNew \"" + $obj + "\"" ) ( "AEinputReplace \"" + $obj+ "\"" ) "inputMatrix"; editorTemplate -callCustom ( "AEinputNew \"" + $snapGeom + "\"" ) ( "AEinputReplace \"" + $snapGeom + "\"" ) "inputGeom"; editorTemplate -endLayout; editorTemplate -suppress "animCurveChanged"; editorTemplate -suppress "frames"; editorTemplate -suppress "points"; editorTemplate -suppress "localPosition"; editorTemplate -suppress "keyframes"; editorTemplate -suppress "keyframeTimes"; editorTemplate -suppress "keyframeFlags"; // include/call base class/node attributes AEdependNodeTemplate $nodeName; editorTemplate -addExtraControls; editorTemplate -endScrollLayout; }