I'm new to scripting and I know that it could be a dum question but but I got stuck here.
I try to set DrivenKeys via MEL and when the key is adde to an already connected attr, Maya creates a blendWeighted node so all setDrivenKey node can reach the attr.
My problem is that from the second sdk node Maya names them "animCurve#" and I cannot get it in a variable to rename it to set their properties and to be able to read the name of the node and understand why it that for so I don't need to search for its connections or open more panels.
string $fingA_orFK[] = ls ("L_*" + "*A_orientFK_JNT")
;
string $sdkDrvOrAttr[] = {"curl", "scrunch", "relax", "spread"} ;
string $sdkAxis[] = {"rotateX", "rotateY", "rotateZ" };
for ($fingOr in $fingA_orFK)
{
setDrivenKeyframe -currentDriver ("L_palmSdk_CTRL" + "." + $sdkDrvAttr[1] )
-driverValue 0
-value 0
($fingOr + "." + $sdkAxis[1]) ;
setDrivenKeyframe -currentDriver ("L_palmSdk_CTRL" + "." + $sdkDrvAttr[1] )
-driverValue 10
-value -50
($fingOr + "." + $sdkAxis[1] ) ;
rename ($fingOr + "" + $sdkAxis[1]) ("LpalmSdk_CTRL" + "" + $sdkDrvAttr[1] + "" + $fingOr + "_ry");
}