Grasshopper

algorithmic modeling for Rhino

Cull index and keep the list structure with placeholders?

Is culling the index of a list but keeping the result list with same ammount of items/placeholders is possible somehow?

Because using hoopsnake and shortest walk culling the completed indeces of shortest walk curve network cumulative result messes up.

Views: 1585

Attachments:

Replies to This Discussion

Instead of culling then, why not use Replace Item? Specifying an index to be replaced but not a value will give you the same structure but with nulls in those places.

This is why I should stop trying to figure it out for hours and just ask, this was an easy fix thx!!!

Try the sift component. It will split your data out into multiple streams, but keep null placeholders for each line item.

Sleep deprived so accidentally started new thread but ill post this here too of the current problem I am facing. Null is not counted as an index in the list? Shortest walk component specifically Succession indexes used to list curves from the curve group is not resulting in same path just some scattered bits so the logical conclusion I am coming to is that its ignoring nulls for index counting purposes. The question is how do I work around this where I need some sort of placeholder in the list.

Attachments:

But hey for some reason the genius comes in when you are sleep deprived, so instead of replacing it with nothing, I just replace it with a line away from the structure so it still is counted as an index and doesn't mess up anything, a bit slower but not too much maybe it will stack up later on but so far it's running ok

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service