Hi,

I want to be able to get and set the base weights of a blendshape. In the 
example below I am using pymel to get the base weights. If I first edit the 
weights in the component editor and then run the script it returns a tuple 
of weights, but if I have not manually edited the weights I get an empty 
tuple back. The same is true if I view the node in the node editor, first 
the baseWeight slot is empty but if I edit the weights, the weights are 
displayed.

How can I get and set the base weights programatically using pymel? is that 
possible?

crv_1 = pm.curve(d=1, p=[(0,0,0), (10,10,0)], n='crv_1')
crv_2 = pm.curve(d=1, p=[(0,0,0), (10,0,0)], n='crv_2')

bs = pm.blendShape(crv_1, crv_2)[0]

bs_weights = bs.inputTarget[0].baseWeights.get()
print(bs_weights)


BR,
Johan

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/5b58f5cb-289d-42f7-8011-9367e9b74968%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to