Grasshopper

algorithmic modeling for Rhino

Hi all,

First of all: why is it so easy to accidentally post your discussion before it's finished .. must be Friday!! Don't enter after a tag too..

So I've been toying around with hoopsnake (which is great, btw) and I don't seem to get loop sequencing and automated loops. The examples didn't teach me much either, so I decided to ask for help.

Note: I've made the attached file based on the actual (huge) one I'm working on, using the same principles. The picture doesn't show much, but it does indicate the steps.

THE SCRIPT:

Input: branches with data

Loop1 (step2): selects the branch with the highest value of item 2, feeds to loop 2 and 3 and removes the branch

Loop2 (step1): removes item 1 of the selected branch from a predetermined set

Loop3 (step3): multiplies item 1 and 2 if item 1 is a member of the above set (otherwise it is zero)

THE PROBLEM:

If I manually step each hoopsnake in the order indicated (loop 2, 1, then 3) for five times, I get the results I want (also copied to the orange 'expected results' panel).

However, I can't figure out how I should wire up the T* gates, or whether the iteration boundaries are correct. I would say the current T* is definitely wrong, the iterations probably too.

Could someone shed some light on this?

Thanks!

Pieter.

Views: 438

Attachments:

Replies to This Discussion

FYI, I mistakenly posted my discussion without any content first - I updated it now.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service