Beispiel #1
0
 //----------------------------------------------------------------
 public void Clear()
 {
     renderTarget        = renderTarget.none;
     comp                = "";
     rqindex             = 1;
     outputON            = false;
     output              = "";
     OMtemplateON        = false;
     OMtemplateName      = "";
     RStemplateON        = false;
     RStemplateName      = "";
     reuse               = false;
     mem_usageON         = false;
     image_cache_percent = 100;
     max_mem_percent     = 100;
     start_frameON       = false;
     start_frame         = 0;
     end_frameON         = false;
     end_frame           = 0;
     incrementON         = false;
     increment           = 1;
     logON               = false;
     log                      = "";
     sound_flag               = false;
     verboseOn                = false;
     verbose_flag             = verboseFlag.ERRORS_AND_PROGRESS;
     closeOn                  = false;
     close                    = closeFlag.DO_NOT_SAVE_CHANGES;
     mpOn                     = false;
     mp_enable_flag           = mp_enableFlag.ZERO;
     continueOnMissingFootage = false;
 }
Beispiel #2
0
 //----------------------------------------------------------------
 public void Copy(aerenderOpt op, bool filenameNotCopy)
 {
     if (filenameNotCopy == false)
     {
         _filename = op._filename;
     }
     renderTarget        = op.renderTarget;
     comp                = op.comp;
     rqindex             = op.rqindex;
     outputON            = op.outputON;
     output              = op.output;
     OMtemplateON        = op.OMtemplateON;
     OMtemplateName      = op.OMtemplateName;
     RStemplateON        = op.RStemplateON;
     RStemplateName      = op.RStemplateName;
     reuse               = op.reuse;
     mem_usageON         = op.mem_usageON;
     image_cache_percent = op.image_cache_percent;
     max_mem_percent     = op.max_mem_percent;
     start_frameON       = op.start_frameON;
     start_frame         = op.start_frame;
     end_frameON         = op.end_frameON;
     end_frame           = op.end_frame;
     incrementON         = op.incrementON;
     increment           = op.increment;
     logON               = op.logON;
     log                      = op.log;
     sound_flag               = op.sound_flag;
     verboseOn                = op.verboseOn;
     verbose_flag             = op.verbose_flag;
     closeOn                  = op.closeOn;
     close                    = op.close;
     mpOn                     = op.mpOn;
     mp_enable_flag           = op.mp_enable_flag;
     continueOnMissingFootage = op.continueOnMissingFootage;
 }
Beispiel #3
0
        //----------------------------------------------------------------
        public bool fromLine(string line)
        {
            string[] lines = WQSplit(line);
            if (lines.Length < 30)
            {
                return(false);
            }
            if (lines[0].Trim().IndexOf("#Mami") == 0)
            {
                return(false);
            }
            ClearALL();
            bool b = false;
            int  v = 0;

            _filename = lines[0];
            if (File.Exists(_filename) == false)
            {
                return(false);
            }
            if (int.TryParse(lines[1], out v) == true)
            {
                renderTarget = (renderTarget)v;
            }
            comp = lines[2];
            if (int.TryParse(lines[3], out v) == true)
            {
                rqindex = v;
            }
            if (bool.TryParse(lines[4], out b) == true)
            {
                outputON = b;
            }
            output = lines[5];
            if (bool.TryParse(lines[6], out b) == true)
            {
                OMtemplateON = b;
            }
            OMtemplateName = lines[7];
            if (bool.TryParse(lines[8], out b) == true)
            {
                RStemplateON = b;
            }
            RStemplateName = lines[9];
            if (bool.TryParse(lines[10], out b) == true)
            {
                reuse = b;
            }
            if (bool.TryParse(lines[11], out b) == true)
            {
                mem_usageON = b;
            }
            if (int.TryParse(lines[12], out v) == true)
            {
                image_cache_percent = v;
            }
            if (int.TryParse(lines[13], out v) == true)
            {
                max_mem_percent = v;
            }
            if (bool.TryParse(lines[14], out b) == true)
            {
                start_frameON = b;
            }
            if (int.TryParse(lines[15], out v) == true)
            {
                start_frame = v;
            }
            if (bool.TryParse(lines[16], out b) == true)
            {
                end_frameON = b;
            }
            if (int.TryParse(lines[17], out v) == true)
            {
                end_frame = v;
            }
            if (bool.TryParse(lines[18], out b) == true)
            {
                incrementON = b;
            }
            if (int.TryParse(lines[19], out v) == true)
            {
                increment = v;
            }
            if (bool.TryParse(lines[20], out b) == true)
            {
                logON = b;
            }
            log = lines[21];
            if (bool.TryParse(lines[22], out b) == true)
            {
                sound_flag = b;
            }
            if (bool.TryParse(lines[23], out b) == true)
            {
                verboseOn = b;
            }
            if (int.TryParse(lines[24], out v) == true)
            {
                verbose_flag = (verboseFlag)v;
            }
            if (bool.TryParse(lines[25], out b) == true)
            {
                closeOn = b;
            }
            if (int.TryParse(lines[26], out v) == true)
            {
                close = (closeFlag)v;
            }
            if (bool.TryParse(lines[27], out b) == true)
            {
                mpOn = b;
            }
            if (int.TryParse(lines[28], out v) == true)
            {
                mp_enable_flag = (mp_enableFlag)v;
            }
            if (bool.TryParse(lines[29], out b) == true)
            {
                continueOnMissingFootage = b;
            }

            return(true);
        }