Leopardob / stretchmesh

Automatically exported from code.google.com/p/stretchmesh
0 stars 0 forks source link

paint skin weight tool not working when stretchMesh is loaded. #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. load StretchMesh
2. skin any geometry to joints
3. select skinned mesh
3. activate paint skin weights tool 

What is the expected output? What do you see instead?
Expected - ability to paint weights of joints. Instead - // Error: Cannot find 
procedure "artAttrSkinJointMenuRebuild". And empty joint list in tool settings 
window.

What version of the product are you using? On what operating system?
Maya 2012 x64, Maya 2011 x64

Please provide any additional information below.
This problem arises even if StretchMesh was not applied to any mesh in the 
scene, just loaded.

Original issue reported on code.google.com by Pavel....@gmail.com on 19 Feb 2012 at 4:58

GoogleCodeExporter commented 9 years ago
Operating system - Windows 7 x64

Original comment by Pavel....@gmail.com on 19 Feb 2012 at 5:35

GoogleCodeExporter commented 9 years ago
My comment in issue 3 applies here as well. When the plugin loads it redefines 
some global procedures that overwrite the original maya procs with old 
versions. The problem starts here 
http://code.google.com/p/stretchmesh/source/browse/trunk/stretchMeshCmd.cpp#2242

Original comment by david....@gmail.com on 21 Feb 2012 at 12:49

GoogleCodeExporter commented 9 years ago
Thank you for answer. Alas I`m no coder. Is there any hope that fixed version 
of plugin will be available for download? 

Original comment by Pavel....@gmail.com on 21 Feb 2012 at 12:56

GoogleCodeExporter commented 9 years ago
It would probably  help if we yanked the mel commands to build the  menus etc.. 
from the C++ code and just released it with the plugin as a .mel file.  Since 
this is now an open source project there's  no reason to  obfuscate anything 
any more than it needs to be. 

Original comment by redpa...@gmail.com on 22 Feb 2012 at 6:33

GoogleCodeExporter commented 9 years ago
Yep. Totally agree.

Original comment by david....@gmail.com on 23 Feb 2012 at 11:42

GoogleCodeExporter commented 9 years ago
I managed to fix the paint joint weights issue by changing some of the procs 
found in the code prefixed with "artAttr" to "aa." The problem now is that 
stretchMesh's attractor influences paint tool doesn't want to work:

//Error: file: C:/Program 
Files/Autodesk/Maya2012/scripts/others/skinClusterInflMenu.mel line 165: 
Expected a skinCluster deformer or a deformed shape. Found 'stretchMesh1' 
instead. // 

Original comment by notanymike on 2 Mar 2012 at 3:40

Attachments:

GoogleCodeExporter commented 9 years ago
As a short-term fix, I would like to commit notanymike's changes with a minor 
difference, we should substitute "artAttr" with "smArtAttr" to make it clear 
this is the stretchMesh version of the paint procs.  This won't fix the root 
problem of attractor painting being broken, but at least it won't break Maya's 
native Paint Skin Weights Tool.  The interface for influence painting changed 
in Maya 2012, and ultimately that will need to be addressed. 

As a long-term fix, I agree with redpawfx's suggestion that we remove the mel 
commands from the C++ code, and instead provide that functionality as a .mel 
file.  redpawfx, would you like to be added as a contributor to the open source 
project?  Feel free to send me mail at ddawson3d@gmail.com, I'd love to have 
your help!    

Original comment by ddawso...@gmail.com on 14 Mar 2012 at 2:30

GoogleCodeExporter commented 9 years ago
Actually, I think david.djx already committed changes that address this issue, 
so disregard my comments related to the "short-term fix".  My comments related 
to the "long-term fix" still apply.  

-Daniel

Original comment by ddawso...@gmail.com on 14 Mar 2012 at 2:41