Grasshopper

algorithmic modeling for Rhino

Can someone explain the behavior I am seeing below with the weave component?

Two inputs with data trees of similar size, and a pattern input of the same structure. When the T-F pattern is applied, the result is not 1-to-1. Rather, it appears that when a pattern within a data tree has a branch that includes both a True and a False, every item from that branch is pushed to the "woven" data. The result is a data tree of the same length, but with more items.

See {4} below.

Views: 1456

Attachments:

Replies to This Discussion

I think you want Pick'n'Choose rather than Weave.

Weave will try not to discard any of the input data. Like if you weave two strands of fibre together, you get a single new strand that contains both old strands. Pick'n'Choose will decide on a per index basis which lists to take a value from.

--

David Rutten

david@mcneel.com

Tirol, Austria

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service