// =========================================================================== // 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: 08 January 2002 // // Description: // Define the Curves shelf. // global proc shelf_Curves() { string $label; string $annot; string $format = "^1s: ^2s"; $label = (uiRes("m_shelf_Curves.kNURBSCircle")) ; $annot = getRunTimeCommandAnnotation("CreateNURBSCircle") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "circle.png" -command ("CreateNURBSCircle") -doubleClickCommand ("CreateNURBSCircleOptions"); $label = (uiRes("m_shelf_Curves.kNURBSSquare")) ; $annot = getRunTimeCommandAnnotation("CreateNURBSSquare") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "square.png" -command ("CreateNURBSSquare") -doubleClickCommand ("CreateNURBSSquareOptions"); $label = (uiRes("m_shelf_Curves.kEPCurveTool")) ; $annot = getRunTimeCommandAnnotation("EPCurveTool") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "curveEP.png" -command ("EPCurveTool") -doubleClickCommand ("EPCurveToolOptions"); $label = (uiRes("m_shelf_Curves.kPencilCurveTool")) ; $annot = getRunTimeCommandAnnotation("PencilCurveTool") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "pencil.png" -command ("PencilCurveTool") -doubleClickCommand ("PencilCurveToolOptions"); $label = (uiRes("m_shelf_Curves.kThreePointCircularArc")) ; $annot = getRunTimeCommandAnnotation("ThreePointArcTool") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "threePointArc.png" -command ("ThreePointArcTool") -doubleClickCommand ("ThreePointArcToolOptions"); $label = (uiRes("m_shelf_Curves.kAttachCurves")) ; $annot = getRunTimeCommandAnnotation("AttachCurve") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "attachCurves.png" -command ("AttachCurve") -doubleClickCommand ("AttachCurveOptions"); $label = (uiRes("m_shelf_Curves.kDetachCurves")) ; $annot = getRunTimeCommandAnnotation("DetachCurve") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "detachCurve.png" -command ("DetachCurve") -doubleClickCommand ("DetachCurveOptions"); $label = (uiRes("m_shelf_Curves.kInsertKnot")) ; $annot = getRunTimeCommandAnnotation("InsertKnot") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "insertKnot.png" -command ("InsertKnot") -doubleClickCommand ("InsertKnotOptions"); $label = (uiRes("m_shelf_Curves.kExtendCurve")) ; $annot = getRunTimeCommandAnnotation("ExtendCurve") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "extend.png" -command ("ExtendCurve") -doubleClickCommand ("ExtendCurveOptions"); $label = (uiRes("m_shelf_Curves.kOffsetCurve")) ; $annot = getRunTimeCommandAnnotation("OffsetCurve") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "offsetCurve.png" -command ("OffsetCurve") -doubleClickCommand ("OffsetCurveOptions"); $label = (uiRes("m_shelf_Curves.kRebuildCurve")) ; $annot = getRunTimeCommandAnnotation("RebuildCurve") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "rebuildCurve.png" -command ("RebuildCurve") -doubleClickCommand ("RebuildCurveOptions"); $label = (uiRes("m_shelf_Curves.kAddPointsTool")) ; $annot = getRunTimeCommandAnnotation("AddPointsTool") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "curveAddPt.png" -command ("AddPointsTool"); $label = (uiRes("m_shelf_Curves.kCurveEditingTool")) ; $annot = getRunTimeCommandAnnotation("CurveEditTool") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "curveEditor.png" -command ("CurveEditTool"); $label = (uiRes("m_shelf_Curves.kCreateBezierCurveTool")) ; $annot = getRunTimeCommandAnnotation("CreateBezierCurveTool") ; shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "curveBezier.png" -command ("CreateBezierCurveTool") -doubleClickCommand ("CreateBezierCurveToolOptions"); }