# Extract component Nickname and values

**URL:** <https://discourse.mcneel.com/t/extract-component-nickname-and-values/127106>\
**Category:** Grasshopper\
**Tags:** windows, python\
**Created:** [July 8, 2021, 10:37am UTC](https://discourse.mcneel.com/t/extract-component-nickname-and-values/127106 "2021-07-08T10:37:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jsguima](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jsguima/32/746716_2.png) [@jsguima](https://discourse.mcneel.com/u/jsguima)\
**Post date:** [July 9, 2021, 6:54am UTC](https://discourse.mcneel.com/t/extract-component-nickname-and-values/127106/3 "2021-07-09T06:54:52Z")

</div>

Thank you very much Naruto for the prompt help!!! 🤝  
Exactly what I was asking for in situation B!

To achieve the situation C, I was trying to dig a bit more in the forum but only stumble upon C# scripts and I’m also not able to make them work:  
[https://discourse.mcneel.com/t/find-inputs-of-a-component-and-managing-its-data/64943/11](https://discourse.mcneel.com/t/find-inputs-of-a-component-and-managing-its-data/64943/11)  
 ![Top Level Attributes](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/9/e/99e9fc8137cb64461081799523b5964b9a834232.png)

Ideally the Python component is hidden inside the cluster and from outside, we only have to plugin the swatch color component directly into the cluster.  
Therefore it would be needed to collect those attributes from a level above (I assume called topLevel).  
I give here a more precise image and gh file with what is my intention, if anyone can help with:

 ![Extract top level attributes](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/a/3/4a331ce17322d708c5567e188a74d5f89d353d1c.png)  
[Extract top level attributes.gh](https://discourse.mcneel.com/uploads/short-url/vr6tq9FPmgM5eRVe4xDGOhzGWTy.gh) (3.8 KB)

Thank you once more for the help!!!

---

_[View the full topic](https://discourse.mcneel.com/t/extract-component-nickname-and-values/127106)._
