# Any news on UNGRAFT as a right-click output modifier?

**URL:** <https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [March 17, 2026, 10:51am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074 "2026-03-17T10:51:55Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [March 19, 2026, 12:28am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/21 "2026-03-19T00:28:12Z")

</div>

> [@Fabio\_Franchetti](#):
>
> It’s a matter of luck and applications. Consider your example tree {0;0;x;0;y;0}. Imagine you have to split it and you end up with the branches with all x OR all y being = 0. If you simplify you break the structure

You know… 🤔 … if path indexing started at 1, and extraneous zeros were added still added as zeros this all wouldn’t be a problem.

---

<div class="post-metadata">

**Author:** ![Fabio\_Franchetti](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fabio_franchetti/32/773331_2.png) [@Fabio\_Franchetti](https://discourse.mcneel.com/u/Fabio_Franchetti)\
**Post date:** [March 19, 2026, 12:42am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/22 "2026-03-19T00:42:06Z")

</div>

I think it might be getting late for both of us, this one does not quite add up. Let us sleep on it and pick it up another day

---

<div class="post-metadata">

**Author:** ![dfytz1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dfytz1/32/478701_2.png) [@dfytz1](https://discourse.mcneel.com/u/dfytz1)\
**Post date:** [March 19, 2026, 8:15am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/23 "2026-03-19T08:15:31Z")

</div>

> [@maje90](#):
>
> I’ve never find once a practical scenario where a logic without using Simplify stops working if I use Simplify.

I attached a very simple example

[unnamed.gh](https://discourse.mcneel.com/uploads/short-url/7LHPcCHgmWO4JItSjES33AbU0TW.gh) (18.3 KB)

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

As you can see, in the end i needed to get all my points connected by the polyline. Two different results, the only difference being in the top case one line is used instead of three.

And **it can happen to subbranches too** , not only to main branch.

One day I found myself in such scenario in a huge algorithm, and i had to go to the very beginning and replace all simplify. I never use it since then.

Volker mentioned that trim tree also gets rid of some information:

> [@Volker\_Rakow](#):
>
> If the input data is less complex (just a list, not a tree), the component still outputs the maximally necessary extra depths of path hierarchy

and he has the point, but as of right now, i do not remember myself braking anything with trim tree approach

---

<div class="post-metadata">

**Author:** ![maje90](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/maje90/32/771922_2.png) [@maje90](https://discourse.mcneel.com/u/maje90)\
**Post date:** [March 19, 2026, 8:36am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/24 "2026-03-19T08:36:24Z")

</div>

Oh, ok thanks for the example.  
Usually I “solve” that like this:

 ![2026-03-19 09_31_57-Grasshopper - unnamed_](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/c/6/6c634a7e2a38859a0a6322b16fc228b6a404ec3e.png)  
… or something similar with list length… But if this happens to me it means I did something wrong beforehand, imo…  
(but depends on the context, I understand your example… it happens…)

Anyway… is Suirify any useful here?

---

<div class="post-metadata">

**Author:** ![dfytz1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dfytz1/32/478701_2.png) [@dfytz1](https://discourse.mcneel.com/u/dfytz1)\
**Post date:** [March 19, 2026, 8:49am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/25 "2026-03-19T08:49:08Z")

</div>

Its a fine method, but again, it fixes the problem only for simple problem like this, **not for subbranches** , as the flatten you used would ruin the data structure. And again, the problem could be completely avoided just using trim tree 🙂

---

<div class="post-metadata">

**Author:** ![maje90](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/maje90/32/771922_2.png) [@maje90](https://discourse.mcneel.com/u/maje90)\
**Post date:** [March 19, 2026, 9:04am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/26 "2026-03-19T09:04:57Z")

</div>

> [@dfytz1](#):
>
> it fixes the problem only for simple problem like this, **not for subbranches** ,

If the datatree is more complex, the result of Trim Tree would not be an empty/null orange stream.  
This problem occurs to me only when i’m **expecting** a complex datatree but in reality the data come as like as the starting flow is a lone geometry.

It’s just a matter of a specific datatree problem, i guess anyone of us here manage to solve it case by case.  
Anyway, we are discussing “fired air” here… and OT.

---

<div class="post-metadata">

**Author:** ![Fabio\_Franchetti](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fabio_franchetti/32/773331_2.png) [@Fabio\_Franchetti](https://discourse.mcneel.com/u/Fabio_Franchetti)\
**Post date:** [March 19, 2026, 9:13am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/27 "2026-03-19T09:13:49Z")

</div>

I would say it works, but it is a classic example of bulldozing the house to rearrange the furniture. In general, as long as it works and people are happy with the results, that is fine, but it is an approximate and not fully conscious approach. This is what I mean when I say that tools like Simplify and Suirify are counterproductive: they let you skip the understanding and still get a result, which over time means unlearning rather than learning

---

<div class="post-metadata">

**Author:** ![maje90](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/maje90/32/771922_2.png) [@maje90](https://discourse.mcneel.com/u/maje90)\
**Post date:** [March 19, 2026, 9:20am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/28 "2026-03-19T09:20:37Z")

</div>

> [@Fabio\_Franchetti](#):
>
> This is what I mean when I say that tools like Simplify and Suirify are counterproductive: they let you skip the understanding and still get a result, which over time means unlearning rather than learning

I’m pretty confident nowaday I personally manage most complex scenarios, fully understanding what’s going on in a datatree… but I can be wrong and I always want to learn new stuff!

At the cost of going further OT, can someone post a practical example where Suirify does the job while other solutions are “impossible” or way more complex without it?

---

<div class="post-metadata">

**Author:** ![Bernd\_Möller](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/bernd_m%C3%B6ller/32/479936_2.png) [@Bernd\_Möller](https://discourse.mcneel.com/u/Bernd_M%C3%B6ller)\
**Post date:** [March 19, 2026, 9:20am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/29 "2026-03-19T09:20:38Z")

</div>

> [@Fabio\_Franchetti](#):
>
> The right-click context menu on inputs/outputs already offers Flatten, Graft, and Simplify. A fixed single-level Trim (called UNGRAFT more easily) would be the natural counterpart to Graft; one adds a level, the other removes it.

Yes, please!  
I’m not a huge fan of simplify as I tend to build up stuff that can handle variable tree structure, i.e. if it works with 0;1 it should work with 0;2;0;1 as well without messing things up. Ideally whatever comes out of a this also keeps the same tree structure. Simply (and worse flatten 😉 ) don’t do that.

---

<div class="post-metadata">

**Author:** ![dfytz1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dfytz1/32/478701_2.png) [@dfytz1](https://discourse.mcneel.com/u/dfytz1)\
**Post date:** [March 19, 2026, 9:22am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/30 "2026-03-19T09:22:32Z")

</div>

> [@maje90](#):
>
> If the datatree is more complex, the result of Trim Tree would not be an empty/null orange stream.

Yes, you would not get an empty branch, but the trim would trim one level deeper than you want it too. So the result would be incorrect

The fundamental problem with simplify - if you used graft before it on a single branch, it completely ignores it, but does not ignore it with multiple branches.

So you get different depths of data structure, unintentionally and without control. And often you can not predict when this will happen.

---

<div class="post-metadata">

**Author:** ![Fabio\_Franchetti](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fabio_franchetti/32/773331_2.png) [@Fabio\_Franchetti](https://discourse.mcneel.com/u/Fabio_Franchetti)\
**Post date:** [March 19, 2026, 9:51am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/31 "2026-03-19T09:51:53Z")

</div>

> [@maje90](#):
>
> At the cost of going further OT, can someone post a practical example where Suirify does the job while other solutions are “impossible” or way more complex without it?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/7/0/c70678ac751b7335741344507b34b713f70627eb.png)

If you Simplify each stream before merging, it does nothing; If you Simplify once after merging, it does not work consistently

---

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [March 19, 2026, 11:02am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/32 "2026-03-19T11:02:10Z")

</div>

> [@Fabio\_Franchetti](#):
>
> this one does not quite add up

Of course it adds up. What about it doesn’t make sense?

You’re probably familiar with how certain components output a -1 as a sentinel value, like Item Index, for example:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/8/0/68089b97feb77d7fe5bc8e99f359648c33b26311.png)

Same idea, just with different stripes for paths. If an added zero is hierarchically extraneous, use a -1 instead of a 0. This way, what is a procedural artifact can be distinguished from what is hierarchically significant. Simplify could then appropriately target the -1s without the danger of collapsing meaningful zeros.

In the above, I suggested starting counting from one and using zeros instead of -1, but it is the same idea.

---

<div class="post-metadata">

**Author:** ![Fabio\_Franchetti](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fabio_franchetti/32/773331_2.png) [@Fabio\_Franchetti](https://discourse.mcneel.com/u/Fabio_Franchetti)\
**Post date:** [March 19, 2026, 11:30am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/34 "2026-03-19T11:30:32Z")

</div>

Yes, but the problem remains, you have just shifted the numbering from 0,n to 1,n+1. How would you automatically distinguish a level that is needed from one that is not in order to assign it a 0?

- A Divide Curve with {1} containing curves 1, 2, 3 would generate
  - {1;1}(points)
  - {1;2}(points)
  - {1;3}(points)

- A Divide Curve with {1} containing just one curve would generate
  - {1;1}(points)

So what then? The structure is the same regardless of whether the extra level is meaningful or redundant. You cannot tell the difference automatically, which is exactly why it has to be a conscious decision by the user, and why I am talking about Ungraft/Stunt.

---

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [March 19, 2026, 11:35am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/35 "2026-03-19T11:35:45Z")

</div>

> [@Fabio\_Franchetti](#):
>
> How would you automatically distinguish a level that is needed from one that is not in order to assign it a 0?

This is determined by the component. It knows how many extra integers it must add, as it is constant value. It can evaluate the input given to it against output it will produce, and either create 0 or -1. The structure is different because -1 != 0. To locally ungraft/stunt a -1 remains a decision by the user, but in a way becomes meaningless.

---

<div class="post-metadata">

**Author:** ![Fabio\_Franchetti](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fabio_franchetti/32/773331_2.png) [@Fabio\_Franchetti](https://discourse.mcneel.com/u/Fabio_Franchetti)\
**Post date:** [March 19, 2026, 12:16pm UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/36 "2026-03-19T12:16:54Z")

</div>

* * *

I have some doubts about this. It seems unintuitive and could break structures.

Take the previous example: a tree with

- {0} containing curves 0, 1, 2
- {1} containing curves 0, 1

After Divide Curve it becomes

- {0;0}(points)
- {0;1}(points)
- {0;2}(points)
- {1;0}(points)
- {1;1}(points)

Now imagine another tree arriving in parallel

- {2} containing curve 0
- {3} containing curve 0

After Divide Curve, with your logic, this would become

- {2;-1}(points)
- {3;-1}(points)

If you then merge them you get

- {0;0}(points)
- {0;1}(points)
- {0;2}(points)
- {1;0}(points)
- {1;1}(points)
- {2;-1}(points)
- {3;-1}(points)

Keep in mind that on the opposite side, we do not necessarily want to clean the last level every single time either. If you cut the -1 level before merging, the final tree doesn’t make sense; If you don’t cut it it doesn’t make sense either: each list {n;m} is the points of the (m+1)-th curve of the (n+1)-th list. So {3;-1} would be the points of the 0th curve of the fourth list? What does that even mean?

* * *

---

<div class="post-metadata">

**Author:** ![Fabio\_Franchetti](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fabio_franchetti/32/773331_2.png) [@Fabio\_Franchetti](https://discourse.mcneel.com/u/Fabio_Franchetti)\
**Post date:** [March 19, 2026, 12:29pm UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/37 "2026-03-19T12:29:15Z")

</div>

Also: you lose possibility to flip the matrix

---

<div class="post-metadata">

**Author:** ![Volker\_Rakow](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/volker_rakow/32/770451_2.png) [@Volker\_Rakow](https://discourse.mcneel.com/u/Volker_Rakow)\
**Post date:** [March 19, 2026, 1:15pm UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/40 "2026-03-19T13:15:35Z")

</div>

We’re circling the drain. “Ungraft” is a good idea, although I don’t think it should be limited to a constant -1. The Youtrack David made: [RH-51526](https://mcneel.myjetbrains.com/youtrack/issue/RH-51526/Bloat-those-relays) does not adress Ungraft specifically, but the ability to add modifiers to relays. It’s doubtful we’re going to see developers make any efforts to add ungraft as an option.

---

<div class="post-metadata">

**Author:** ![Fabio\_Franchetti](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fabio_franchetti/32/773331_2.png) [@Fabio\_Franchetti](https://discourse.mcneel.com/u/Fabio_Franchetti)\
**Post date:** [March 19, 2026, 1:45pm UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/41 "2026-03-19T13:45:24Z")

</div>

That was related to the original linked post (or at least the first time I saw this topic come up), where the core idea was good but still rough. Applied to relays specifically, it does not make much sense.

If the proposal is now more structured and solid (I hope so), and if it gets more traction and is not just my own wish, maybe there is more hope this time

---

<div class="post-metadata">

**Author:** ![Fabio\_Franchetti](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fabio_franchetti/32/773331_2.png) [@Fabio\_Franchetti](https://discourse.mcneel.com/u/Fabio_Franchetti)\
**Post date:** [March 21, 2026, 10:38am UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/42 "2026-03-21T10:38:06Z")

</div>

Ok, we have at least a couple of positive answers and likes to the post, so now how do we reach the Devs?

---

<div class="post-metadata">

**Author:** ![dfytz1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dfytz1/32/478701_2.png) [@dfytz1](https://discourse.mcneel.com/u/dfytz1)\
**Post date:** [March 21, 2026, 2:21pm UTC](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074/43 "2026-03-21T14:21:18Z")

</div>

I do not think its big enough to change it. And i do not think it would be backward compatible. They have so much stuff to work on that would be literally the last thing

[Previous page](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074.md?page=1)

[Next page](https://discourse.mcneel.com/t/any-news-on-ungraft-as-a-right-click-output-modifier/217074.md?page=3)
