When Maya is loaded, there is no MayaMuscle menu, even though the
plugin is loaded. The workaround is to unload, then reload the plugin.
Any idea why this happens? We force loading of the MayaMuscle plugin
in userSetup.mel.

Unloading the plugin causes a pymel exception to be raised:

// pymel.core : Removing commands: cMuscleAbout, cMuscleWeight,
cMuscleQuery, cMuscleBindSticky, cMuscleRelaxSetup, cMuscleSplineBind,
cMuscleCache, cMuscleWeightSave, cMuscleWeightMirror,
cMuscleCompIndex, cMuscleWeightDefault, cMuscleSimulate,
cMuscleRayIntersect, cMuscleWeightPrune //
// Error: file: /opt/Maya-2009.0-452_sp1//scripts/others/pluginWin.mel
line 1246: 'dictproxy' object has no attribute 'pop'
# Traceback (most recent call last):
#   File "/dfs1/net/studio/noarch/free/maya2009/lib/python/pymel-1.0.0-
py2.5.egg/pymel/core/__init__.py", line 180, in _pluginUnloaded
#     _factories.removePyNode( nodetypes, node )
#   File "/dfs1/net/studio/noarch/free/maya2009/lib/python/pymel-1.0.0-
py2.5.egg/pymel/internal/factories.py", line 2792, in removePyNode
#     dynModule.__class__.__dict__.pop(pyNodeTypeName,None)
# AttributeError: 'dictproxy' object has no attribute 'pop' //
// Warning: file: /opt/Maya-2009.0-452_sp1//scripts/others/
pluginWin.mel line 1246: Failed to call script callback //

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to