// Copyright (C) 1997-2006 Autodesk, Inc., and/or its licensors. // All rights reserved. // // The coded instructions, statements, computer programs, and/or related // material (collectively the "Data") in these files contain unpublished // information proprietary to Autodesk, Inc. ("Autodesk") and/or its licensors, // which is protected by U.S. and Canadian federal copyright law and by // international treaties. // // The Data is provided for use exclusively by You. You have the right to use, // modify, and incorporate this Data into other products for purposes authorized // by the Autodesk software license agreement, without fee. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. AUTODESK // DOES NOT MAKE AND HEREBY DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTIES // INCLUDING, BUT NOT LIMITED TO, THE WARRANTIES OF NON-INFRINGEMENT, // MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, OR ARISING FROM A COURSE // OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT WILL AUTODESK AND/OR ITS // LICENSORS BE LIABLE FOR ANY LOST REVENUES, DATA, OR PROFITS, OR SPECIAL, // DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES, EVEN IF AUTODESK AND/OR ITS // LICENSORS HAS BEEN ADVISED OF THE POSSIBILITY OR PROBABILITY OF SUCH DAMAGES. // // Alias Script File // MODIFY THIS AT YOUR OWN RISK // // Creation Date: Aug 28, 1998 // // // Description: // This implements the Texture UVs on the main menubar. // global proc PolyRequestUVSetName (string $title, string $cmd, string $version, string $args[]) // // Procedure Name: // PolyRequestUVSetName // // Description: // Helper method to ask the user for a new UV set name and then call // a command with the name as the final argument. The command will be // called like: $cmd $version $args "uvSetName" // // Input Arguments: // string $title The title for the dialog box // string $cmd The command to issue // string $version Version to pass onto the command // string $args Arguments to pass onto the command // // Return Value: // None. // { string $ok = (uiRes("m_PolyTextureMenu.kOK")); string $cancel = (uiRes("m_PolyTextureMenu.kCancel")); string $response = `promptDialog -title $title -message (uiRes("m_PolyTextureMenu.kDialogUVSetName")) -text "uvSet" -button $ok -button $cancel -defaultButton $ok -cancelButton $cancel -dismissString $cancel`; if ($response == $ok) { string $name = `promptDialog -query -text`; string $execute = ($cmd + " \"" + $version + "\" {"); string $comma = ""; for ($arg in $args) { $execute += ($comma + "\"" + $arg + "\""); $comma = ", "; } $execute += ("} \"" + $name + "\""); eval ($execute); } } global proc string polygonUVsMenuItemToShelf (string $item) { return $item; } ////////////////////////////////////////////////////////////////////// // // Description: // Polygon UV creation menu // global proc PolygonUVsMenu(string $parent) { if (! `isTrue "PolygonsExists"`) return; PolyTextureMenu $parent 0 "ls -sl"; } global proc PolyTextureMenu (string $parent, int $creator, string $selectCmd) // // Procedure Name: // PolyTextureMenu // // Description: // Helper method to generate the menu items for the texture menus // // Input Arguments: // string $parent The name of the parent widget // int $creator Which creator is calling this // Current known creators // 0 PolygonUVs ( menu bar, was Edit Polygons -> Texture ) // 1 Relationship Editor->Edit->Create UV Set // string $selectCmd The command to issue to determine which objects // to affect // // Return Value: // None. // { setParent -m $parent; if( `menu -query -numberOfItems $parent` != 0 ) { if ($creator != 1) { // Menu already created, just set options menuItem -edit -checkBox `optionVar -query polyCreateShaderWithMapping` toggleCreateShaderItem; } } else { if ($creator != 1) { menuItem -ecr false -cb false -label (uiRes("m_PolyTextureMenu.kAssignShaderToProjection")) -i "polyCheck.xpm" -dmc "polygonUVsItemToShelf \"togglePolyCreateShaderWithMapping\"" -annotation (uiRes("m_PolyTextureMenu.kAssignShaderToProjectionAnnot")) -c "togglePolyCreateShaderWithMapping" toggleCreateShaderItem; } string $createPlanarMapping = (uiRes("m_PolyTextureMenu.kCreatePlanarMapping")); string $prefix = ($creator == 0 ? "" : ("PolyRequestUVSetName \""+$createPlanarMapping+"\" ") ); string $cmd = $prefix + "performPolyProjectionArgList"; string $version = "\"1\""; string $args0 = ("{\"0\", \"Planar\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args1 = ("{\"1\", \"Planar\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args2 = ("{\"2\", \"Planar\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $suffix = ($creator == 0 ? " \"\"" : ""); string $dmc = "performPolyProjectionArgList \"1\" {\"2\", \"Planar\", \"ls -sl\", \"0\"} \"\";"; string $c = ($cmd + " " + $version + " " + $args0 + $suffix); string $planarLabel, $cylindricalLabel, $sphericalLabel; string $createUVSetLabel, $createCameraUVLabel, $unitizeLabel; if ($creator == 1) { $planarLabel = (uiRes("m_PolyTextureMenu.kPlanarMapping1")); $cylindricalLabel = (uiRes("m_PolyTextureMenu.kCylindricalMapping1")); $sphericalLabel = (uiRes("m_PolyTextureMenu.kSphericalMapping1")); $createUVSetLabel = (uiRes("m_PolyTextureMenu.kCreateUVSetLabel1")); $createCameraUVLabel = (uiRes("m_PolyTextureMenu.kCreateCameraUVLabel1")); $unitizeLabel = (uiRes("m_PolyTextureMenu.kUnitizeLabel1")); } else { $planarLabel = (uiRes("m_PolyTextureMenu.kPlanarMapping0")); $cylindricalLabel = (uiRes("m_PolyTextureMenu.kCylindricalMapping0")); $sphericalLabel = (uiRes("m_PolyTextureMenu.kSphericalMapping0")); $createUVSetLabel = (uiRes("m_PolyTextureMenu.kCreateUVSetLabel0")); $createCameraUVLabel = (uiRes("m_PolyTextureMenu.kCreateCameraUVLabel0")); $unitizeLabel = (uiRes("m_PolyTextureMenu.kUnitizeLabel0")); } menuItem -label $planarLabel -ecr true -i "polyPlanProj.xpm" -dmc $dmc -annotation (uiRes("m_PolyTextureMenu.kPlanarMappingAnnot")) -c $c planarMappingItem; string $c = ($cmd + " " + $version + " " + $args1 + $suffix); menuItem -optionBox 1 -i "polyPlanProj.xpm" -annotation (uiRes("m_PolyTextureMenu.kPlanarMappingOptionAnnot")) -ecr false -c $c planarMappingOptionItem; string $createCylindricalMapping = (uiRes("m_PolyTextureMenu.kCreateCylindricalMapping")); string $prefix = ($creator == 0 ? "" : ("PolyRequestUVSetName \""+$createCylindricalMapping+"\" ") ); string $cmd = $prefix + "performPolyProjectionArgList"; string $version = "\"1\""; string $args0 = ("{\"0\", \"Cylindrical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args1 = ("{\"1\", \"Cylindrical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args2 = ("{\"2\", \"Cylindrical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $suffix = ($creator == 0 ? " \"\"" : ""); string $dmc = "performPolyProjectionArgList \"1\" {\"2\", \"Cylindrical\", \"ls -sl\", \"0\"} \"\";"; string $c = ($cmd + " " + $version + " " + $args0 + $suffix); menuItem -label $cylindricalLabel -ecr true -i "polyCylProj.xpm" -dmc $dmc -annotation (uiRes("m_PolyTextureMenu.kCylindricalMapping")) -c $c cylindricMappingItem; string $c = ($cmd + " " + $version + " " + $args1 + $suffix); menuItem -optionBox 1 -i "polyCylProj.xpm" -annotation (uiRes("m_PolyTextureMenu.kCylindricalMappingAnnot")) -ecr false -c $c cylindricMappingOptionItem; string $createSphericalMapping = (uiRes("m_PolyTextureMenu.kCreateSphericalMapping")); string $prefix = ($creator == 0 ? "" : ("PolyRequestUVSetName \""+$createSphericalMapping+"\" ") ); string $cmd = $prefix + "performPolyProjectionArgList"; string $version = "\"1\""; string $args0 = ("{\"0\", \"Spherical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args1 = ("{\"1\", \"Spherical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args2 = ("{\"2\", \"Spherical\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $suffix = ($creator == 0 ? " \"\"" : ""); string $c = ($cmd + " " + $version + " " + $args0 + $suffix); string $dmc = "performPolyProjectionArgList \"1\" {\"2\", \"Spherical\", \"ls -sl\", \"0\"} \"\";"; menuItem -label $sphericalLabel -ecr true -i "polySphereProj.xpm" -dmc $dmc -annotation (uiRes("m_PolyTextureMenu.kSphericalMapping")) -c $c sphericMappingItem; string $c = ($cmd + " " + $version + " " + $args1 + $suffix); menuItem -ob 1 -i "polySphereProj.xpm" -annotation (uiRes("m_PolyTextureMenu.kSphericalMappingAnnot")) -label (uiRes("m_PolyTextureMenu.kSphericalMappingOption")) -ecr false -c $c sphericMappingOptionItem; menuItem -label (uiRes("m_PolyTextureMenu.kAutomaticMapping")) -annotation (uiRes("m_PolyTextureMenu.kAutomaticMappingAnnot")) -c "performPolyAutoProj 0" -i "polyAutoProj.xpm" ; menuItem -optionBox 1 -annotation (uiRes("m_PolyTextureMenu.kAutomaticMappingOptionAnnot")) -c "performPolyAutoProj 1" -ecr false -i "polyAutoProj.xpm"; ////////////////////////////////////////////////////////////////////// menuItem -divider true; string $createEmptyUVSet = (uiRes("m_PolyTextureMenu.kCreateEmptyUVSet")); string $prefix = ($creator == 0 ? "" : ("PolyRequestUVSetName \""+$createEmptyUVSet+"\" ") ); string $cmd = $prefix + "performCreateUVSet"; string $version = "\"1\""; string $args0 = ("{\"0\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args1 = ("{\"1\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args2 = ("{\"2\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $suffix = ($creator == 0 ? " \"\"" : ""); string $dmc = "performCreateUVSet \"1\" {\"2\", \"ls -sl\", \"0\"} \"\";"; string $c = ($cmd + " " + $version + " " + $args0 + $suffix); menuItem -label $createUVSetLabel -ecr true -i "polyCreateUVSet.xpm" -dmc $dmc -annotation (uiRes("m_PolyTextureMenu.kCreateUVSet")) -c $c createUVSetItem; if ($creator != 1) { string $c = ($cmd + " " + $version + " " + $args1 + $suffix); menuItem -optionBox 1 -i "polyCreateUVSet.xpm" -annotation (uiRes("m_PolyTextureMenu.kCreateUVSetAnnot")) -ecr false -c $c createUVSetOptionItem; } // Copy UVs to UV set string $prefix = "M"; // M is just to ensure a unique name for the menu item string $selectUVSetMenu = `menuItem -label (uiRes("m_PolyTextureMenu.kCopyUVsToUVSet")) -subMenu true -allowOptionBoxes true ($prefix+"CopyUVSets")`; string $cmd = "string $menuNames[];" + "buildUVSetMenuNames( $menuNames ); " + "buildUVSetMenu " + $selectUVSetMenu + " $menuNames \"" + $prefix + " \" 1;" + "buildUVSetMenuWithCopyUVsCmd " + $selectUVSetMenu + " $menuNames ;"; menuItem -e -pmc $cmd $selectUVSetMenu; string $copyCurrentUVSet = (uiRes("m_PolyTextureMenu.kCopyCurrentUVSet")); string $prefix = ($creator == 0 ? "" : ("PolyRequestUVSetName \""+$copyCurrentUVSet+"\" ") ); string $cmd = $prefix + "performCopyCurrentUVSet"; string $version = "\"1\""; string $args0 = ("{\"0\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args1 = ("{\"1\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args2 = ("{\"2\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $suffix = ($creator == 0 ? " \"\"" : ""); string $dmc = "performCopyCurrentUVSet \"1\" {\"2\", \"ls -sl\", \"0\"} \"\";"; string $c = ($cmd + " " + $version + " " + $args0 + $suffix); menuItem -label (uiRes("m_PolyTextureMenu.kCopyIntoNewUVSet")) -ecr true // -i "" // Need to have an icon created for this menu item -annotation (uiRes("m_PolyTextureMenu.kCopyIntoNewUVSetAnnot")) -dmc $dmc -c $c copyCurrentUVSet; if ($creator != 1) { string $c = ($cmd + " " + $version + " " + $args1 + $suffix); menuItem -optionBox 1 -i "polyCreateUVSet.xpm" -annotation (uiRes("m_PolyTextureMenu.kCopyIntoNewUVSetOptionAnnot")) -ecr false -c $c copyCurrentUVSetOB; } setParent -m ..; if ($creator != 1) { menuItem -label (uiRes("m_PolyTextureMenu.kSetCurrentUVSet")) -ecr true -i "polySetCurrentUVSet.xpm" -annotation (uiRes("m_PolyTextureMenu.kSetCurrentUVSetAnnot")) -c "SetCurrentUVSet" setCurrentUVSet; menuItem -label (uiRes("m_PolyTextureMenu.kRenameCurrentUVSet")) -ecr true -i "polyRenameUVSet.xpm" -annotation (uiRes("m_PolyTextureMenu.kRenameCurrentUVSetAnnot")) -c "RenameCurrentUVSet" renameCurrentUVSet; menuItem -label (uiRes("m_PolyTextureMenu.kDeleteCurrentUVSet")) -ecr true -i "polyDeleteUVSet.xpm" -annotation (uiRes("m_PolyTextureMenu.kDeleteCurrentUVSetAnnot")) -dmc "performDeleteCurrentUVSet 2" -c "DeleteCurrentUVSet" deleteCurrentUVSet; } ////////////////////////////////////////////////////////////////////// menuItem -divider true; string $createUVsBasedOnCamera = (uiRes("m_PolyTextureMenu.kCreateCameraBasedUVs")); string $prefix = ($creator == 0 ? "" : ( "PolyRequestUVSetName \""+$createUVsBasedOnCamera+ "\" ") ); string $cmd = $prefix + "performPolyForceUVArgList"; string $version = "\"1\""; string $args0 = ("{\"0\", \"camera\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args1 = ("{\"1\", \"camera\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args2 = ("{\"2\", \"camera\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $suffix = ($creator == 0 ? " \"\"" : ""); string $dmc = "performPolyForceUVArgList \"1\" {\"2\", \"camera\", \"ls -sl\", \"0\"} \"\";"; string $c = ($cmd + " " + $version + " " + $args0 + $suffix); menuItem -label $createCameraUVLabel -ecr true -annotation (uiRes("m_PolyTextureMenu.kCreateUVsBasedOnCamera")) -dmc $dmc -c $c cameraProjectionItem; string $c = ($cmd + " " + $version + " " + $args1 + $suffix); menuItem -optionBox 1 -annotation (uiRes("m_PolyTextureMenu.kCreateUVsBasedOnCameraOptionAnnot")) -ecr false -c $c cameraProjectionOptionItem; if ($creator != 1) { menuItem -label (uiRes("m_PolyTextureMenu.kNormalizeUVs")) -ecr true -annotation (uiRes("m_PolyTextureMenu.kNormalizeUVsAnnot")) -dmc "performPolyForceUV normalize 2" -c "NormalizeUVs" normalizeUVItem; menuItem -optionBox 1 -annotation (uiRes("m_PolyTextureMenu.kNormalizeUVsOptionAnnot")) -ecr false -c "performPolyForceUV normalize 1" normalizeUVOptionItem; } string $createUnitizedUVs = (uiRes("m_PolyTextureMenu.kCreateUnitizedUVs")); string $prefix = ($creator == 0 ? "" : ( "PolyRequestUVSetName \"" +$createUnitizedUVs+ "\" ") ); string $cmd = $prefix + "performPolyForceUVArgList"; string $version = "\"1\""; string $args0 = ("{\"0\", \"unitize\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args1 = ("{\"1\", \"unitize\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $args2 = ("{\"2\", \"unitize\", \"" + $selectCmd + "\", \"" + ($creator == 1 ? "1" : "0") + "\"}"); string $suffix = ($creator == 0 ? " \"\"" : ""); string $dmc = "performPolyForceUVArgList \"1\" {\"2\", \"unitize\", \"ls -sl\", \"0\"} \"\""; string $c = ($cmd + " " + $version + " " + $args0 + $suffix); menuItem -label $unitizeLabel -ecr true -annotation (uiRes("m_PolyTextureMenu.kUnitizeUVsAnnot")) -dmc $dmc -c $c unitizeUVItem; string $c = ($cmd + " " + $version + " " + $args1 + $suffix); menuItem -optionBox 1 -annotation (uiRes("m_PolyTextureMenu.kUnitizeUVsOptionAnnot")) -ecr false -c $c unitizeUVOptionItem; if ($creator != 1) { menuItem -label (uiRes("m_PolyTextureMenu.kFlipUVs")) -ecr true -iol "FUV" -annotation (uiRes("m_PolyTextureMenu.kFlipUVsAnnot")) -dmc "performPolyForceUV flip 2" -c "FlipUVs" flipUVItem; menuItem -optionBox 1 -annotation (uiRes("m_PolyTextureMenu.kFlipUVsOptionAnnot")) -ecr false -c "performPolyForceUV flip 1" flipUVOptionItem; // m2.1 Rotate uvs about vertex menuItem -label (uiRes("m_PolyTextureMenu.kRotateUVs")) -ecr true -i "polyTextureRotateUV.xpm" -annotation (uiRes("m_PolyTextureMenu.kRotateUVsAnnot")) -dmc "performPolyRotateUVs 2" -ddc "performPolyRotateUVs 1" -c "RotateUVs" rotateUVItem; menuItem -optionBox 1 -ecr false -i "polyTextureRotateUV.xpm" -annotation (uiRes("m_PolyTextureMenu.kRotateUVsOptionAnnot")) -c "performPolyRotateUVs 1" rotateUVOptionItem; menuItem -label (uiRes("m_PolyTextureMenu.kBestPlaneTexturing")) -ecr true -i "bestPlaneTxt.xpm" -annotation (uiRes("m_PolyTextureMenu.kBestPlaneTexturingAnnot")) -dmc "polygonUVsMenuItemToShelf \"setToolTo polyBestPlaneTexturingContext\"" -c "BestPlaneTexturingTool" polyBestPlaneTexturingItem; menuItem -label (uiRes("m_PolyTextureMenu.kMapUVBorder")) -ecr true -i "polyMapUVBorder.xpm" -annotation (uiRes("m_PolyTextureMenu.kMapUVBorderAnnot")) -ddc "performPolyUntangleUV map 1" -dmc "performPolyUntangleUV map 2" -c "MapUVBorder" mapUVBorderItem; menuItem -optionBox 1 -i "polyMapUVBorder.xpm" -annotation (uiRes("m_PolyTextureMenu.kMapUVBorderOptionAnnot")) -ecr false -c "performPolyUntangleUV map 1" mapUVBorderOptionItem; menuItem -label (uiRes("m_PolyTextureMenu.kStraightenUVBorder")) -annotation (uiRes("m_PolyTextureMenu.kStraightenUVBorderAnnot")) -i "polyStraightenUVBorder.xpm" -c "performPolyStraightenUV 0"; menuItem -optionBox 1 -annotation (uiRes("m_PolyTextureMenu.kStraightenUVBorderOptionAnnot")) -i "polyStraightenUVBorder.xpm" -c "performPolyStraightenUV 1" -ecr false; menuItem -label (uiRes("m_PolyTextureMenu.kRelaxUVs")) -ecr true -i "polyRelaxUVShell.xpm" -annotation (uiRes("m_PolyTextureMenu.kRelaxUVsAnnot")) -ddc "performPolyUntangleUV relax 1" -dmc "performPolyUntangleUV relax 2" -c "RelaxUVShell" relaxUVShellItem; menuItem -optionBox 1 -i "polyRelaxUVShell.xpm" -annotation (uiRes("m_PolyTextureMenu.kRelaxUVsOptionAnnot")) -ecr false -c "performPolyUntangleUV relax 1" relaxUVShellOptionItem; menuItem -label (uiRes("m_PolyTextureMenu.kUnfoldUVs")) -annotation (uiRes("m_PolyTextureMenu.kUnfoldUVsAnnot")) -echoCommand true -dragMenuCommand "performUnfold 2" -c "performUnfold 0" -i "polyUnfoldUVs.xpm" unfoldUVItem; menuItem -optionBox true -annotation (uiRes("m_PolyTextureMenu.kUnfoldUVsOptionAnnot")) -c "performUnfold 1" -i "polyUnfoldUVs.xpm" unfoldUVOptItem; menuItem -label (uiRes("m_PolyTextureMenu.kLayoutUVs")) -annotation (uiRes("m_PolyTextureMenu.kLayoutUVsAnnot")) -c "performPolyLayoutUV 0" -i "polyLayoutUV.xpm"; menuItem -optionBox 1 -annotation (uiRes("m_PolyTextureMenu.kLayoutUVsOptionAnnot")) -c "performPolyLayoutUV 1" -ecr false -i "polyLayoutUV.xpm"; menuItem -label (uiRes("m_PolyTextureMenu.kGridUVs")) -annotation (uiRes("m_PolyTextureMenu.kGridUVsAnnot")) -c "performPolyGridUV 0" -i "polyGridUV.xpm"; menuItem -optionBox 1 -annotation (uiRes("m_PolyTextureMenu.kGridUVsOptionAnnot")) -c "performPolyGridUV 1" -ecr false -i "polyGridUV.xpm"; menuItem -label (uiRes("m_PolyTextureMenu.kAlignUVs")) -c "performTextureViewAlignUVsOptions false" -annotation (uiRes("m_PolyTextureMenu.kAlignUVsAnnot")) ; menuItem -optionBox true -annotation (uiRes("m_PolyTextureMenu.kAlignUVsOptionAnnot")) -ecr false -c "performTextureViewAlignUVsOptions true"; menuItem -label (uiRes("m_PolyTextureMenu.kWarpImage")) -annotation (uiRes("m_PolyTextureMenu.kWarpImageAnnot")) -echoCommand true -dragMenuCommand "performPolyWarpImage 2" -c "performPolyWarpImage 0" -i "polyWarpImage.xpm" layoutWarpImageItem; menuItem -optionBox true -annotation (uiRes("m_PolyTextureMenu.kWarpImageOptionAnnot")) -c "performPolyWarpImage 1" -i "polyWarpImage.xpm" layoutWarpImageOptItem; } ////////////////////////////////////////////////////////////////////// if ($creator != 1) { menuItem -divider true; menuItem -label (uiRes("m_PolyTextureMenu.kCutUVs")) -ecr true -i "polyMapCut.xpm" -annotation (uiRes("m_PolyTextureMenu.kCutUVsAnnot")) -dmc "polygonUVsMenuItemToShelf \"polyPerformAction polyMapCut e 0\"" -c "CutUVs" cutTextureItem; menuItem -label (uiRes("m_PolyTextureMenu.kSewUVs")) -ecr true -i "polyMapSew.xpm" -annotation (uiRes("m_PolyTextureMenu.kSewUVsAnnot")) -dmc "polygonUVsMenuItemToShelf \"polyPerformAction polyMapSew e 0\"" -c "SewUVs" sewTextureItem; menuItem -label (uiRes("m_PolyTextureMenu.kMoveAndSewUVs")) -annotation (uiRes("m_PolyTextureMenu.kMoveAndSewUVsAnnot")) -c "performPolyMapSewMove 0" -i "polyMoveSew.xpm"; menuItem -optionBox 1 -annotation (uiRes("m_PolyTextureMenu.kMoveAndSewUVsOptionAnnot")) -c "performPolyMapSewMove 1" -ecr false -i "polyMoveSew.xpm"; menuItem -label (uiRes("m_PolyTextureMenu.kMergeUVs")) -annotation (uiRes("m_PolyTextureMenu.kMergeUVsAnnot")) -c "performPolyMergeUV 0" -i "polyMergeUV.xpm" ; menuItem -optionBox 1 -annotation (uiRes("m_PolyTextureMenu.kMergeUVsOptionAnnot")) -c "performPolyMergeUV 1" -ecr false -i "polyMergeUV.xpm" ; menuItem -label (uiRes("m_PolyTextureMenu.kDeleteUVs")) -ecr true -i "polyMapDel.xpm" -annotation (uiRes("m_PolyTextureMenu.kDeleteUVsAnnot")) -dmc "polygonUVsMenuItemToShelf \"polyPerformAction polyMapDel f 0\"" -c "DeleteUVs" delTextureItem; } } }