So in one file, list item worked. As can be seen, only 1 point for each part of the surface is selected.
Tried to replicate it in another file, but for some reason its not working.
So in one file, list item worked. As can be seen, only 1 point for each part of the surface is selected.
Tried to replicate it in another file, but for some reason its not working.
Dear Charlotte,
To help you, help us first by uploading your file.
See this topmessage: Help us Help you, Before you call or email tech support
the GH result I see in these screenshot is coherent with the components on the gh canvas: can you please elaborate a bit more on what you are trying to do, and why you think List Item is not consistent in this particular case?
As a general best practice, I would advise against relying on specific list items by their index in your code (except in clearly defined cases like accessing the first or last element). This approach can lead to fragile and unscalable code, especially if the structure or length of the input list changes over time. Instead, consider more robust methods such as iterating through the list, using conditions to identify the elements you need, or leveraging data structures that are more appropriate for keyed access. This not only improves the maintainability of your code but also makes it more adaptable to dynamic or evolving input. Haing said that, it’s fine when your prototyping or input geometry is fixed,
She doesn’t understand that she is passing a list of surfaces to Deconstruct Brep and thusly, each branch of List Item has four corners for each surface division that she is scrolling through.
~whoosh~
![]()
@Charlotte_Wong_Yingf Attach some Panels to the outputs of you components so you can think through what’s happening.
Hi, my bad. I will attach the file now. The script is that one ungrouped script near the bottom right corner.
Grasshopper beginner 11h.gh (865.6 KB)
I’m trying to get it to select one point of each corner of all the divided surfaces of the brep. It worked for the first script, which is this
3.1.gh (29.4 KB)
. but it didnt work for the second script where it appears to be giving me points of the 4 corners of the entire brep when i go through the indexes in list item. The script is that one ungrouped script near the bottom right corner.
Grasshopper beginner 11h.gh (865.6 KB)
i tried pulling up the panels before posting on this forum. still couldnt tell what was wrong.
Grasshopper beginner 11h.gh (865.7 KB)
internalised the data. apologies guys. i realised that both scripts are actually doing the same thing ![]()
now my question is that im trying to project a geometry on each of the subdivided faces but it looks like the geometry has been scaled out of proportion and is not sticking to the planes.
ah yeah! how did you do it?
the base geometry to orient was wrong.
I will attach my file here.
Grasshopper beginner 11h-AtousaEdited.gh (860.8 KB)
Thank you!
your welcome!
please tag solution on my post.
It’s not the solution to the thread’s original question, but yes. Please start new threads for new questions.