注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

oxeyeball杂谈

CG技术,动慢等个人喜欢的一切

 
 
 

日志

 
 
关于我

不要穿着拖鞋去扔垃圾哦

网易考拉推荐

蹩脚的一个mel  

2007-09-22 15:41:18|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

 

原来博客可以发这么长的东西


////Render seting variable////////////////////////////////////////////////////////


string $OXErenderer;


 
string $OXE_RIBpach;

string $OXE_cameraShape;

int $OXE_Padding;


////BakeLayer variable////////////////////////////////////////////////////////
 
int $OXE_BL_Enable;
 
string $OXE_BakeOccLayer;

float $OXE_BakeOcc_Shading_Rate;

int $OXE_BakeOcc_Sample;


////RenderLayer variable//////////////////////////////////////////////////////

int $OXE_RL_Enable;

string $OXE_RenderLayer;

////Write bat variable////////////////////////////////////////////////////////

int $OXE_launch_Render;

string $OXE_Bat_file_name;


////create OXE_LiquidLayerBake_packet/////////////////////////////

   if( `objExists OXE_LiquidLayerBake_packet` )
   {
        $OXErenderer=`getAttr OXE_LiquidLayerBake_packet.renderer`;
    $OXE_RIBpach=`getAttr OXE_LiquidLayerBake_packet.RIBpach`;
    $OXE_cameraShape=`getAttr OXE_LiquidLayerBake_packet.cameraShape`;
    $OXE_Padding=`getAttr OXE_LiquidLayerBake_packet.Padding`;
    
    //////////////////////////////////////////////////////////////////////////
    
    $OXE_BL_Enable=`getAttr OXE_LiquidLayerBake_packet.BL_Enable`;
    $OXE_BakeOccLayer=`getAttr OXE_LiquidLayerBake_packet.BakeOccLayer`;
    $OXE_BakeOcc_Shading_Rate=`getAttr OXE_LiquidLayerBake_packet.BakeOcc_Shading_Rate`;
    $OXE_BakeOcc_Sample=`getAttr OXE_LiquidLayerBake_packet.BakeOcc_Sample`;
    
    /////////////////////////////////////////////////////////////////////////////
    
    $OXE_RL_Enable=`getAttr OXE_LiquidLayerBake_packet.RL_Enable`;
    $OXE_RenderLayer=`getAttr OXE_LiquidLayerBake_packet.RenderLayer`;
    
    ////////////////////////////////////////////////////////////////////////////
    
    $OXE_launch_Render=`getAttr OXE_LiquidLayerBake_packet.launch_Render`;
    $OXE_Bat_file_name=`getAttr OXE_LiquidLayerBake_packet.BatFileName`;
        }
   
 
  else
     
   {
    createNode "expression" -n OXE_LiquidLayerBake_packet;
   
   
   //////////////////////////////////////////////////////////////////////////////////
   
   addAttr -ln renderer -dt "string" OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.renderer;
   setAttr -type "string" OXE_LiquidLayerBake_packet.renderer "rndr";
    $OXErenderer=`getAttr OXE_LiquidLayerBake_packet.renderer`;
   
   addAttr -ln RIBpach -dt "string" OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.RIBpach;
   setAttr -type "string" OXE_LiquidLayerBake_packet.RIBpach "$PDIRrib";
    $OXE_RIBpach=`getAttr OXE_LiquidLayerBake_packet.RIBpach`;
    
   addAttr -ln cameraShape -dt "string" OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.cameraShape;
   setAttr -type "string" OXE_LiquidLayerBake_packet.cameraShape "";
    $OXE_cameraShape=`getAttr OXE_LiquidLayerBake_packet.cameraShape`;

   addAttr -ln Padding -at long OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.Padding;
   setAttr "OXE_LiquidLayerBake_packet.Padding" 4;
    $OXE_Padding=`getAttr OXE_LiquidLayerBake_packet.Padding`;
   
   /////////////////////////////////////////////////////////////////////////////////
    
   addAttr -ln BL_Enable -at bool  OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.BL_Enable;
   setAttr "OXE_LiquidLayerBake_packet.BL_Enable" 0;
       $OXE_BL_Enable=`getAttr OXE_LiquidLayerBake_packet.BL_Enable`;
    
   addAttr -ln BakeOccLayer -dt "string" OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.BakeOccLayer;
   setAttr -type "string" OXE_LiquidLayerBake_packet.BakeOccLayer "";
    $OXE_BakeOccLayer=`getAttr OXE_LiquidLayerBake_packet.BakeOccLayer`;
    
      addAttr -ln BakeOcc_Shading_Rate -at double  OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.BakeOcc_Shading_Rate;
   setAttr "OXE_LiquidLayerBake_packet.BakeOcc_Shading_Rate" 50;
       $OXE_BakeOcc_Shading_Rate=`getAttr OXE_LiquidLayerBake_packet.BakeOcc_Shading_Rate`;
    
   addAttr -ln BakeOcc_Sample -at long OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.BakeOcc_Sample;
   setAttr "OXE_LiquidLayerBake_packet.BakeOcc_Sample" 1;
    $OXE_BakeOcc_Sample=`getAttr OXE_LiquidLayerBake_packet.BakeOcc_Sample`;
    
   ///////////////////////////////////////////////////////////////////////////////////////////
    
   addAttr -ln RL_Enable -at bool  OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.RL_Enable;
   setAttr "OXE_LiquidLayerBake_packet.RL_Enable" 0;
       $OXE_RL_Enable=`getAttr OXE_LiquidLayerBake_packet.RL_Enable`;    
    
   addAttr -ln RenderLayer -dt "string" OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.RenderLayer;
   setAttr -type "string" OXE_LiquidLayerBake_packet.RenderLayer "";
    $OXE_RenderLayer=`getAttr OXE_LiquidLayerBake_packet.RenderLayer`;
    
      ///////////////////////////////////////////////////////////////////////////////////////////
    
   addAttr -ln launch_Render -at bool  OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.launch_Render;
   setAttr "OXE_LiquidLayerBake_packet.launch_Render" 0;
       $OXE_launch_Render=`getAttr OXE_LiquidLayerBake_packet.launch_Render`; 

   addAttr -ln BatFileName -dt "string" OXE_LiquidLayerBake_packet;
            setAttr -e -keyable true OXE_LiquidLayerBake_packet.BatFileName;
   setAttr -type "string" OXE_LiquidLayerBake_packet.BatFileName "";
    $OXE_Bat_file_name=`getAttr OXE_LiquidLayerBake_packet.BatFileName`;

    
    
    
    
       }

 

 

 

 

