# Compound Attribute crash... in maya 2009

**URL:** https://forum.highend3d.com/t/compound-attribute-crash-in-maya-2009/508
**Category:** Maya
**Tags:** mel
**Created:** [August 8, 2011, 1:40am UTC](https://forum.highend3d.com/t/compound-attribute-crash-in-maya-2009/508 "2011-08-08T01:40:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hyungeun-kim](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/h/dc4da7/32.png) [@hyungeun-kim](https://forum.highend3d.com/u/hyungeun-kim)
#### Post date: [August 8, 2011, 1:40am UTC](https://forum.highend3d.com/t/compound-attribute-crash-in-maya-2009/508/1 "2011-08-08T01:40:46Z")

</div>

I made a compound attr has 1 message attr and 5 string attrs.  
It works on maya 2008 with minor problems (sometimes shows 2 times in attribute editor)  
But, recently I changed platform to maya 2009, compound attr cause crash.  
In attrbute editor, I can't see the compound attr values, and every time I open attribute editor increase the number of compound attr.

Maya shows me error msg like that.  
ï»¿// Error: Found no attribute match for "CompoundAttr.childAttr"

I found some cases in web, and someone says that maya 2009 has a bug on compound attr.  
A solution for the problem is existing? It makes me dizzy.

I wrote the script on Pymel.

loc\_ = spaceLocator()  
 addAttr(loc\_.getShape(), ln='shadAssign', sn='sa', nc=6, at='compound', m=1)  
addAttr(loc\_.getShape(), ln='modelConnect', sn='mc', at='message', p='shadAssign')  
addAttr(loc\_.getShape(), ln='renderLayer', sn='rl', dt='string', p='shadAssign')  
addAttr(loc\_.getShape(), ln='mayaModified', sn='mm', dt='string', p='shadAssign')  
addAttr(loc\_.getShape(), ln='collection', sn='col', dt='string', p='shadAssign')  
addAttr(loc\_.getShape(), ln='delightModified', sn='dm', dt='string', p='shadAssign')  
addAttr(loc\_.getShape(), ln='delightUnassigned', sn='du', dt='string', p='shadAssign')
