Grasshopper

algorithmic modeling for Rhino

hello friends,

i'm looking for a possibility to shift the data to the next following index in a List. That means i want to get the Data of index "0" to Index "1", the data from index "1" to index "2", the data from "2" to "3", and so on.. At the end the last index should switch to index "0", so that a kind of rotation has happened.

The function "shift list" is not what i'm looking for. (Or?)

Thank you for helping!

Jo.

Views: 1037

Replies to This Discussion

make sure the "wrap" input is set on true and shift the list by "-1" :

Yea, thanks a lot! Didnt get the thing with the "warp". For what does it stands for?

"Wrap" determines weather you want your shifted item to be added on the opposite side of the list or not.

ah, i catch it. thx

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