/****************************************************************************** NintendoWare for CTR Maya Plugin File: NW4C_BatchExport.mel Description: batch export Date: 2010/02/04 Author: Takashi Endo Copyright (C)2009-2010 Nintendo Co., Ltd. / HAL Laboratory, Inc. All rights reserved. ******************************************************************************/ /****************************************************************************** main ******************************************************************************/ global proc NW4C_BatchExport(string $c3beFile) { //----------------------------------------------------------------------------- // source scripts source NW4C_CommonProc; source NW4C_ExpDialog; //----------------------------------------------------------------------------- // load plugin if (!`pluginInfo -q -l "NW4C_Export.mll"`) { loadPlugin("NW4C_Export.mll"); } //----------------------------------------------------------------------------- // expand environment varieble if (substring($c3beFile, 1, 1) == "$") { string $env = substring($c3beFile, 2, size($c3beFile)); $c3beFile = getenv($env); // cut both end double quote $c3beFile = substitute("^\"", $c3beFile, ""); $c3beFile = substitute("\"$", $c3beFile, ""); //trace ("env: " + $env + ", [" + $c3beFile + "]"); } //----------------------------------------------------------------------------- // execute string $cmd = "NW4C_BatchExportCmd -b \"" + $c3beFile + "\""; eval($cmd); }