////////////////////////////////////////////////////////////////////////////////

 

//////////////////////////////////////////////////////////////////////////////////
////////////////create window

if (`window -exists OXE_PBOcc_UI`)

 deleteUI OXE_PBOcc_UI;


window -t "OXE_PBOcc"
    -wh 200 320
    -mxb 0
    OXE_PBOcc_UI;


columnLayout -adj 1 PBOcc_column;


////RenderSeting//////////////////////////////////////////////////////////
    frameLayout -l "PBOccRenderSeting"
               -cll 0
       -cl 1
       -bs "etchedIn"
       -mh 2
       -mw 2
       PBOccRenderSeting_frame;
 
 
  rowColumnLayout -numberOfColumns 1
               -columnWidth 1 300 ;
 
                 textFieldGrp -l "Renderer"
               -tx $OXErenderer
         -cc "string $OXErenderer=`textFieldGrp -q -tx OXE_Renderer_set`; \n OXE_set_renderer($OXErenderer)"
         OXE_Renderer_set;
    
                 textFieldGrp -l "RIBpach"
               -tx $OXE_RIBpach
               -cc "string $OXE_RIBpach=`textFieldGrp -q -tx OXE_RIBpach`; \n OXE_set_RIBpach($OXE_RIBpach)"
               OXE_RIBpach;
    
                 textFieldGrp -l "cameraShape"
               -tx $OXE_cameraShape
               -cc "string $OXE_cameraShape=`textFieldGrp -q -tx OXE_cameraShape`; \n OXE_set_cameraShape($OXE_cameraShape)"
               OXE_cameraShape;
    
                 intFieldGrp  -l "Padding"
               -v1 $OXE_Padding
         -cc "int $OXE_Padding=`intFieldGrp -q -v1 OXE_Padding`; \n OXE_set_Padding ($OXE_Padding);"
         OXE_Padding;
    
  setParent PBOcc_column;
 
