We need your help! 🔥
Please consider disabling your ad-blocker to support this website! 🔑
We are a free, community-supported website! 🥰
We only display small unobtrusive ads which help us stay online! 💯
Thank you in advance! ❤️
Color
Curve
Domain
List
Mesh
Number
Plane
Point
SubD
Surface
Transform
Twisted Box
Vector

Sift Indices

Sift a list of items into two lists based on a set of indices, those that are at the indices and those which are not. Each resulting list will have the same length and order as the input list but will be filled with null placeholders for items that went to the other list.

Inputs

NameIDDescriptionType
ListLList of items to siftGeneric Data
IndicesiSet of sifting indices (should not have duplicate index values)Integer

Outputs

NameIDDescriptionType
At ii=Resulting list of items at the sifting indices, with null placeholders representing the items in the 'Not i' list Perform operations on this list then combine this list back together with the 'Not i' list using Grasshopper's Combine Data component which replaces nulls.Generic Data
Not ii≠Resulting list of items not at the sifting indices, with null placeholders representing the items in the 'At i' list Perform operations on this list then combine this list back together with the 'At i' list using Grasshopper's Combine Data component which replaces nulls.Generic Data

Video Tutorials

Site design © Robin Rodricks.   Pufferfish and associated data © 2024 Michael Pryor.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service