Current and earlier versions of Ragdoll spits out this error/warning whenever Ragdoll is installed but Locomotion isn’t.
// Error: line 1: Plug-in, "locomotion", was not found on MAYA_PLUG_IN_PATH.
It’s from the days when these were one and the same and they’ve been two separate products for a while now. To work around it, without installing Locomotion, here’s what you can do.
- Save the below “plug-in” to anywhere on your Maya plug-in path
- Profit
It’s a harmless, no-op plug-in that merely serves to quiet that warning, by stepping in as a replacement.
# locomotion.py
import maya.api.OpenMaya as om
kPluginCmdName = "locomotion"
maya_useNewAPI = True
class LocomotionCmd(om.MPxCommand):
@staticmethod
def cmdCreator():
return LocomotionCmd()
def initializePlugin(plugin):
fnPlugin = om.MFnPlugin(plugin, "Imbalance", "1.0.0", "Any")
fnPlugin.registerCommand(kPluginCmdName, LocomotionCmd.cmdCreator)
def uninitializePlugin(plugin):
fnPlugin = om.MFnPlugin(plugin)
fnPlugin.deregisterCommand(kPluginCmdName)
To find your MAYA_PLUG_IN_PATH you can either use:
~/maya/plug-ins
Which is a default path and applies to all versions of Maya.
Or you can find which ones apply to your particular environment, either from a terminal:
# Linux
echo $MAYA_PLUG_IN_PATH
# Windows (PowerShell)
$env:MAYA_PLUG_IN_PATH
Or from inside of Maya or mayapy.
import os
print(os.getenv("MAYA_PLUG_IN_PATH"))
With this file in place, the warning/error will be gone. If you one day do install the real Locomotion, odds are it will take precedence over this mocked version. If not, simply delete this file.
Hope it helps!