private void renderSegmentButton_Click(object sender, EventArgs e)
{
Process p = new Process();
p.StartInfo.WorkingDirectory = outFolderPath;
p.StartInfo.FileName = "blender";
p.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
//p.StartInfo.Arguments = String.Format("-b \"{0}\" -E {1} -s {2} -e {3} {4} -a ",
p.StartInfo.Arguments = String.Format("-b \"{0}\" -E {1} -s {2} -e {3} -a ",
blendFilePathTextBox.Text,
rendererComboBox.Text,
startFrameNumericUpDown.Value,
endFrameNumericUpDown.Value
);
Trace.WriteLine( String.Format( "CEW: {0}", p.StartInfo.Arguments ) );
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(chunk_Finished);
p.Start();
runningRenderProcessCount++;
}