Just use the attribute name.

cmds.setAttr('%s.%s' % (blendshapeNode, targetName), 1.0)

On Mon, Oct 11, 2010 at 9:03 AM, Christian Akesson
<[email protected]>wrote:

> Is there a way to directly use the attribute name to set a blendshape
> weight value?
> My current way is to find the weightIndexList, then loop through those to
> check if the aliasAttr matches the attribute string that I am looking to
> set.
>
>
> Thanks,
> /Christian
>
> --
> http://groups.google.com/group/python_inside_maya

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to