////BakeLayer////////////////////////////////////////////////////////////////
 
    frameLayout -l "PBOcc_OccBakeLayer"
               -cll 0
       -cl 1
       -bs "etchedIn"
       -mh 2
       -mw 2
       PBOcc_BakeLayer_frame;

 
  rowColumnLayout -numberOfColumns 1
               -columnWidth 1 300 ;
                 checkBox -l "Enable Bake"
           -v $OXE_BL_Enable
           -ofc "int $OXE_BL_Enable=0; \n OXE_set_BL_Enable($OXE_BL_Enable)"
           -onc "int $OXE_BL_Enable=1; \n OXE_set_BL_Enable($OXE_BL_Enable)"
           OXE_BakeLayer_Enable;
    
                 textFieldGrp -l "BakeOccLayer_Name"
               -tx $OXE_BakeOccLayer
               -cc "string $OXE_BakeOccLayer=`textFieldGrp -q -tx OXE_BakeOccLayer_Name`; \n OXE_set_BakeOccLayer($OXE_BakeOccLayer)"
               OXE_BakeOccLayer_Name;
    
                 floatFieldGrp  -l "Bake_Shading_Rate"
                 -v1 $OXE_BakeOcc_Shading_Rate
        -cc "float $OXE_BakeOcc_Shading_Rate=`floatFieldGrp -q -v1 BakeOcc_Shading_Rate`; \n OXE_set_BakeOcc_Shading_Rate($OXE_BakeOcc_Shading_Rate)"
        BakeOcc_Shading_Rate;
    
     intFieldGrp  -l "Bake_Sample"
               -v1 $OXE_BakeOcc_Sample
         -cc "int $OXE_BakeOcc_Sample=`intFieldGrp -q -v1 BakeOcc_Sample`; \n OXE_set_BakeOcc_Sample($OXE_BakeOcc_Sample)"
         BakeOcc_Sample;
    
     checkBox -l "DisplayChannel _area (unused)" -v 0 OXE_DisplayChannelA;
    
     checkBox -l "Non raster-oriented dicing (unused)" -v 0 OXE_Non_raster;    
     checkBox -l "Don't cull backfacing grids (unused)" -v 0 OXE_backfacing;
     checkBox -l "Don't cull hidden grids (unused)" -v 0 OXE_hidden;
    
  setParent PBOcc_column;
 
 
////RenderLayer////////////////////////////////////////////////////////////////
 
    frameLayout -l "PBOcc_RenderLayer"
               -cll 0
       -cl 1
       -bs "etchedIn"
       -mh 2
       -mw 2
       PBOcc_RenderLayer_frame;

 
  rowColumnLayout -numberOfColumns 1
               -columnWidth 1 300 ;
                 checkBox -l "Enable RenderLayer"
           -v $OXE_RL_Enable
        -ofc "int $OXE_RL_Enable=0; \n OXE_set_RL_Enable($OXE_RL_Enable)"
        -onc "int $OXE_RL_Enable=1; \n OXE_set_RL_Enable($OXE_RL_Enable)"
           OXE_RenderLayer_Enable;
    
                 textFieldGrp -l "RenderLayer_Name"
               -tx $OXE_RenderLayer
               -cc "string $OXE_RenderLayer=`textFieldGrp -q -tx OXE_RenderLayer_Name`; \n OXE_set_RenderLayer($OXE_RenderLayer)"
               OXE_RenderLayer_Name;
    
  setParent PBOcc_column;
 
 
