# Query the entry of a gradient control

**URL:** https://forum.highend3d.com/t/query-the-entry-of-a-gradient-control/520
**Category:** Maya
**Tags:** mel
**Created:** [June 28, 2011, 3:10am UTC](https://forum.highend3d.com/t/query-the-entry-of-a-gradient-control/520 "2011-06-28T03:10:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![puppetsoul](https://forum.highend3d.com/user_avatar/forum.highend3d.com/puppetsoul/32/90_2.png) [@puppetsoul](https://forum.highend3d.com/u/puppetsoul)
#### Post date: [June 28, 2011, 3:10am UTC](https://forum.highend3d.com/t/query-the-entry-of-a-gradient-control/520/1 "2011-06-28T03:10:55Z")

</div>

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 &nbsp;-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?&nbsp;

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 &nbsp;query with&nbsp;  
attributeQuery -nc  
it return :&nbsp;// Result: stiffnessScale\_Position stiffnessScale\_FloatValue stiffnessScale\_Interp //  
well, ok, but I sont have the number of the array!!

Thanks a lot&nbsp;
