I would like to build something to help me set up muscles.
I'm stuck at the part where Id like to set the weight values of the endpoints but I don't see a way to set them
any help or workarounds welcome
import maya.cmds as mc
weights = mc.getAttr('zFiber1.endPoints')
# change the weights
weights = 0.5
mc.setAttr('zFiber1.endPoints', weights, type='doubleArray' )
way to put an index range on that setAttr? attempted but failed
Not that I am aware of. You can just change the index values in the weights variable before setting it.