////Write bat//////////////////////////////////////////////////////////////
 
 
    frameLayout -l "PBOcc_write_bat"
               -cll 0
       -cl 1
       -bs "etchedIn"
       -mh 2
       -mw 2
       PBOcc_Rwrite_bat;

 
  rowColumnLayout -numberOfColumns 1
               -columnWidth 1 300 ;
                 checkBox -l "launch Render"
           -v $OXE_launch_Render
        -ofc "int $OXE_launch_Render=0; \n OXE_set_EnableRender($OXE_launch_Render)"
        -onc "int $OXE_launch_Render=1; \n OXE_set_EnableRender($OXE_launch_Render)"
           OXE_write_bat_EnableRender;
    
                 textFieldGrp -l "Bat_file_Name"
               -tx $OXE_Bat_file_name
         -cc "string $OXE_Bat_file_name=`textFieldGrp -q -tx OXE_Bat_file_Name`; \n OXE_set_Batfilename($OXE_Bat_file_name)"
               OXE_Bat_file_Name;
    
  setParent PBOcc_column;
 
////doJob///////////////////////////////////////////////////////////////

  rowColumnLayout -numberOfColumns 1
               -columnWidth 1 100;
 
       button -l "Render"
           -c "OXE_PBOcc($OXErenderer,$OXE_RIBpach,$OXE_cameraShape,$OXE_Padding,$OXE_BL_Enable,$OXE_BakeOccLayer,$OXE_BakeOcc_Shading_Rate,$OXE_BakeOcc_Sample,$OXE_RL_Enable,$OXE_RenderLayer,$OXE_launch_Render,$OXE_Bat_file_name)"
        OXE_render_button;
 
                  

showWindow OXE_PBOcc_UI;


////////////////////////////////////////////////////////////


////Render sering proc////////////////////////////////////////////////////////

proc OXE_set_renderer(string $OXE_set_renderer)
  {
    setAttr -type "string" OXE_LiquidLayerBake_packet.renderer $OXE_set_renderer;
  }

proc OXE_set_RIBpach(string $OXE_set_RIBpach)
  {
 setAttr -type "string" OXE_LiquidLayerBake_packet.RIBpach $OXE_set_RIBpach;
  }

proc OXE_set_cameraShape(string $OXE_set_cameraShape)
  {
   setAttr -type "string" OXE_LiquidLayerBake_packet.cameraShape $OXE_set_cameraShape;
 }
 
proc OXE_set_Padding (int $OXE_set_Padding)
  {
 setAttr "OXE_LiquidLayerBake_packet.Padding" $OXE_set_Padding;
 setAttr "liquidGlobals.doPadding" 1;
    setAttr "liquidGlobals.padding" $OXE_set_Padding;
 $OXE_Padding=$OXE_set_Padding;
  }


////BakeLayer seting proc/////////////////////////////////////////////////////////////////////////

proc OXE_set_BL_Enable(int $OXE_set_BL_Enable)
  {
  setAttr "OXE_LiquidLayerBake_packet.BL_Enable" $OXE_set_BL_Enable;  
  }
 
proc OXE_set_BakeOccLayer(string $OXE_set_BakeOccLayer)
  {
     setAttr -type "string" OXE_LiquidLayerBake_packet.BakeOccLayer $OXE_set_BakeOccLayer;  
  }
 
proc OXE_set_BakeOcc_Shading_Rate(float $OXE_set_BakeOcc_Shading_Rate)
  {
     setAttr "OXE_LiquidLayerBake_packet.BakeOcc_Shading_Rate" $OXE_set_BakeOcc_Shading_Rate;
  }
 
proc OXE_set_BakeOcc_Sample(int $OXE_set_BakeOcc_Sample)
  {
  setAttr "OXE_LiquidLayerBake_packet.BakeOcc_Sample" $OXE_set_BakeOcc_Sample;
  }
 
////RenderLayer seting proc//////////////////////////////////////////////////

proc OXE_set_RL_Enable(int $OXE_set_RL_Enable)
  {
  setAttr "OXE_LiquidLayerBake_packet.RL_Enable" $OXE_set_RL_Enable;
  }
 
proc OXE_set_RenderLayer(string $OXE_set_RenderLayer)
  {
  setAttr -type "string" OXE_LiquidLayerBake_packet.RenderLayer $OXE_set_RenderLayer;
  }
 
////Write bat seting proc////////////////////////////////////////////////////
 
proc OXE_set_EnableRender(int $OXE_set_EnableRender)
  {
     setAttr "OXE_LiquidLayerBake_packet.launch_Render" $OXE_set_EnableRender;
  }
 
