// =========================================================================== // 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: November 2014 // // Description: // Define the Curves and Surfaces shelf. // global proc shelf_CurvesSurfaces() { string $label; string $annot; string $format = "^1s: ^2s"; $label = (uiRes("m_shelf_CurvesSurfaces.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_CurvesSurfaces.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_CurvesSurfaces.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_CurvesSurfaces.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_CurvesSurfaces.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_CurvesSurfaces.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_CurvesSurfaces.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_CurvesSurfaces.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_CurvesSurfaces.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_CurvesSurfaces.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_CurvesSurfaces.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_CurvesSurfaces.kAddPointsTool")); $annot = getRunTimeCommandAnnotation("AddPointsTool"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "curveAddPt.png" -command ("AddPointsTool"); $label = (uiRes("m_shelf_CurvesSurfaces.kCurveEditingTool")); $annot = getRunTimeCommandAnnotation("CurveEditTool"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "curveEditor.png" -command ("CurveEditTool"); $label = (uiRes("m_shelf_CurvesSurfaces.kCreateBezierCurveTool")); $annot = getRunTimeCommandAnnotation("CreateBezierCurveTool"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "curveBezier.png" -command ("CreateBezierCurveTool") -doubleClickCommand ("CreateBezierCurveToolOptions"); addShelfSeparator(); $label = (uiRes("m_shelf_CurvesSurfaces.kNURBSSphere")); $annot = getRunTimeCommandAnnotation("CreateNURBSSphere"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "sphere.png" -command ("CreateNURBSSphere") -doubleClickCommand ("CreateNURBSSphereOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kNURBSCube")); $annot = getRunTimeCommandAnnotation("CreateNURBSCube"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "cube.png" -command ("CreateNURBSCube") -doubleClickCommand ("CreateNURBSCubeOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kNURBSCylinder")); $annot = getRunTimeCommandAnnotation("CreateNURBSCylinder"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "cylinder.png" -command ("CreateNURBSCylinder") -doubleClickCommand ("CreateNURBSCylinderOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kNURBSCone")); $annot = getRunTimeCommandAnnotation("CreateNURBSCone"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "cone.png" -command ("CreateNURBSCone") -doubleClickCommand ("CreateNURBSConeOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kNURBSPlane")); $annot = getRunTimeCommandAnnotation("CreateNURBSPlane"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "plane.png" -command ("CreateNURBSPlane") -doubleClickCommand ("CreateNURBSPlaneOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kNURBSTorus")); $annot = getRunTimeCommandAnnotation("CreateNURBSTorus"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "torus.png" -command ("CreateNURBSTorus") -doubleClickCommand ("CreateNURBSTorusOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kRevolve")); $annot = getRunTimeCommandAnnotation("Revolve"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "revolve.png" -command ("Revolve") -doubleClickCommand ("RevolveOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kLoft")); $annot = getRunTimeCommandAnnotation("Loft"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "skin.png" -command ("Loft") -doubleClickCommand ("LoftOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kPlanar")); $annot = getRunTimeCommandAnnotation("Planar"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "planarTrim.png" -command ("Planar") -doubleClickCommand ("PlanarOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kExtrude")); $annot = getRunTimeCommandAnnotation("Extrude"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "extrude.png" -command ("Extrude") -doubleClickCommand ("ExtrudeOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kBirail1Tool")); $annot = getRunTimeCommandAnnotation("Birail1"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "birail1Gen.png" -command ("Birail1") -doubleClickCommand ("Birail1Options"); $label = (uiRes("m_shelf_CurvesSurfaces.kBevelPlus")); $annot = getRunTimeCommandAnnotation("BevelPlus"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "bevelPlus.png" -command ("BevelPlus") -doubleClickCommand ("BevelPlusOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kProjectCurveOnSurface")); $annot = getRunTimeCommandAnnotation("ProjectCurveOnSurface"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "projectCurve.png" -command ("ProjectCurveOnSurface") -doubleClickCommand ("ProjectCurveOnSurfaceOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kIntersectSurfaces")); $annot = getRunTimeCommandAnnotation("IntersectSurfaces"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "srfIntersect.png" -command ("IntersectSurfaces") -doubleClickCommand ("IntersectSurfacesOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kTrimTool")); $annot = getRunTimeCommandAnnotation("TrimTool"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "trim.png" -command ("TrimTool") -doubleClickCommand ("TrimToolOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kUntrimSurfaces")); $annot = getRunTimeCommandAnnotation("UntrimSurfaces"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "untrim.png" -command ("UntrimSurfaces") -doubleClickCommand ("UntrimSurfacesOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kAttachSurfaces")); $annot = getRunTimeCommandAnnotation("AttachSurfaces"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "align.png" -command ("AttachSurfaces") -doubleClickCommand ("AttachSurfacesOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kDetachSurfaces")); $annot = getRunTimeCommandAnnotation("DetachSurfaces"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "detach.png" -command ("DetachSurfaces") -doubleClickCommand ("DetachSurfacesOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kOpenCloseSurfaces")); $annot = getRunTimeCommandAnnotation("OpenCloseSurfaces"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "openCloseSurface.png" -command ("OpenCloseSurfaces") -doubleClickCommand ("OpenCloseSurfacesOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kInsertIsoparms")); $annot = getRunTimeCommandAnnotation("InsertIsoparms"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "insert.png" -command ("InsertIsoparms") -doubleClickCommand ("InsertIsoparmsOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kExtendSurfaces")); $annot = getRunTimeCommandAnnotation(""); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "extendSurface.png" -command ("ExtendSurfaces") -doubleClickCommand ("ExtendSurfacesOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kRebuildSurfaces")); $annot = getRunTimeCommandAnnotation("RebuildSurfaces"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "rebuildSurface.png" -command ("RebuildSurfaces") -doubleClickCommand ("RebuildSurfacesOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kSculptGeometryTool")); $annot = getRunTimeCommandAnnotation("SculptGeometryTool"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "putty.png" -command ("SculptGeometryTool") -doubleClickCommand ("SculptGeometryToolOptions"); $label = (uiRes("m_shelf_CurvesSurfaces.kSurfaceEditingTool")); $annot = getRunTimeCommandAnnotation("SurfaceEditingTool"); shelfButton -label $label -annotation `format -s $label -s $annot $format` -image1 "surfaceEditor.png" -command ("SurfaceEditingTool") -doubleClickCommand ("SurfaceEditingToolOptions"); }