# getArrayAttr?

**URL:** https://forum.highend3d.com/t/getarrayattr/40530
**Category:** Maya
**Tags:** api
**Created:** [September 8, 2000, 8:06am UTC](https://forum.highend3d.com/t/getarrayattr/40530 "2000-09-08T08:06:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kennychow](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/k/8797f3/32.png) [@kennychow](https://forum.highend3d.com/u/kennychow)
#### Post date: [September 8, 2000, 8:06am UTC](https://forum.highend3d.com/t/getarrayattr/40530/1 "2000-09-08T08:06:19Z")

</div>

Ive added array attribute to my geometry(nurbs/mesh) by:

AddAttr -ln test -dt doubleArray mygeoShape1;  
SetAttr mygeoShape1.test -type doubleArray 6 0 0 0 0 0 0;

How can I get the attribute value through mel? Ive tried getAttr, but it is documented that it doesnt support array attribute. Is API the only way?

---

<div class="post-metadata">

### Author: ![msimon](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@msimon](https://forum.highend3d.com/u/msimon)
#### Post date: [September 10, 2000, 2:03pm UTC](https://forum.highend3d.com/t/getarrayattr/40530/2 "2000-09-10T14:03:57Z")

</div>

From what I've found, yes, the API is the only way. I think you can make assignments to the attribute, but not query it through MEL.

---

<div class="post-metadata">

### Author: ![kennychow](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/k/8797f3/32.png) [@kennychow](https://forum.highend3d.com/u/kennychow)
#### Post date: [October 3, 2000, 9:36am UTC](https://forum.highend3d.com/t/getarrayattr/40530/3 "2000-10-03T09:36:48Z")

</div>

Does anyone know how to query "doubleArray" attribute through API? I tried MFn class function getvalue(), it doesnt work for "doubleArray". In fact, I cant figure out its type in API because it doesnt seem to be array type in API.

P.S. the terminology and definition in MEL confused with that in API very much.
