Query the entry of a gradient control

Hi All....

I want to record the shape of a gradient control made by a user to recall this settings later.

In the gradientControl I just found the  -nc flag, who gives me the number of control attached, but how can I get the
- array NUmber (attractescale[$N])?
- float value?
- pos value?
- interp value? 

Do you have any idea??

OR...

for the attractionScale in a hairShape for exemple, who is controled by a gradientControl
how can I query the number of entry on the gradient in the connectionEditor.
if I  query with 
attributeQuery -nc
it return : // Result: stiffnessScale_Position stiffnessScale_FloatValue stiffnessScale_Interp //
well, ok, but I sont have the number of the array!!

Thanks a lot