# SplitTree mask

**URL:** <https://discourse.mcneel.com/t/splittree-mask/79325>\
**Category:** Grasshopper\
**Created:** [February 25, 2019, 9:53pm UTC](https://discourse.mcneel.com/t/splittree-mask/79325 "2019-02-25T21:53:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajaa](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rajaa/32/480978_2.png) [@rajaa](https://discourse.mcneel.com/u/rajaa)\
**Post date:** [February 25, 2019, 9:53pm UTC](https://discourse.mcneel.com/t/splittree-mask/79325/1 "2019-02-25T21:53:39Z")

</div>

Is there a way to write a relative mask for SplitTree (in V6).  
I was hoping there is support to separate all diagonal panels for example:  
{?;?;C}[C]

 ![image](https://global.discourse-cdn.com/mcneel/original/3X/8/6/861b02a446e559031356ae49008538856a222728.png)

---

<div class="post-metadata">

**Author:** ![dharman](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dharman/32/482663_2.png) [@dharman](https://discourse.mcneel.com/u/dharman)\
**Post date:** [February 25, 2019, 10:07pm UTC](https://discourse.mcneel.com/t/splittree-mask/79325/2 "2019-02-25T22:07:07Z")

</div>

That would be nice. I guess you could always use TStat and format to create the whole list of masks as per your screenshot.

Looks like it’s not going to be available until Gh2 🙄

> [@Using 'path\_count' and 'item\_count' with split tree](https://discourse.mcneel.com/t/using-path-count-and-item-count-with-split-tree/69034/5):
>
> The split tree notation is at the moment purely local. It basically says “given this path and this index, is this item covered?”. It doesn’t (yet) have any support for global tests that would involve knowing the topology of the entire tree. It’s something I need to look into whether it’s possible to add without a total rewrite. If I can’t it’ll have to wait for GH2.

---

<div class="post-metadata">

**Author:** ![rajaa](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rajaa/32/480978_2.png) [@rajaa](https://discourse.mcneel.com/u/rajaa)\
**Post date:** [February 25, 2019, 10:10pm UTC](https://discourse.mcneel.com/t/splittree-mask/79325/3 "2019-02-25T22:10:59Z")

</div>

Yes, it would be very useful indeed to allow proper mask in SplitTree.  
I hope @DavidRutten will support it in GH2.

For the method @dharman mentioned. It is a bit limiting, but works better than direct typing. Thanks for suggesting:  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/c/b/cbc7918c9ee3d95b2aa6ed4355336cc079d45e2b.png)

---

<div class="post-metadata">

**Author:** ![dasiv](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dasiv/32/517081_2.png) [@dasiv](https://discourse.mcneel.com/u/dasiv)\
**Post date:** [July 3, 2020, 11:16pm UTC](https://discourse.mcneel.com/t/splittree-mask/79325/4 "2020-07-03T23:16:40Z")

</div>

is it possible to create a split tree mask by the item count or list length?  
I have a tree with an arrangement of different numbers of items in each branch and want to pull only the branches with item\_count=4 but the mask does not support the syntax like the path mapper.

---

<div class="post-metadata">

**Author:** ![dasiv](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dasiv/32/517081_2.png) [@dasiv](https://discourse.mcneel.com/u/dasiv)\
**Post date:** [July 3, 2020, 11:22pm UTC](https://discourse.mcneel.com/t/splittree-mask/79325/5 "2020-07-03T23:22:57Z")

</div>

just found the solution after better searching.
