Grasshopper

algorithmic modeling for Rhino

Hi all,

beginner data management problem really...

3 branches different amount of data in each.

{0} 25

{1} 17

{2} 3

I want to move everything in {0} up 5,

I want to move everything in {1} up 5 and 10,

I want to move everything in {2} up 5 and 10 and 15,

Any ideas. I have been trying using the series component to create the right data structure but somehow its not working and i am sure there is a simple way?

Do i have to repeat the data so that the number of transform data matches the input list or is there a way to simply apply the transformation to everything in {0}{1} and {2} respectively depending on its structure ??

Hopefully this makes sense? I am not really sure but is it a job for stream - i cant understand why i cant get it to work.  Sorry i am sure this is covered in the forums, i have been looking but cant anything which helps specifically.

Many thanks

Chris

Views: 1760

Replies to This Discussion

I assumed that by 'move everything up' you meant add to the existing value.  If I misunderstood that then this is probably worthless.

Attachments:

Hi chris, 

thanks for your reply. Apologies for not writing a clear question. I actually meant move in Z direction which i should have phrased correctly. Sorry for the confusion. Basically everything in one branch i want to move z 5, second branch move 5 and then 10 in z, third branch move 5 10 and 15. Wondering if there is a way to do it without separating out the branches individually, i.e different transformations for different branches, whilst maintaining structure.

It would be useful to know. I am currently operating across separate branches now thereby losing control and requiring a great deal more scripting to get each branch to do what i want. Copy and pasting a lot of subsequent scripted manipulations. Somehow i cant get my head around the answer to this one.

thanks 

Either way works:

Hi Phillip,

Thanks for your response. Both of these nearly work, but they add the second transformations together?

This means that the first branch moves 5 Correct.

But the second branch and the third branch both move 15.

Any ideas?

Regards

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