Grasshopper

algorithmic modeling for Rhino

Hi all,

I am a beginner in scripting, this is the first script I have ever written... Today, I have encounter a problem with Python and would really appreciate if someone could help.

Problem: For some unknown reason the component is duplicating the input.

As seen in the two panels below, the 4 points have been duplicated 3 times even though the only script I have left enabled is asking "output = input".

When I just do the "output = input" operation in a new python component, it worked.

But when I tried copying everything into a new component, the problem came back.

So I assume it's something I wrote earlier that causes the problem? Which confuses me since I believe I disabled everything else...

Did I miss out something?

Also, is it possible to do the Grafting operation within python? I want a list to be grafted only for a part of the script? I tried ghpythonlib.component.GraftTree but nothing happened...

Thanks in advance.

Views: 325

Attachments:

Replies to This Discussion

Hi vincent

   Check the attached file

Attachments:

OMG THANK YOU!

I never thought that grafting a different list would affect what comes out of the entire thing!? Still so much to learn!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service