Select object by layer, delete, and... - Grasshopper2024-03-28T22:18:43Zhttps://www.grasshopper3d.com/forum/topics/select-object-by-layer-delete?commentId=2985220%3AComment%3A507262&feed=yes&xn_auth=noi cannot run such codes. and…tag:www.grasshopper3d.com,2011-12-28:2985220:Comment:5072622011-12-28T16:19:45.796ZFirat Aydinhttps://www.grasshopper3d.com/profile/FiratAydin
<p>i cannot run such codes. and i terribly need one of those. can you give me an example how to put entry etc and send?</p>
<p></p>
<p>THNX</p>
<p>i cannot run such codes. and i terribly need one of those. can you give me an example how to put entry etc and send?</p>
<p></p>
<p>THNX</p> Exactly. The list of points a…tag:www.grasshopper3d.com,2010-12-09:2985220:Comment:1407382010-12-09T00:29:34.221ZAndrea Polatohttps://www.grasshopper3d.com/profile/AndreaPolato
Exactly. The list of points and the list of values are the same length. List of values are rounded doubles. I have a mean of the values that are linked to the points that are exactly under each panel. I created a branch for each panel that has as items the values that are linked to the points.<br />
<br />
The panels are rectangular surfaces. They are above the points.<br />
<br />
The target value is a single number, a slider.<br />
<br />
<p style="text-align: left;"><img alt="" src="http://storage.ning.com/topology/rest/1.0/file/get/2768625413?profile=RESIZE_1024x1024" width="721"></img></p>
<br />
<br />
Maybe, this discussion could help you to…
Exactly. The list of points and the list of values are the same length. List of values are rounded doubles. I have a mean of the values that are linked to the points that are exactly under each panel. I created a branch for each panel that has as items the values that are linked to the points.<br />
<br />
The panels are rectangular surfaces. They are above the points.<br />
<br />
The target value is a single number, a slider.<br />
<br />
<p style="text-align: left;"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768625413?profile=RESIZE_1024x1024" alt=""/></p>
<br />
<br />
Maybe, this discussion could help you to understand the process.<br />
<a href="http://www.grasshopper3d.com/forum/topics/subdividing-in-branches-from"></a><br />
<br />
Thank you for your help. Sorry, still don't get it. Is…tag:www.grasshopper3d.com,2010-12-08:2985220:Comment:1407292010-12-08T23:51:10.733ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
Sorry, still don't get it. Is the following correct:<br />
<br />
You have a list of points {P}. And you have a list of values {V} (numbers?). These two lists are the same length, and the point at P[i] is 'linked' to the value at V[i].<br />
<br />
You also have a list of panels {S} (Surfaces of Breps I assume), but I'm not sure how this ties into it.<br />
<br />
Then you have a "target value" (single number? a list of numbers?).<br />
<br />
In your bake operation, you want to see if the value in {V} is less than or greater than the target…
Sorry, still don't get it. Is the following correct:<br />
<br />
You have a list of points {P}. And you have a list of values {V} (numbers?). These two lists are the same length, and the point at P[i] is 'linked' to the value at V[i].<br />
<br />
You also have a list of panels {S} (Surfaces of Breps I assume), but I'm not sure how this ties into it.<br />
<br />
Then you have a "target value" (single number? a list of numbers?).<br />
<br />
In your bake operation, you want to see if the value in {V} is less than or greater than the target value and bake (the points?, the panels?) to a different layer accordingly.<br />
<br />
Am I correct so far?<br />
<br />
--<br />
David Rutten<br />
david@mcneel.com<br />
Seattle, WA Ok, i'll try to make it simpl…tag:www.grasshopper3d.com,2010-12-08:2985220:Comment:1406982010-12-08T22:50:33.615ZAndrea Polatohttps://www.grasshopper3d.com/profile/AndreaPolato
Ok, i'll try to make it simple. I know that "referenced value" is the wrong name, referenced is totally another thing. Maybe it was better saying external value.<br />
I have a list of points. Each point has a value associated from another list. I have a list of surfaces above these points. I made some scripted components that tell me wich points are affected by each panel and perform the mean value on the associated values. Depending on this mean value (external value) and a target value I have to…
Ok, i'll try to make it simple. I know that "referenced value" is the wrong name, referenced is totally another thing. Maybe it was better saying external value.<br />
I have a list of points. Each point has a value associated from another list. I have a list of surfaces above these points. I made some scripted components that tell me wich points are affected by each panel and perform the mean value on the associated values. Depending on this mean value (external value) and a target value I have to choose in which layer I have to bake each panel (I have 5 or 6 different layer). At the moment I'm working with 76 panels, but in the near future I have to work with thousands of panels.<br />
I get this values from daylight simulation in Radiance and the layers are the radiance material that I have to apply to the panels, so this process will be repeated n times.<br />
<br />
It's quite difficult to explain in words, I know.<br />
Bye What do you mean by "referenc…tag:www.grasshopper3d.com,2010-12-08:2985220:Comment:1406852010-12-08T22:04:46.757ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
What do you mean by "referenced value"?<br />
<br />
--<br />
David Rutten<br />
david@mcneel.com<br />
Seattle, WA
What do you mean by "referenced value"?<br />
<br />
--<br />
David Rutten<br />
david@mcneel.com<br />
Seattle, WA I made a little piece of the…tag:www.grasshopper3d.com,2010-12-08:2985220:Comment:1406242010-12-08T18:53:30.510ZAndrea Polatohttps://www.grasshopper3d.com/profile/AndreaPolato
I made a little piece of the code working.<br></br>
<br></br>
<code><br></br>
List <int < srfs = new Listi <int <();<br></br>
System.Collections.Generic.List < Guid < ids = new System.Collections.Generic.List <Guid<();<br></br>
foreach(Rhino.DocObjects.RhinoObject obj in srf)<br></br>
{<br></br>
//obj.Select(true); //select objects in the layer<br></br>
ids.Add(obj.Id);<br></br>
}<br></br>
if(del == true) //bool input<br></br>
{<br></br>
for(int i = 0; i < ids.Count; i++)<br></br>
{<br></br>
doc.Objects.Delete(ids[i],…</code>
I made a little piece of the code working.<br/>
<br/>
<code><br/>
List <int < srfs = new Listi <int <();<br/>
System.Collections.Generic.List < Guid < ids = new System.Collections.Generic.List <Guid<();<br/>
foreach(Rhino.DocObjects.RhinoObject obj in srf)<br/>
{<br/>
//obj.Select(true); //select objects in the layer<br/>
ids.Add(obj.Id);<br/>
}<br/>
if(del == true) //bool input<br/>
{<br/>
for(int i = 0; i < ids.Count; i++)<br/>
{<br/>
doc.Objects.Delete(ids[i], false);<br/>
}<br/>
} else<br/>
return;<br/>
</code><br/>
<br/>
This part retrieve the Guid of selected objects on a layer (srf is the list of object in layer) and delete them. It was so simple...