proc OXE_set_Batfilename(string $OXE_set_Batfilename)
  {
  setAttr -type "string" OXE_LiquidLayerBake_packet.BatFileName $OXE_set_Batfilename;
  }
 
 
 
//////////////////////////////////////////////////////////////////////////////////////////////////
 
 
 
 
 
/////////////////////////////////////////////////////////////////////////////////////////////////////
 
 
 
 
 
 
 
 
 
/////////////////////////////////////////////////////////////////////////////////////////////////////
 
 
 
 
//write bat matter proc////////////////////////////////////////////////////////
 
 
 
  ///bakeOcc proc///////////////////////////////////////////////
 
 
proc string OXE_BakeOcc_PROC(string $OXErenderer,string $cameraShape,int $padding,string $BakeLayer)

{
 
   //write bat file////////////////////////////

     /////Current frame number/////////////
       string $cTime=`currentTime -q`;
       int $pOut=size($cTime);
       string $pZero="000000000000000000000000000000000000000";
 
       string $cFrameNumber;

           if ($pOut>=$padding)
           {
            $cFrameNumber=$cTime;

           }
   
           else
           {
            $cFrameNumber=endString($pZero+$cTime,$padding);

           }
   

 

     ////write file /////////////////////////

      string $ProjPach = `workspace -q -rd`;
    
  ////Bake point cloud rib////////////
  string $BatTextBake = $OXErenderer+" "+$ProjPach+"rib/"+$BakeLayer+"/"+$BakeLayer+"_"+$cameraShape+"."+$cFrameNumber+".rib \n";
     return $BatTextBake;
 
 
  
}


   ////RenderLayer proc///////////////////////////////////////////////////////////////////


proc string OXE_RenderLayer_PROC(string $OXErenderer,string $cameraShape,int $padding,string $RenderLayer)
{


   //write bat file////////////////////////////

     /////Current frame number/////////////
       string $cTime=`currentTime -q`;
       int $pOut=size($cTime);
       string $pZero="000000000000000000000000000000000000000";
 
       string $cFrameNumber;

       if ($pOut>=$padding)
       {
        $cFrameNumber=$cTime;

       }
   
       else
    {
        $cFrameNumber=endString($pZero+$cTime,$padding);

       }
   

 

     ////write file /////////////////////////

      string $ProjPach = `workspace -q -rd`;
       
  
  ////RenderLayer rib///////////
   
   
      ////RenderLayer shaodw rib////
  
      string $currentFilePach=`file -q -sn`;       //current maya mb file pach
  

   string $currentFileName=`basenameEx ($currentFilePach)`;  //current maya mb file name
 

            string $shadowPach[]=`liquidJobList -sh`;
            string $currentPach;

 

   
   string $RenderShadowRibPach;
                  for ($currentPach in $shadowPach)
                        {
                          string $shadowSTem=`basenameEx ($currentPach)`;

        string $currentShape=substitute($currentFileName,$shadowSTem,$RenderLayer);
       
                          string $currentRibPach=$OXErenderer+" "+$ProjPach+"rib/"+$RenderLayer+"/"+$currentShape+".rib \n";
                          $RenderShadowRibPach=$RenderShadowRibPach+$currentRibPach;
                        }

// print $RenderShadowRibPach;
  
      ////Render rib/////////
  
         string $BatTextRender = $OXErenderer+" "+$ProjPach+"rib/"+$RenderLayer+"/"+$RenderLayer+"_"+$cameraShape+"."+$cFrameNumber+".rib \n \n////////////////////////////////////////////////////////// \n";

         string $RenderLandS=$RenderShadowRibPach+$BatTextRender;

         return $RenderLandS;

};

 


//////////////////////////////////////////////////////////////////////////////////////////////


