Grasshopper

algorithmic modeling for Rhino

Hi all,

I am having a trouble of setting Valuelist's selectItem without expire the downstream components. I just want all downstream components wait until I set Document.NewSolution(false). Just like number slider.

Is there any way to override ValueList.SelectItem, or should I lock it first, and set selectItem, and do something, then unlock?

Thanks in advance.

Mingbo

Views: 498

Replies to This Discussion

Hi Tom,

Thanks for you reply. I did similar in my component to decide if it needs to be recomputed when ValueList changed the item. But this only saved my partial life. The problem is: there are other components are also connected to Valuelist directly. I don't want to control all that are connected to the Valuelist except my component.

It might be easier to control ValueList directly, instead all downstream components.

I guess the way ValueList.selectItem works like: (compare to Slider)

ValueList.selectItem :

1)select the Item at index, (I wanna do something here) and then 2) ExpireSolution(true);

NumberSlider.TickValue :

1)set the tick at index, and then 2) ExpireSolution(false);

Don't know how to change ExpireSolution to false for valueList.selectItem, or stop after 1) selected the item.

Or is there any settings to stop connection between ValueList and other component right after ValueList its ExpireSolution(true).

Thanks.

Mingbo

Hi Tom, thanks again, I do have control of my component now. But I don't have control to all other components. Please see attached image.

in this case, I set ValueList A from 1 to 3, and B from 1 to 4. 

I want both process 1 (blue) or process 2 (red) happen in one solution. otherwise, Concat will compute twice.

Thanks again for you reply.

Mingbo

I answered your question on discourse.

Thanks for your reply anyway.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service