global proc shelf_loopPoly () { global string $gBuffStr; global string $gBuffStr0; global string $gBuffStr1; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Toggle the display of the component count for visible polygons" -align "center" -label "Poly Count" -labelOffset 0 -font "tinyBoldLabelFont" -imageOverlayLabel "PC" -image "menuIconDisplay.xpm" -image1 "menuIconDisplay.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "TogglePolyCount" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Toggle grid visibility" -align "center" -label "Grid" -labelOffset 0 -font "tinyBoldLabelFont" -imageOverlayLabel "Gri" -image "menuIconDisplay.xpm" -image1 "menuIconDisplay.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "ToggleGrid" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Create a polygonal cube on the grid" -align "center" -label "Cube" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyCube.xpm" -image1 "polyCube.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1; objectMoveCommand;" -sourceType "mel" -doubleClickCommand "CreatePolygonCubeOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Create a polygonal cylinder on the grid" -align "center" -label "Cylinder" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyCylinder.xpm" -image1 "polyCylinder.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "polyCylinder -r 1 -h 2 -sx 20 -sy 1 -sz 1 -ax 0 1 0 -rcp 0 -cuv 3 -ch 1; objectMoveCommand;" -sourceType "mel" -doubleClickCommand "CreatePolygonCylinderOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Create a polygonal sphere on the grid" -align "center" -label "Sphere" -labelOffset 0 -font "tinyBoldLabelFont" -image "polySphere.xpm" -image1 "polySphere.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "polySphere -r 1024 -sx 20 -sy 20 -ax 0 1 0 -cuv 1 -ch 1; objectMoveCommand;" -sourceType "mel" -doubleClickCommand "CreatePolygonSphereOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Selection of edge loops" -align "center" -label "Select Edge Loop Tool" -labelOffset 0 -font "tinyBoldLabelFont" -image "polySelectEdgeLoop.xpm" -image1 "polySelectEdgeLoop.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "SelectEdgeLoopTool" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Selection of edge rings" -align "center" -label "Select Edge Ring Tool" -labelOffset 0 -font "tinyBoldLabelFont" -image "polySelectEdgeRing.xpm" -image1 "polySelectEdgeRing.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "SelectEdgeRingTool" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Selection of border edges" -align "center" -label "Select Border Edge Tool" -labelOffset 0 -font "tinyBoldLabelFont" -image "polySelectEdgeBorder.xpm" -image1 "polySelectEdgeBorder.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "SelectBorderEdgeTool" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Slide edge loops or paths along their neighbouring edges" -align "center" -label "Slide Edge Tool" -labelOffset 0 -font "tinyBoldLabelFont" -image "slideEdgeTool.xpm" -image1 "slideEdgeTool.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "SlideEdgeTool" -sourceType "mel" -doubleClickCommand "SlideEdgeToolOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Split selected edge ring" -align "center" -label "Insert Edge Loop Tool" -labelOffset 0 -font "tinyBoldLabelFont" -image "polySplitEdgeRing.xpm" -image1 "polySplitEdgeRing.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "SplitEdgeRingTool" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Offset Edge Loop Tool: " -align "center" -label "Offset Edge Loop Tool" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyDuplicateEdgeLoop.xpm" -image1 "polyDuplicateEdgeLoop.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "performPolyDuplicateEdge 0" -sourceType "mel" -doubleClickCommand "DuplicateEdgesOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Select border edges to append a face to the selected shell" -align "center" -label "Append to Polygon Tool" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyAppendFacet.xpm" -image1 "polyAppendFacet.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "setToolTo polyAppendFacetContext ; polyAppendFacetCtx -e -pc `optionVar -q polyKeepFacetsPlanar` polyAppendFacetContext" -sourceType "mel" -doubleClickCommand "setToolTo polyAppendFacetContext ; polyAppendFacetCtx -e -pc `optionVar -q polyKeepFacetsPlanar` polyAppendFacetContext; toolPropertyWindow" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Extrude the selected component" -align "center" -label "Extrude" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyExtrudeFacet.xpm" -image1 "polyExtrudeFacet.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "performPolyExtrude 0" -sourceType "mel" -doubleClickCommand "PolyExtrudeOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Cut faces options" -align "center" -label "EditPolygonCutPolygonOptionsItem" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyCut.xpm" -image1 "polyCut.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "CutPolygonOptions" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Select a point on an edge to start cutting the face" -align "center" -label "Split Polygon Tool" -labelOffset 0 -font "tinyBoldLabelFont" -image "polySplitFacet.xpm" -image1 "polySplitFacet.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "SplitPolygonTool" -sourceType "mel" -doubleClickCommand "SplitPolygonToolOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Collapse the selected edges or faces" -align "center" -label "Collapse" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyCollapseEdge.xpm" -image1 "polyCollapseEdge.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "performPolyCollapse 0" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Duplicate the currently selected faces in a new shell and shows a manipulator to adjust their offset" -align "center" -label "Duplicate Face" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyDuplicateFacet.xpm" -image1 "polyDuplicateFacet.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "performPolyChipOff 0 1" -sourceType "mel" -doubleClickCommand "DuplicateFaceOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Combine the selected polygon objects into one single object to allow operations such as merges or face trims" -align "center" -label "Combine" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyUnite.xpm" -image1 "polyUnite.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "polyPerformAction polyUnite o 0" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Transform (Scale, Rotate, Translate...) the selected components (Vertices, Edges or Faces). UVs are moved in the UV Texture Editor" -align "center" -label "Transform Component" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyMoveVertex.xpm" -image1 "polyMoveVertex.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "performPolyMove \"\" 0" -sourceType "mel" -doubleClickCommand "MovePolygonComponentOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Change the selected faces into triangles" -align "center" -label "Triangulate" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyTriangulate.xpm" -image1 "polyTriangulate.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "polyPerformAction polyTriangulate f 0" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Delete the selected Vertices / Edges" -align "center" -label "Delete Edge/Vertex" -labelOffset 0 -font "tinyBoldLabelFont" -imageOverlayLabel "DE" -image "polyPrelight.xpm" -image1 "polyPrelight.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "performPolyDeleteElements" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Transfer attributes from one surface to another" -align "center" -label "Transfer Attributes" -labelOffset 0 -font "tinyBoldLabelFont" -imageOverlayLabel "TA" -image "polyPrelight.xpm" -image1 "polyPrelight.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "performTransferAttributes 0" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Merge vertices / border edges based on selection" -align "center" -label "Merge" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyMergeVertex.xpm" -image1 "polyMergeVertex.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "performPolyMerge 0" -sourceType "mel" -doubleClickCommand "PolyMergeOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Set the soft/hard threshold angles for edge normals" -align "center" -label "Soften Edge" -labelOffset 0 -font "tinyBoldLabelFont" -imageOverlayLabel "SFT" -image "polySoftEdge.xpm" -image1 "polySoftEdge.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "SoftPolyEdgeElements 1" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Set the soft/hard threshold angles for edge normals" -align "center" -label "Harden Edge" -labelOffset 0 -font "tinyBoldLabelFont" -imageOverlayLabel "HRD" -image "polySoftEdge.xpm" -image1 "polySoftEdge.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "SoftPolyEdgeElements 0" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Select an object(s)" -align "center" -label "Freeze Transformations" -labelOffset 0 -font "tinyBoldLabelFont" -imageOverlayLabel "FT" -image "menuIconModify.xpm" -image1 "menuIconModify.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "FreezeTransformations" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Delete construction history on the selected object(s)" -align "center" -label "History" -labelOffset 0 -font "tinyBoldLabelFont" -imageOverlayLabel "His" -image "menuIconEdit.xpm" -image1 "menuIconEdit.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "DeleteHistory" -sourceType "mel" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Reverse the normals of the selected faces" -align "center" -label "Reverse" -labelOffset 0 -font "tinyBoldLabelFont" -image "polyNormal.xpm" -image1 "polyNormal.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "ReversePolygonNormals" -sourceType "mel" -doubleClickCommand "ReversePolygonNormalsOptions" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Mirror geometry across an axis" -align "center" -label "Mirror Geometry" -labelOffset 0 -font "tinyBoldLabelFont" -imageOverlayLabel "MX" -image "polyMirrorGeometry.xpm" -image1 "polyMirrorGeometry.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "polyMirrorFace -ws 1 -direction 0 -mergeMode 1" -sourceType "mel" -doubleClickCommand "performPolyMirror 1" -actionIsSubstitute 0 ; shelfButton -enableCommandRepeat 1 -enable 1 -width 34 -height 34 -manage 1 -visible 1 -preventOverride 0 -annotation "Mirror geometry across an axis" -align "center" -label "Mirror Geometry" -labelOffset 0 -font "tinyBoldLabelFont" -imageOverlayLabel "MZ" -image "polyMirrorGeometry.xpm" -image1 "polyMirrorGeometry.xpm" -style "iconOnly" -marginWidth 1 -marginHeight 1 -command "polyMirrorFace -ws 1 -direction 5 -mergeMode 1" -sourceType "mel" -doubleClickCommand "performPolyMirror 1" -actionIsSubstitute 0 ; }