//////render proc//////////////////////////////////////////////////////
proc OXE_PBOcc (string $renderer, string $RIBpath, string $cameraShape, int $padding, int $BakeLayer_Enable,string $BakeLayer, float $bsr, int $bs, int $RenderLayer_Enable, string $RenderLayer, int $launch_render, string $BatFileName)
{

 //write Rib////////////////////
 if ($BakeLayer_Enable==1)
 {
       liquid -GL -lyr $BakeLayer -rid ($RIBpath+"/"+$BakeLayer+"/") -sr $bsr -s $bs -nsh -rgo -nolr -cam $cameraShape -rnm $BakeLayer -pad $padding;
 }
 
 if ($RenderLayer_Enable==1)
 {
       liquid -GL -lyr $RenderLayer -rid ($RIBpath+"/"+$RenderLayer+"/") -rgo -nolr -cam $cameraShape -rnm $RenderLayer -pad $padding;
 }
 
    //write bat file////////////////////////////
 
 
 ////animation??????////////////////////////////////////
 string $BatFilePatch;
 
 int $OXE_doAnimation =`getAttr liquidGlobals.doAnimation`;
 
 
 if ($OXE_doAnimation==0)
 {
     string $BatTextBakeOcc;
 
     if ($BakeLayer_Enable==1)
     {
      $BatTextBakeOcc=OXE_BakeOcc_PROC($renderer,$cameraShape,$padding,$BakeLayer);
     }
     else
     {
      $BatTextBakeOcc="";
     }
print $BatTextBakeOcc;

   
        string $BatTextRender;
        if ($RenderLayer_Enable==1)
     {
      $BatTextRender=OXE_RenderLayer_PROC($renderer,$cameraShape,$padding,$RenderLayer);
     }
     else
     {
      $BatTextRender="";
     }
print $BatTextRender;
 
          ////write file pach/////

         if($BatFileName!="")
      {
           string $ProjPach = `workspace -q -rd`;
   
           $BatFilePatch =$ProjPach+"rib/"+$BatFileName+".bat";

            $fileId=`fopen $BatFilePatch "w"`;
            fprint $fileId ($BatTextBakeOcc+$BatTextRender);
         fclose $fileId;
      }
 
      else
      {
       print ("None bat name");
      }
 
 }
 
 
////////////DO ani!!!!!//////////////////////////////////////////// 
////////////DO ani!!!!!//////////////////////////////////////////// 
////////////DO ani!!!!!//////////////////////////////////////////// 
////////////DO ani!!!!!//////////////////////////////////////////// 
 
 
 
 
 else
  
 {
      int $OXE_ani_currentTime=`currentTime -q`;
   int $OXE_ani_startframe=`getAttr liquidGlobals.startFrame`;
   int $OXE_ani_endframe=`getAttr liquidGlobals.endFrame`;
   string $BatText_Ani;
    
  
   int $counter;
  
     for ($counter=$OXE_ani_startframe; $counter<=$OXE_ani_endframe; $counter++)   
      {
      currentTime -e $counter;
   
   /////////////////////////////////////////////
        string $BatTextBakeOcc;
 
         if ($BakeLayer_Enable==1)
         {
          $BatTextBakeOcc=OXE_BakeOcc_PROC($renderer,$cameraShape,$padding,$BakeLayer);
         }
         else
         {
          $BatTextBakeOcc="";
         }
print $BatTextBakeOcc;

   
            string $BatTextRender;
            if ($RenderLayer_Enable==1)
         {
          $BatTextRender=OXE_RenderLayer_PROC($renderer,$cameraShape,$padding,$RenderLayer);
         }
         else
         {
          $BatTextRender="";
         }
print $BatTextRender;
 
            $BatText_Ani=$BatText_Ani+$BatTextBakeOcc+$BatTextRender;

   
   
      }
  
/////////////exit for CYC//////////////////////////////////
  
  
  ////write file pach/////
 
             if($BatFileName!="")
          {
               string $ProjPach = `workspace -q -rd`;
   
               $BatFilePatch =$ProjPach+"rib/"+$BatFileName+".bat";

                $fileId=`fopen $BatFilePatch "w"`;
                fprint $fileId ($BatText_Ani);
             fclose $fileId;
          }
 
          else
          {
           print ("None bat name");
          }
  
  
   
   currentTime -e $OXE_ani_currentTime; 
 }
 
 
 
//**************************************************************
   
//****************************************************************
      //run bat file render///////////////////////
int $launch_render;
   if ($launch_render==1)
   {
     exec $BatFilePatch;
   }
  
//**************************************************************
   
//****************************************************************  
  
}

  评论这张
 
阅读(187)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017