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')