# Issue with Fly Component (Window Material)

**URL:** <https://discourse.pollination.solutions/t/issue-with-fly-component-window-material/4620>\
**Category:** Grasshopper Plugin\
**Tags:** grasshopper\
**Created:** [December 28, 2024, 11:43pm UTC](https://discourse.pollination.solutions/t/issue-with-fly-component-window-material/4620 "2024-12-28T23:43:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alaasaba](https://discourse.pollination.solutions/user_avatar/discourse.pollination.solutions/alaasaba/32/12033_2.png) [@alaasaba](https://discourse.pollination.solutions/u/alaasaba)\
**Post date:** [December 28, 2024, 11:43pm UTC](https://discourse.pollination.solutions/t/issue-with-fly-component-window-material/4620/1 "2024-12-28T23:43:11Z")

</div>

Hello everyone!

I am testing different wall and glass materials using the Fly component, as shown in the first figure. As you can see, the glazing material is identified as "  
_WindowConstruction\_c0a7d4d3, !- name_" in the Panel component.

When I run the HB Model to OSM, the window material is read correctly.

 ![image](https://discourse.pollination.solutions/uploads/default/original/2X/9/984b8603e15efef5978ea46ea6d114301c8e8ef5.png)

When I connect the Fly ID component’s “Values” and insert the output from List Item component into the “name” input of the HB Window Construction component, the name changes according to my selection of type (referenced from the integer slider)—as shown in the figure below.

 ![image](https://discourse.pollination.solutions/uploads/default/original/2X/1/1906be5cb8b5e2e533d1c87352a6c82d721697fb.png)

However, when running the HB Model to OSM, it gives a fatal warning with the following messages, as it now perceives the window material as “opaque.”

 ![image](https://discourse.pollination.solutions/uploads/default/original/2X/b/b216fb7cda8fe77c0f7fcef2cf14b4e60d7c5230.png)

 ![image](https://discourse.pollination.solutions/uploads/default/original/2X/7/72379292171bcda0869bc76b0f5381e13d11e920.png)

I don’t know how to fix this issue because it just happens when I use the Fly component with the HB Window Construction Material component.

Looking forward to your help! 🙂

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.pollination.solutions/user_avatar/discourse.pollination.solutions/mostapha/32/5761_2.png) [@mostapha](https://discourse.pollination.solutions/u/mostapha)\
**Post date:** [December 29, 2024, 2:51am UTC](https://discourse.pollination.solutions/t/issue-with-fly-component-window-material/4620/2 "2024-12-29T02:51:48Z")

</div>

Hi @alaasaba, it’s hard to tell what might be going in. Can you share the script or a simplified version of the script with us to recreate the issue? Thanks.

---

<div class="post-metadata">

**Author:** ![alaasaba](https://discourse.pollination.solutions/user_avatar/discourse.pollination.solutions/alaasaba/32/12033_2.png) [@alaasaba](https://discourse.pollination.solutions/u/alaasaba)\
**Post date:** [December 29, 2024, 5:24am UTC](https://discourse.pollination.solutions/t/issue-with-fly-component-window-material/4620/3 "2024-12-29T05:24:28Z")

</div>

Yeah sure, thank you for responding @mostapha!

Please find the attached sample file.  
[20241229 - MFPC Walls & Windows - Sample.gh](https://discourse.pollination.solutions/uploads/short-url/4qm3VvecGXy1g2mpn4W24rkWLrC.gh) (122.6 KB)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.pollination.solutions/user_avatar/discourse.pollination.solutions/mostapha/32/5761_2.png) [@mostapha](https://discourse.pollination.solutions/u/mostapha)\
**Post date:** [December 30, 2024, 2:26am UTC](https://discourse.pollination.solutions/t/issue-with-fly-component-window-material/4620/4 "2024-12-30T02:26:58Z")

</div>

Hi @alaasaba,

Thank you for sharing the script. You are using the slider values to set the values for both opaque and window constructions. That results in a situation with both constructions having the same name.

I used the concatenate component to rename the one for the window which solved the problem.

 ![image](https://discourse.pollination.solutions/uploads/default/original/2X/1/147526337d399a68f43014be8a0544d51a5ad45d.png)

I suggest doing the same with the opaque construction. Here is the updated file for your reference.

[20241229 - MFPC Walls & Windows - Sample.gh](https://discourse.pollination.solutions/uploads/short-url/tVKKfwZXmNB4lUOVFCDmmyiYHaq.gh) (129.3 KB)

---

<div class="post-metadata">

**Author:** ![alaasaba](https://discourse.pollination.solutions/user_avatar/discourse.pollination.solutions/alaasaba/32/12033_2.png) [@alaasaba](https://discourse.pollination.solutions/u/alaasaba)\
**Post date:** [December 30, 2024, 6:25pm UTC](https://discourse.pollination.solutions/t/issue-with-fly-component-window-material/4620/5 "2024-12-30T18:25:52Z")

</div>

It is working perfectly now on my script. Thank you so much!
