Grasshopper

algorithmic modeling for Rhino

It seems to me that clusters with a containing "Null Item"-Component don't work. When working inside the cluster everything is ok, but after closing it turns yellow. this occurs both in the 08.66/Rh4 and in 09.14/Rh5.

(I have to use the "Null-Item" quite often, since the "ReplaceNulls" doesn't replace empty Lists)

Any ideas how to work around this? or do I have to insert the group over and over?

Views: 467

Attachments:

Replies to This Discussion

The problem is not with the "null item" component in the cluster, but the fact that clusters do not properly handle receiving empty inputs. I keep a "create null item" script handy as a workaround for these situations - as long as a cluster receives SOMETHING, even a null value, it will function properly. I feed it in along with whatever regular inputs the cluster is supposed to receive. The script looks like this:

private void RunScript(ref object A)
{
A = null;
}

This is an annoying bug, and has come up before. David....?

http://www.grasshopper3d.com/forum/topics/clusters-with-optional-in...

http://www.grasshopper3d.com/forum/topics/cluster-comment-question-...

I'm on the road now but I'll try and take a look at this before 0.9.0015 goes out. It's probably just a matter of marking all Cluster inputs as OPTIONAL so they don't prevent the cluster from running if they're empty.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

I made it so that all cluster inputs are now optional. We'll see whether it works any better this way.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

This is how it's supposed to work right?

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service