# Query Compound Attr In Mel

**URL:** https://forum.highend3d.com/t/query-compound-attr-in-mel/1433
**Category:** Maya
**Tags:** mel
**Created:** [July 2, 2008, 3:20pm UTC](https://forum.highend3d.com/t/query-compound-attr-in-mel/1433 "2008-07-02T15:20:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![katisss](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/k/46a35a/32.png) [@katisss](https://forum.highend3d.com/u/katisss)
#### Post date: [July 2, 2008, 3:20pm UTC](https://forum.highend3d.com/t/query-compound-attr-in-mel/1433/1 "2008-07-02T15:20:47Z")

</div>

What is the syntax for query a compound attribute in mel (i.e. shape.pnts)?  
i can do listAttrs shape.pnts and it returns pntx, pnty , pnty but how do i ask the values now? getAttr shape.pnts.pntx doesnt work nor does getAttr shape.pntx?

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [July 2, 2008, 7:11pm UTC](https://forum.highend3d.com/t/query-compound-attr-in-mel/1433/2 "2008-07-02T19:11:14Z")

</div>

its multi, so its a array of compounds

getAttr shape.pnts[0].pntx

for the first point... Tough all likelihood says its going to report something you don't intend. Since its the tweaks value not the local coordinate of the point for example if you make a cube and ask any point they will report 0. they will report nonzero only if you tweak the box.

the vrts array contains the rest tough it cant really be querried ok.
