Exemple #1
0
		public static string GetToolAssetPath(HEU_ShelfToolData tool, string inPath)
		{
			if (string.IsNullOrEmpty(inPath) || inPath.Equals("."))
			{
				// Use same path as where json file was
				//inPath = shelf._shelfPath + HEU_Platform.DirectorySeparatorStr + 

				if (!string.IsNullOrEmpty(tool._jsonPath))
				{
					string filePath = tool._jsonPath.Replace(".json", "");
					inPath = HEU_HAPIUtility.FindHoudiniAssetFileInPathWithExt(filePath);
				}
			}

			return inPath;
		}
Exemple #2
0
		public static string GetToolAssetPath(HEU_ShelfToolData tool, string inPath)
		{
			if (string.IsNullOrEmpty(inPath) || inPath.Equals("."))
			{
				// Use same path as where json file was
				if (!string.IsNullOrEmpty(tool._jsonPath))
				{
					string filePath = tool._jsonPath.Replace(".json", "");
					inPath = HEU_HAPIUtility.FindHoudiniAssetFileInPathWithExt(filePath);
				}
			}

			// Replace the HFS path with <HFS>
			if (!string.IsNullOrEmpty(inPath))
			{
				string hpath = HEU_Platform.GetHoudiniEnginePath();
				if(inPath.StartsWith(hpath))
				{
					inPath = inPath.Replace(hpath, HEU_Defines.HEU_PATH_KEY_HFS);
				}
			}

			return inPath;
		}