# Query nParticleShape name

**URL:** https://forum.highend3d.com/t/query-nparticleshape-name/48681
**Category:** Maya
**Tags:** python
**Created:** [August 9, 2010, 7:22pm UTC](https://forum.highend3d.com/t/query-nparticleshape-name/48681 "2010-08-09T19:22:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![myopicfalcon](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/aeb1de/32.png) [@myopicfalcon](https://forum.highend3d.com/u/myopicfalcon)
#### Post date: [August 9, 2010, 7:22pm UTC](https://forum.highend3d.com/t/query-nparticleshape-name/48681/1 "2010-08-09T19:22:05Z")

</div>

Hey there. &nbsp;I'm creating a button to toggle the intermediateObject status of a list of nParticles. &nbsp;"mc.setAttr(nPatricleShape1.intermediateObject,1" works, but I'm not sure how to get the particle-Shape- name using Python. &nbsp;"mc.getAttr('nParticleShape1.shapeName')" says #Error: &nbsp;TypeError: Object nParticleShape1.shapeName is invalid. &nbsp;What's my mistake here?

Thanks&nbsp;
