// =========================================================================== // 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: Jan 2000 // // Description: // // All optionVars needed for the init*.mel files and are // not part of the Preferences window should be set in this file. // // optionVars for the Preferences window MUST be set in // the file createPreferencesOptVars.mel // // You can use these values in any of the init* files // without having to check to see if they are set yet. // // Anything set in here and used not just as an optionVar // should be synced up in syncGlobalOptVars.mel to make sure // there is a valid save. // { // // Stuff with no UI to set them // optionVar -iv mainWindowDisable false; optionVar -iv isMarkingMenuOn true; optionVar -iv journalIsOn true; optionVar -iv refreshMode 0; optionVar -iv searchFieldDelay 1000; // // UI Stuff that is not in the Preferences window // optionVar -iv stackTraceIsOn false; optionVar -iv showLineNumbersIsOn true; optionVar -iv echoAllLines false; optionVar -iv InExpertUIMode false; optionVar -iv melDuplicateVariableWarnings on; optionVar -iv uiPrecision 4; // default floating point precision optionVar -iv forceUIPrecision 0; // override precision of individual controls and use uiPrecision optionVar -iv hideNoFPSFramerate 1; // should we hide milliseconds, seconds, minutes and hours ? optionVar -iv timeSliderCustomDrawHeight 2; // // Animation Preferences // optionVar -iv "timeSliderAnimLayerWeight" 1; // by default, batch render messages is on for all command reporters optionVar -iv batchRenderMessagesVerbosity true; optionVar -iv polyAutoShowColorPerVertex true; optionVar -iv AEpopupWhenCreatingShaders true; optionVar -intValue polyKeepFacetsGrouped true; optionVar -intValue bump2dUseTangentSpaceNormalsByDefault false; optionVar -intValue commandExecuterShowLineNumbers true; optionVar -intValue commandExecuterTabsForIndent false; optionVar -intValue commandExecuterSpacesPerTab 4; optionVar -intValue commandExecuterAutoCloseBraces true; // // Hot Box // optionVar -sv hotBoxDisplayStyle "-dh"; optionVar -iv hotBoxTransparencyLevel 25; optionVar -iv isHotBoxShowAll true -intValue isHotBoxAnimationRowVisible true -intValue isHotBoxPolygonsRowVisible false -intValue isHotBoxSurfacesRowVisible false -intValue isHotBoxDynamicsRowVisible false -intValue isHotBoxRenderingRowVisible false -intValue isHotBoxClothRowVisible false -intValue isHotBoxLiveRowVisible false -intValue isHotBoxCommonRowVisible true -intValue isHotBoxPaneSpecificRowVisible true -intValue isHotBoxRmbPopupsOn false -intValue showCustomMenuSetsMenusInHotBox true; // // Channel Box // optionVar -iv channelsLongName 1; // 0=short, 1=nice, 2=long optionVar -iv channelsPrecision 3; optionVar -iv channelsFieldWidth 75; // // Layers (Render and Display) // optionVar -iv renderLayerMerge false; optionVar -iv currentDisplayLayerActive false; optionVar -iv displayLayerCurrent false; // // Shelves // optionVar -sv shelfName1 "Shelf1" -sv shelfFile1 "shelf_Shelf1" -iv shelfLoad1 false -sv shelfName2 "Shelf2" -sv shelfFile2 "shelf_Shelf2" -iv shelfLoad2 false -sv shelfItemSize "Small" -sv shelfItemStyle "iconOnly" -iv isShelfVisible true -iv isShelfSave true -iv isShelfLoad true -iv numShelves 2; // // Poly Edge Split // optionVar -iv "PolySelectEditSplitRingAbsolute" false; // // Primitive Creation // optionVar -iv "createPolyPrimitiveAsTool" false; optionVar -iv "polyPrimitiveAsToolExitOnComplete" true; optionVar -iv "createNurbsPrimitiveAsTool" false; optionVar -iv "nurbsPrimitiveAsToolExitOnComplete" true; //Polygon Display Settings optionVar -iv "polyDisplayLimitedToSelectedOV" true; optionVar -iv "polyDisplayDisplayBackfaceCulling" false; optionVar -iv "polyDisplayWireBackfaceCulling" false; optionVar -iv "polyDisplayHardEdgeBackfaceCulling" false; //Symmetric Modelling Settings optionVar -iv symmetricModellingOption 0; optionVar -sv symmetricModellingAxisOption "x"; optionVar -fv symmetricModellingToleranceValue 0.1; optionVar -sv symmetricModellingSpaceOption "object"; optionVar -iv symmetricModellingSeamOption true; optionVar -sv symmetricModellingSeamFalloffCurve "0,1,2,1,0,2"; optionVar -fv symmetricModellingSeamTolerance 0.01; optionVar -iv symmetricModellingAllowPartial 1; optionVar -iv trsManipsPreserveUvs 0; optionVar -iv trsManipsPreserveChildPosition 0; optionVar -iv trsManipsTweakMode 0; optionVar -iv ShowExtrudeAttributeViewportSliders 1; // Default file types for file operations optionVar -sv defaultFileOpenType (uiRes("m_fileDialogFilterTypes.kMayaScenes")); optionVar -sv defaultFileReferenceType (uiRes("m_fileDialogFilterTypes.kAllFiles")); optionVar -sv defaultFileImportType (uiRes("m_fileDialogFilterTypes.kAllFiles")); optionVar -sv defaultFileSaveType ("mayaBinary"); optionVar -sv defaultFileExportAllType ("mayaBinary"); optionVar -sv defaultFileExportActiveType ("mayaBinary"); optionVar -sv defaultFileExportSelectionAsReferenceType ("mayaBinary"); optionVar -sv defaultFileExportEditsType ("mayaBinary"); optionVar -sv defaultFileCreateReferenceType (uiRes("m_fileDialogFilterTypes.kAllFiles")); // Default is the pencil optionVar -iv greasePencilBrushType 1; // Default brush size and opacity. // NOTE: these numbers are replicated in the TgreasePencilArtisanOperator.cpp // file. Any changes here should also be mirrored in the .cpp file. optionVar -fv greasePencilBrushPencilRadius 0.3; optionVar -fv greasePencilBrushMarkerRadius 0.7; optionVar -fv greasePencilBrushSoftPencilRadius 0.3; optionVar -fv greasePencilBrushEraserRadius 2.0; // optionVar -fv greasePencilBrushPencilOpacity 1.0; optionVar -fv greasePencilBrushMarkerOpacity 0.8; optionVar -fv greasePencilBrushSoftPencilOpacity 0.6; optionVar -iv "assemblyDefinitionAddLocator" 1; optionVar -iv "assemblyLoadRepOnCreation" 1; optionVar -iv "assemblyDefinitionShowUsageMsg" 1; // Enable/disable MAYA_REAL_WORLD_SIZE optionVar -iv enableRealWorldSize ( `getenv "MAYA_REAL_WORLD_SIZE"` != ""); optionVar -sv currentHotkeySet ("Maya_Default"); optionVar -iv hotkeyEdAppCmdColWidth 210; optionVar -iv hotkeyEdRunCmdColWidth 145; // Just need to save the first two columns' width of the treeview, the last column takes the rest space. // // Asset Browser // optionVar -clearArray "contentBrowserThumbnailSizes"; optionVar -iva "contentBrowserThumbnailSizes" 64 -iva "contentBrowserThumbnailSizes" 128 -iva "contentBrowserThumbnailSizes" 256 -iva "contentBrowserThumbnailSizes" 512; optionVar -sv "contentBrowserFilterExtensions" "icon|pyc|pyo"; // // workspaces initial sizes for controls of Narrow & Wide width // optionVar -iv "workspacesNarrowPanelInitialWidth" 260; optionVar -iv "workspacesNarrowPanelInitialHeight" 800; optionVar -iv "workspacesWidePanelInitialWidth" 460; optionVar -iv "workspacesWidePanelInitialHeight" 800; // workspaces docking delay time (in milliseconds) optionVar -iv "workspacesDockingDelayTime" 300; // workspaces full screen & zoom-in modes. optionVar -iv "workspacesInFullScreenUIMode" false; optionVar -iv "workspacesInZoomInUIMode" false; // workspaces lock feature. optionVar -iv "workspacesLockDocking" false; optionVar -iv "HypershadeGridSnap" false; optionVar -iv "HypershadeGridVisibility" false; }