public static void BeginImport(string filePath, string customPath)
        {
            //Custom path support
            CCustomPath customPathObj = new CCustomPath(customPath);

            if (customPath != null && customPath != "")
            {
                string tPath = customPathObj.ProcessFinalPath(filePath);
                if (tPath != null)
                {
                    filePath = tPath;
                }
            }


            switch (GetConversionType(filePath))
            {
            case "texture":
                new CTextureTiffConvert(filePath);
                break;

            case "texture_magick":
                new CTextureMagick(filePath);
                break;

            case "mesh":
                Framework.CRYENGINE_RC_Call(filePath + " /refresh");

                string newFilePath = Path.GetDirectoryName(filePath) + @"\" + Path.GetFileNameWithoutExtension(filePath) + ".cgf";
                if (File.Exists(newFilePath))
                {
                    Framework.Log("File " + Path.GetFileName(filePath) + " succefully send to the Ressource Compiler at " + newFilePath);
                }
                else
                {
                    Framework.ShowError("The Resource Compiler was unable to process the file. Check rc_log.log for more details.");
                }

                break;
            }

            //Custom path call delete temp file
            if (customPath != null)
            {
                customPathObj.DeleteTempFile();
            }
        }
        public static void BeginImport(string filePath, string customPath)
        {
            //Custom path support
            CCustomPath customPathObj = new CCustomPath(customPath);

            if (customPath != null && customPath != "")
            {
                string tPath = customPathObj.ProcessFinalPath(filePath);
                if (tPath != null)
                    filePath = tPath;
            }

            switch (GetConversionType(filePath))
            {
                case "texture":
                    new CTextureTiffConvert(filePath);
                    break;

                case "texture_magick":
                    new CTextureMagick(filePath);
                    break;

                case "mesh":
                    Framework.CRYENGINE_RC_Call(filePath + " /refresh");

                    string newFilePath = Path.GetDirectoryName(filePath) + @"\" + Path.GetFileNameWithoutExtension(filePath) + ".cgf";
                    if (File.Exists(newFilePath))
                    {
                        Framework.Log("File " + Path.GetFileName(filePath) + " succefully send to the Ressource Compiler at " + newFilePath);
                    }
                    else
                    {
                        Framework.ShowError("The Resource Compiler was unable to process the file. Check rc_log.log for more details.");
                    }

                    break;
            }

            //Custom path call delete temp file
            if (customPath != null)
                customPathObj.DeleteTempFile();
        }