// MicroAVS Application: 2.00
// Date: 9 September 1997 13:58:17
// DataNames: 1 face_fr_geo
// Methods: 1 1
// Actives: 0	
// Comments:  
// End
MicroAVS.MicroAVS MicroAVS {
   MicroAVS.MAviewer3D MAviewer {
      objs_in => {
         MAviewerEditors.label_objs,<-.face_fr_geo.obj};
      viewer_params {
         top_props {
            col = {1.,1.,0.};
            material = {0.,0.29,1.,
30.};
            spec_col = {1.,1.,0.};
         };
         Light1 {
            type = "Directional";
         };
         props_vis = 0;
         auto_norm = 0;
         top_xform {
            mat = {
               1.,0.,0.,0.,0.,1.,8.22269e-008,0.,0.,-8.22269e-008,1.,0.,
0.,0.,0.,1.
            };
            center = {-0.0610499,0.12136,
5.48686};
         };
      };
      MAviewer3Editors {
         PropsEditor {
            Params {
               props_editor_params {
                  ambient = 0.;
                  diffuse = 0.29;
                  specular = 1.;
                  spec_blue = 0.;
                  gloss = 30.;
               };
            };
         };
      };
   };
   MicroAVS.MAgeomReader face_fr_geo {
      filename = "$XP_PATH<0>/data/geom/face_fr.geo";
   };
// For Demo Script 
   MicroAVS.MAdemo_templ Demo {
      GMOD.parse_v parse_rotx {
         trigger =><-.demo_start;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewerEditors.TransformEditor.Params.
                        transform_editor_params;
      };
      GMOD.parse_v parse_roty {
         trigger =0;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewerEditors.TransformEditor.Params.
                        transform_editor_params;
      };
      parse_roty parse_rotz;
      GMOD.parse_v parse_props {
         trigger =0;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewer3Editors.PropsEditor.Params.
                        props_editor_params;
      };
      GMOD.parse_v parse_mode_point {
         trigger =0;
         active =>trigger;
         on_inst = 0;
         relative => <-.<-.MAviewer.MAviewer3Editors.ModeEditor.Params.
                        mode_editor_params;
      };
      parse_mode_point parse_mode_line;
      parse_mode_point parse_mode_nolight;
      parse_mode_point parse_mode_flat;
      parse_mode_point parse_mode_linegouraud;
      parse_mode_point parse_mode_inherit;

      MicroAVS.MAdemo_sleep sleep1 {time=2; next = "parse_mode_line";};
      MicroAVS.MAdemo_sleep sleep2 {time=2; next = "parse_mode_nolight";};
      MicroAVS.MAdemo_sleep sleep3 {time=2; next = "parse_mode_flat";};
      MicroAVS.MAdemo_sleep sleep4 {time=2; next = "parse_mode_linegouraud";};
      MicroAVS.MAdemo_sleep sleep5 {time=2; next = "parse_mode_inherit";};
   };
};
MicroAVS.MAviewer.viewer_params.auto_norm = 0;// Auto Normalize Off
MicroAVS.Demo.parse_rotx {
   v_commands = "$push -usr\n Demo.status = 1; $pop\n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 $push -usr\n x_rot = 15; $pop \n
                 Demo.parse_props.trigger = 1;
                 Demo.parse_rotx.active = 0;
                 ";
};
MicroAVS.Demo.parse_props {
   v_commands =>
    "$push\n MAviewer.MAviewer3Editors.PropsEditor.UI.mod_panel.x="+Demo.x+";"
   +"MAviewer.MAviewer3Editors.PropsEditor.UI.mod_panel.y ="+Demo.y+ ";$pop\n"
   +"$push\n MAviewer.viewer_params.props_vis=1; $pop\n"
   +"$push\n reset = 1; $pop\n"
   +"$push\n red=1.0;green=0.8;blue=1.0; $pop\n"
   +"$push\n red=1.0;green=0.6;blue=1.0; $pop\n"
   +"$push\n red=1.0;green=0.4;blue=1.0; $pop\n"
   +"$push\n red=1.0;green=0.2;blue=1.0; $pop\n"
   +"$push\n red=1.0;green=0.0;blue=1.0; $pop\n"
   +"$push\n red=0.8;green=0.2;blue=0.8; $pop\n"
   +"$push\n red=0.6;green=0.4;blue=0.6; $pop\n"
   +"$push\n red=0.4;green=0.6;blue=0.4; $pop\n"
   +"$push\n red=0.2;green=0.8;blue=0.2; $pop\n"
   +"$push\n red=0.0;green=1.0;blue=0.0; $pop\n"
   +"$push\n red=0.2;green=0.8;blue=0.0; $pop\n"
   +"$push\n red=0.4;green=0.6;blue=0.0; $pop\n"
   +"$push\n red=0.6;green=0.4;blue=0.0; $pop\n"
   +"$push\n red=0.8;green=0.2;blue=0.0; $pop\n"
   +"$push\n red=1.0;green=0.0;blue=0.0; $pop\n"
   +"$push\n transparency = 1.0; $pop\n"
   +"$push\n transparency = 0.9; $pop\n"
   +"$push\n transparency = 0.8; $pop\n"
   +"$push\n transparency = 0.7; $pop\n"
   +"$push\n transparency = 0.6; $pop\n"
   +"$push\n transparency = 0.5; $pop\n"
   +"$push\n transparency = 0.4; $pop\n"
   +"$push\n transparency = 0.3; $pop\n"
   +"$push\n transparency = 0.2; $pop\n"
   +"$push\n transparency = 0.1; $pop\n"
   +"$push\n transparency = 0.0; $pop\n"
   +"$push\n transparency = 0.1; $pop\n"
   +"$push\n transparency = 0.2; $pop\n"
   +"$push\n transparency = 0.25; $pop\n"
   +"$push\n transparency = 0.3; $pop\n"
   +"$push\n transparency = 0.35; $pop\n"
   +"$push\n transparency = 0.4; $pop\n"
   +"$push\n transparency = 0.45; $pop\n"
   +"$push\n transparency = 0.5; $pop\n"
   +"$push\n transparency = 0.55; $pop\n"
   +"$push\n transparency = 0.6; $pop\n"
   +"$push\n transparency = 0.65; $pop\n"
   +"$push\n transparency = 0.7; $pop\n"
   +"$push\n transparency = 0.75; $pop\n"
   +"$push\n transparency = 0.8; $pop\n"
   +"$push\n transparency = 0.85; $pop\n"
   +"$push\n transparency = 0.9; $pop\n"
   +"$push\n transparency = 0.95; $pop\n"
   +"$push\n transparency = 1.0; $pop\n"
   +"$push\n red=1.0;green=1.0;blue=0.0; $pop\n"
   +"$push\n ambient = 0.; $pop\n"
   +"$push\n diffuse = 0.29; $pop\n"
   +"$push\n specular = 1.; $pop\n"
   +"$push\n spec_blue = 0.; $pop\n"
   +"$push\n gloss = 30.; $pop\n"
   +"$push\n MAviewer.viewer_params.props_vis=0; $pop\n"
   +"Demo.parse_props.active = 0;"
   +"Demo.parse_roty.trigger = 1;"
     ;
};
MicroAVS.Demo.parse_roty {
   v_commands = "$push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 $push -usr\n y_rot = 15; $pop \n
                 Demo.parse_roty.active = 0;
                 Demo.parse_mode_point.trigger = 1;
                 ";
};
MicroAVS.Demo.parse_mode_point {
   v_commands =>"$push\n MAviewer.MAviewer3Editors.ModeEditor.UI.mod_panel.x=>"
                 + Demo.x + ";
                 MAviewer.MAviewer3Editors.ModeEditor.UI.mod_panel.y =>"
                 + Demo.y + ";$pop\n
                 $push\n MAviewer.viewer_params.mode_vis=1; $pop\n
                 $push\n index=1; $pop\n
                 $push\n Demo.parse_mode_point.trigger = 0; $pop\n
                 $push\n Demo.sleep1.trigger = 1; $pop\n
                ";
};
MicroAVS.Demo.parse_mode_line {
   v_commands =>"$push \n index = 2; $pop\n
                 $push\n Demo.sleep2.trigger = 1; $pop\n
                ";
};
MicroAVS.Demo.parse_mode_nolight {
   v_commands =>"$push \n index = 3; $pop\n
                 $push\n Demo.sleep3.trigger = 1; $pop\n
                ";
};
MicroAVS.Demo.parse_mode_flat {
   v_commands =>"$push \n index = 4; $pop\n
                 $push\n Demo.sleep4.trigger = 1; $pop\n
                ";
};
MicroAVS.Demo.parse_mode_linegouraud {
   v_commands =>"$push \n index = 7; $pop\n
                 $push\n Demo.parse_rotz.trigger = 1; $pop\n
                ";
};
MicroAVS.Demo.parse_rotz {
   v_commands = "$push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n z_rot = 15; $pop \n
                 $push -usr\n Demo.parse_rotz.active = 0; $pop\n
                 $push\n MAviewer.viewer_params.mode_vis=0; $pop\n
                 $push\n Demo.sleep5.trigger = 1; $pop\n
                 ";
};
MicroAVS.Demo.parse_mode_inherit {
   v_commands =>"$push \n index = 9; $pop\n
                 $push -usr\n Demo.status = 0; $pop\n
                ";
};
