# BUG in Query Model Objects

**URL:** <https://discourse.mcneel.com/t/bug-in-query-model-objects/224910>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [November 20, 2026, 10:34am UTC](https://discourse.mcneel.com/t/bug-in-query-model-objects/224910 "2026-11-20T10:34:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piotr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piotr/32/635473_2.png) [@Piotr](https://discourse.mcneel.com/u/Piotr)\
**Post date:** [November 20, 2026, 10:34am UTC](https://discourse.mcneel.com/t/bug-in-query-model-objects/224910/1 "2026-11-20T10:34:32Z")

</div>

It is a about layer filter:

Looking at the layer structure, having Matching Method selects as _Ends With_ it still selects the _axis_ layer.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/f/9/3f980c83d1cd975b0185fd3d33085e59d0a21f9b.png)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/1/2/712cf3819cc5a79069b1f7f14d9f7c21bc9dc31e.png)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/5/1/a5189ec33188ed0a84eaabe63a96e606fb048a6b.png)

Query Model Layer selects it correctly:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/5/e/d5ea09aa4bce4bc56b3e837eaf135f19f51d54ce.png)

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [November 20, 2026, 1:06pm UTC](https://discourse.mcneel.com/t/bug-in-query-model-objects/224910/2 "2026-11-20T13:06:12Z")

</div>

You may want to share the file or a simplified version…

---

<div class="post-metadata">

**Author:** ![Piotr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piotr/32/635473_2.png) [@Piotr](https://discourse.mcneel.com/u/Piotr)\
**Post date:** [November 20, 2026, 1:27pm UTC](https://discourse.mcneel.com/t/bug-in-query-model-objects/224910/3 "2026-11-20T13:27:07Z")

</div>

I think where the problem is, which is presented on the sample below:

The layer filter doesn’t reach inside the block. It reads the master layer only - the block is stored on.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/3/9/d392bf6daa728dc306ac8295feca5c5ac08a004e.png)

Every day I’m learning something new.

---

<div class="post-metadata">

**Author:** ![Piotr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piotr/32/635473_2.png) [@Piotr](https://discourse.mcneel.com/u/Piotr)\
**Post date:** [November 20, 2026, 1:37pm UTC](https://discourse.mcneel.com/t/bug-in-query-model-objects/224910/4 "2026-11-20T13:37:10Z")

</div>

Any tip how to handle this situation?

I want to remove sublayer from selection which I could do after Query Model, but Explode is damaging the whole scene.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/5/c/e5c73dfa454c19ac204d8584fe22c74fc6fa9028.png)

Test file attached. The goal is to load boxes only without exploding the block.

[BOXES test.3dm](https://discourse.mcneel.com/uploads/short-url/oHxdvIrHSYi5Wu6HEWkNIVEKXL7.3dm) (167.4 KB)

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [November 20, 2026, 1:45pm UTC](https://discourse.mcneel.com/t/bug-in-query-model-objects/224910/5 "2026-11-20T13:45:22Z")

</div>

I think you first need to sort based on object type. Explode is needed to see what is inside the block.

[2026-11-20\_get-boxes.gh](https://discourse.mcneel.com/uploads/short-url/3WWPTvUzpHlYFqpCPahuu3MTVZH.gh) (13.1 KB)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/a/4/9a4f7590c124df97de314f4cdeb86d5bc16fe6a3.png)

---

<div class="post-metadata">

**Author:** ![Piotr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piotr/32/635473_2.png) [@Piotr](https://discourse.mcneel.com/u/Piotr)\
**Post date:** [November 20, 2026, 1:50pm UTC](https://discourse.mcneel.com/t/bug-in-query-model-objects/224910/6 "2026-11-20T13:50:44Z")

</div>

This would kill the computation loading thousands of objects:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/3/7/9374db51a0d672e647a35309b3c970a0d1c80077.png)

That’s why I need the preselection but big thanks for your input, I will experiment with it.

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [November 20, 2026, 1:52pm UTC](https://discourse.mcneel.com/t/bug-in-query-model-objects/224910/7 "2026-11-20T13:52:34Z")

</div>

It all depends how you manage your objects…

---

<div class="post-metadata">

**Author:** ![Piotr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piotr/32/635473_2.png) [@Piotr](https://discourse.mcneel.com/u/Piotr)\
**Post date:** [November 20, 2026, 1:59pm UTC](https://discourse.mcneel.com/t/bug-in-query-model-objects/224910/8 "2026-11-20T13:59:33Z")

</div>

True. You, actually, provided superb solution by separating blocks from other geometry. 10 pts for you.
