Пример #1
0
        public static void InstallDCCIntegration()
        {
            var dccExe = GetDCCExe();

            if (string.IsNullOrEmpty(dccExe))
            {
                return;
            }

            string         dccType = System.IO.Path.GetFileNameWithoutExtension(dccExe).ToLower();
            DCCIntegration dccIntegration;

            if (dccType.Equals("maya"))
            {
                // could be Maya or Maya LT
                if (GetDCCName().ToLower().Contains("lt"))
                {
                    dccIntegration = new MayaLTIntegration();
                }
                else
                {
                    dccIntegration = new MayaIntegration();
                }
            }
            else if (dccType.Equals("3dsmax"))
            {
                dccIntegration = new MaxIntegration();
            }
            else
            {
                throw new System.NotImplementedException();
            }

            if (!GetIntegrationFolder(dccIntegration))
            {
                // failed to get integration folder
                return;
            }
            int exitCode = dccIntegration.InstallIntegration(dccExe);

            ShowSuccessDialog(dccIntegration.DccDisplayName, exitCode);
        }
Пример #2
0
 public override int InstallIntegration(string exe)
 {
     return(MaxIntegration.InstallMaxPlugin(exe));
 }