// =========================================================================== // 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: // contextPolyToolsUVShellMM // // Description: // This procedure creates the popup/marking menu // for poly UV Shell tools. See ModelEdMenu. // // Input Arguments: // None // // Return Value: // None. global proc contextPolyToolsUVShellMM() { menuItem -label (uiRes("m_contextPolyToolsUVShellMM.kMapping")) -subMenu 1 -tearOff 0 -radialPosition "N" -allowOptionBoxes 1 -postMenuCommandOnce 0 ; contextPolyToolsUVMappingMM(); setParent -m ..; menuItem -version 2016 -label (uiRes("m_contextPolyToolsUVShellMM.kGrabUVTool")) -annotation `getRunTimeCommandAnnotation("SetMeshGrabUVTool")` -command "SetMeshGrabUVTool" -radialPosition "NE" -allowOptionBoxes 1 -image "UV_3D_Grab_Brush.png" ; menuItem -optionBox 1 -annotation (getRunTimeCommandAnnotation("ShowMeshGrabUVToolOptions")) -c "ShowMeshGrabUVToolOptions" -image "UV_3D_Grab_Brush.png" ; menuItem -label (uiRes("m_contextPolyToolsUVShellMM.kUVShellOptimize")) -ecr true -annotation ( getRunTimeCommandAnnotation("OptimzeUVs") ) -command ("OptimzeUVs") -radialPosition "E" -allowOptionBoxes 1 -image "polyOptimizeUV.png" ; menuItem -optionBox 1 -ecr false -annotation ( getRunTimeCommandAnnotation("OptimzeUVsOptions") ) -image "polyOptimizeUV.png" -command ( "OptimzeUVsOptions" ) ; menuItem -ecr true -label (uiRes("m_contextPolyToolsUVShellMM.kUVShellFlip")) -annotation ( getRunTimeCommandAnnotation("FlipUVs") ) -command "FlipUVs" -radialPosition "SE" -image "polyFlipUV.png" ; menuItem -optionBox 1 -ecr false -annotation ( getRunTimeCommandAnnotation("FlipUVsOptions") ) -command ( "FlipUVsOptions" ); menuItem -label (uiRes("m_contextPolyToolsUVShellMM.kUVShellAutoSeams")) -version "2018" -annotation (uiRes("m_contextPolyToolsUVShellMM.kAutoSeamUVsAnnot")) -radialPosition "S" -allowOptionBoxes 1 -image "polyAutoSeams.png" -command ( "performPolyAutoSeamUV 0" ) ; menuItem -optionBox 1 -ecr false -annotation (uiRes("m_contextPolyToolsUVShellMM.kAutoSeamUVsOptionsAnnot")) -image "polyAutoSeams.png" -command ( "performPolyAutoSeamUV 1" ) ; menuItem -label (uiRes("m_contextPolyToolsUVShellMM.kUVShellLayout")) -ecr true -annotation (getRunTimeCommandAnnotation("LayoutUV")) -command "LayoutUV" -radialPosition "SW" -allowOptionBoxes 1 -image "polyLayoutUV.png" ; menuItem -optionBox 1 -ecr false -annotation ( getRunTimeCommandAnnotation("LayoutUVOptions") ) -image "polyLayoutUV.png" -command ( "LayoutUVOptions" ) ; menuItem -label (uiRes("m_contextPolyToolsUVShellMM.kShellUnfold")) -ecr true -annotation ( getRunTimeCommandAnnotation("UnfoldUV") ) -command ("UnfoldUV") -radialPosition "W" -image "polyUnfoldUV.png" ; menuItem -optionBox true -ecr false -annotation ( getRunTimeCommandAnnotation("UnfoldUVOptions") ) -image "polyUnfoldUV.png" -command ( "UnfoldUVOptions" ) ; menuItem -version "2018" -label (uiRes("m_contextPolyToolsUVShellMM.kCutSewUV")) -annotation (getRunTimeCommandAnnotation("SetCutSewUVTool")) -command "SetCutSewUVTool" -radialPosition "NW" -image "CutSewUVTool.png" ; menuItem -optionBox true -ecr false -annotation (getRunTimeCommandAnnotation("SetCutSewUVTool")) -command "SetCutSewUVTool;toolPropertyWindow;" -image "CutSewUVTool.png" ; int $teb[] = `polyOptions -q -dmb`; menuItem -label (uiRes("m_contextPolyToolsUVShellMM.kTextureBorders")) -annotation (getRunTimeCommandAnnotation("ToggleTextureBorderEdges")) -checkBox $teb[0] -command ("ToggleTextureBorderEdges") ; menuItem -divider 1; menuItem -version 2018 -label (uiRes("m_contextPolyToolsUVShellMM.kUVEditor")) -annotation (getRunTimeCommandAnnotation("TextureViewWindow")) -command "TextureViewWindow" -image "textureEditor.png" ; menuItem -label (uiRes("m_contextPolyToolsUVShellMM.kUVSetEditor")) -ecr true -annotation (uiRes("m_contextPolyToolsUVShellMM.kUVSetEditorAnnot")) -command "UVSetEditor" -image "polyUVSetEditor.png" ; }