// =========================================================================== // 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. // =========================================================================== // // Description: // Get the list of secondary project file rules // Input: // the value true means it will return the default file rules list. // the value false means it will return the file rules list of the current workspace // global proc string[] np_getSecondaryProjectFileRules(int $bUseDefaults) { string $defaults[] = { // Label file rule name Default (uiRes("m_np_getSecondaryProjectFileRules.kOfflineEdits")), "offlineEdit", "scenes/edits", (uiRes("m_np_getSecondaryProjectFileRules.kPaintTextures")), "3dPaintTextures", "sourceimages/3dPaintTextures", //now file rule should obey isValidObjectName.change file rule name (uiRes("m_np_getSecondaryProjectFileRules.kDepth")), "depth", "renderData/depth", (uiRes("m_np_getSecondaryProjectFileRules.kIPRImages")), "iprImages", "renderData/iprImages", (uiRes("m_np_getSecondaryProjectFileRules.kShaders")), "shaders", "renderData/shaders", (uiRes("m_np_getSecondaryProjectFileRules.kFurFiles")), "furFiles", "renderData/fur/furFiles", (uiRes("m_np_getSecondaryProjectFileRules.kFurImages")), "furImages", "renderData/fur/furImages", (uiRes("m_np_getSecondaryProjectFileRules.kFurEqualizerMap")), "furEqualMap", "renderData/fur/furEqualMap", (uiRes("m_np_getSecondaryProjectFileRules.kFurAttributeMap")), "furAttrMap", "renderData/fur/furAttrMap", (uiRes("m_np_getSecondaryProjectFileRules.kFurShadowMap")), "furShadowMap", "renderData/fur/furShadowMap", (uiRes("m_np_getSecondaryProjectFileRules.kParticleCache")), "particles", "cache/particles", (uiRes("m_np_getSecondaryProjectFileRules.kFluidCache")), "fluidCache", "cache/nCache/fluid", (uiRes("m_np_getSecondaryProjectFileRules.kFileCache")), "fileCache", "cache/nCache", // legal with or without Bifrost loaded. If not defined then some Maya tools to navigate directories are not activated (uiRes("m_np_getSecondaryProjectFileRules.kTimeEditorClips")), "teClipExports", "Time Editor/Clip Exports", // for internal translator (uiRes("m_np_getSecondaryProjectFileRules.kMayaAscii")), "mayaAscii", "scenes", (uiRes("m_np_getSecondaryProjectFileRules.kMayaBinary")), "mayaBinary", "scenes", (uiRes("m_np_getSecondaryProjectFileRules.kMel")), "mel", "scripts", (uiRes("m_np_getSecondaryProjectFileRules.kObj")), "OBJ", "data", (uiRes("m_np_getSecondaryProjectFileRules.kAudio")), "audio", "sound", (uiRes("m_np_getSecondaryProjectFileRules.kMove")), "move", "data", (uiRes("m_np_getSecondaryProjectFileRules.kEPS")), "eps", "data", (uiRes("m_np_getSecondaryProjectFileRules.kIllustrator")), "illustrator", "data" }; if(!$bUseDefaults) { int $listSize = size($defaults); for($i = 0; $i < $listSize; $i += 3) { $defaults[$i+2] = `workspace -q -fre $defaults[$i+1]`; } } return $defaults; }