none
procedure call? RRS feed

  • Question

  • Cannot find procedure "autoLoadPlugin".

    Start of trace: (command window: line 1).

    autoLoadPlugin (command window: line 1).

    I move with Move command maya from c: to D: now I cant run auto load plug in ? 

    // Copyright (C) 1997-2014 Autodesk, Inc., and/or its licensors.
    // All rights reserved.
    //
    // The coded instructions, statements, computer programs, and/or related
    // material (collectively the "Data") in these files contain unpublished
    // information proprietary to Autodesk, Inc. ("Autodesk") and/or its licensors,
    // which is protected by U.S. and Canadian federal copyright law and by
    // international treaties.
    //
    // The Data is provided for use exclusively by You. You have the right to use,
    // modify, and incorporate this Data into other products for purposes authorized
    // by the Autodesk software license agreement, without fee.
    // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. AUTODESK
    // DOES NOT MAKE AND HEREBY DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTIES
    // INCLUDING, BUT NOT LIMITED TO, THE WARRANTIES OF NON-INFRINGEMENT,
    // MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, OR ARISING FROM A COURSE
    // OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT WILL AUTODESK AND/OR ITS
    // LICENSORS BE LIABLE FOR ANY LOST REVENUES, DATA, OR PROFITS, OR SPECIAL,
    // DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES, EVEN IF AUTODESK AND/OR ITS
    // LICENSORS HAS BEEN ADVISED OF THE POSSIBILITY OR PROBABILITY OF SUCH DAMAGES.
    global proc autoLoadPlugin(
     string $userName,
     string $pluginName,
     string $plugin)
    //
    // Description:
    //  This procedure is called from pluginPrefs.mel for the purposes of
    //  auto-loading plugins at startup.
    //
    // Notes:
    //  By creating this procedure to load a plugin we can
    //  invoke it from an "evalDeferred" command in userPrefs.mel. By
    //  using evalDeferred we are able to delay the loading of plugins and
    //  the OpenMaya library until after our other libraries are loaded.
    //
    {
     if (`pluginInfo -q -loaded $pluginName` )
      return;
     if ("" == $userName) {
      string $name = $pluginName;
      if ( endsWith( $plugin, ".py" ) ) {
       $name = $plugin;
      }
      if (!catch(`loadPlugin -quiet $name`)) {
       if (`pluginInfo -q -loaded $name` )
        pluginInfo -edit -autoload true $name;
       
       else if (`pluginInfo -q -loaded $plugin` )
        pluginInfo -edit -autoload true $plugin;
      }
      // BRTA-1003 workaround:
      // If the OneClick plugin experiences a failure while loading, it will
      // not be put on the autoload list. We don't want this to happen, so
      // make sure it is always put on the list.
      //
      if($name == "OneClick") {
       if (!`pluginInfo -q -loaded $name`)
        loadPlugin -quiet $name;
       pluginInfo -edit -autoload true $name;
      }
     } else {
      string $name = $pluginName;
      if ( endsWith( $plugin, ".py" ) ) {
       $name = $plugin;
      }
      if (!catch(`loadPlugin -quiet -name $userName $name`)) {
       if (`pluginInfo -q -loaded $name` )
        pluginInfo -edit -autoload true $plugin;
      }
     }
    }

    Wednesday, May 25, 2016 12:00 AM