AoMEngineLibrary.AMP.GrnMax.Export C# (CSharp) Method

Export() public method

public Export ( ) : void
return void
        public void Export()
        {
            Maxscript.Command("exportStartTime = timeStamp()");
            this.Clear();

            Maxscript.Command("ExportGrnData()");

            this.ExportSkeleton();

            if (this.ExportSetting.HasFlag(GrnExportSetting.Model))
            {
                int meshCount = Maxscript.QueryInteger("grnMeshes.count");
                for (int i = 0; i < meshCount; ++i)
                {
                    this.File.Meshes.Add(new GrnMesh(this.File));
                    this.ExportMesh(i);
                }
            }

            if (this.ExportSetting.HasFlag(GrnExportSetting.Animation))
            {
                this.ExportAnimation();
                if (this.File.Animation.Duration == 0f)
                {
                    this.File.Animation.Duration = 1f;
                }
                this.File.Animation.TimeStep = 1f / 60f;
            }
            else
            {
                this.File.Animation.Duration = 0f;
                this.File.Animation.TimeStep = 1f;
            }

            Maxscript.Command("exportEndTime = timeStamp()");
            Maxscript.Format("Export took % seconds\n", "((exportEndTime - exportStartTime) / 1000.0)");
        }