Grasshopper

algorithmic modeling for Rhino

Hi All,

Another issue..

I'm trying to multiply a number by the branch it is on. So in this case I have a datatree with 20 branches. Each branch has the number 2 on it. Then the number 2 on branch 0 should have the answer 2 * 0 = 0

The number 2 on branch 1 should have the answer 2 * 1 = 2

The number 2 on branch 2 should have the answer 2 * 2 = 2

I want to code this in python. I succeeded to multiply the numbers. But the outcome of the python component has the number of branches as integers on each branch. I only want one answer per branch. 

What is causing the python script to output that amount of integers? And how do I get only one integer per branch?

Thanx!

Views: 525

Attachments:

Replies to This Discussion

Hi Steven

Check the attached file

file

Attachments:

file

Attachments:

Thanx again Naruto!:) 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service