Copyright (c) 2024
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Compatibility
-
2011, 2010, 2009, 2008
Operating Systems
History
Created: | 01/19/2008 |
Last Modified: | 06/09/2010 |
File Size: | 62.4 KB |
Bugs (1 reported) Help make this item even better. Your bug reports are appreciated!
Date | Priority | Title | Status |
---|---|---|---|
08/15/2010 | high | problem with sparse indeces | Pending |
Bugs
problem with sparse indeces
Status | pending |
---|---|
Priority | high |
Date | 08/15/2010 |
Submitted by | syntetik |
skinWeightsIO seems to write out values from full index range simply based on number of influences. For example if we have 5 influences, I would be quering values from compound weight attributes 0,1,2,3,4. But these indices might not be used anymore.
Real case is often, that these indices are invalid as the actual array is sparse, caused by Remove Unused Influences optimizations performed on skinCluster arrays.
To correctly get weight values, a flag -multiIndices in getAttr command should be used to get valid indices:
# python
validIndices = mc.getAttr( 'skinCluster1.matrix', mi=1)
# MEL
string $validIndices[] = `getAttr -mi "skinCluster1.matrix"`;
This in example above could be something like 2,3,7,10 or anything else. Quering these plugs will give the weights that are used by connected influences. In the first case (0,1,2,3..) we would get 0.0 and when loading weights, there would be no weights at all for given point resulting in wrong deformation.
It`s also easy to check when you look at connections of joints to .matrix plugs in skinCluster. These indexes correspond to the same sparse indices in each weightList.weights compound attribute.
Comments on this bug:
-
linez said over 14 years ago:
You're absolutely right. I usually don't run into this bug, because I always detach and completely rebind everything, but that's definitely something I should look into at the next opportunity. Thanks for pointing it out linez
Post a comment:
Report a bug
Related Items:
-
Cluster balloons 3D Model
$80.00 (USD) -
Sat Export Venere sofa composition 5 3D Model
$40.00 (USD) -
Skin & Hair Anatomy High Detail 3D Model
$50.00 (USD) -
13 PBR Animal Skin Carpets 3D Model
$12.99 (USD) -
13 PBR Animal Skin Carpets 3D Model
$12.99 (USD) -
Human body - silhouette of a Male 3D Model
$39.99 (USD)