with some more searchs i find the problem : You have to specifie the index of the influence (0 for the joint1 here): skinCl.setWeights(cube.getShape(), [0], [1, 1, 1, 1, 1, 1, 1, 1])
On 24 juil, 17:42, flogo <[email protected]> wrote: > Hi ! > > I don't know how to use setWeights() pymel function. > > In the documentation it's written : > setWeights(geometry, influnces, weights, normalize=True) > > I try to use it like that: > skinCl.setWeights(cube.getShape(), joint1, [1, 1, 1, 1, 1, 1, 1, 1]) > > but i get an error. > > Anyone knows how to fix that ? > Thanks -- http://groups.google.com/group/python_inside_maya
