Quantcast
Channel: Grasshopper Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 3655

How to get a specific component after a cluster is exploded? C#

$
0
0

@nickchen11 wrote:

Hello there,

I wonder what is the best way to catch specific component derived from a exploded cluster in C#? I noticed that .ExplodeCluster method doesnt have a return type. Therefore, I tried to get a list of GUID from the cluster which hasnt been exploded first in order to catch a specific component. However, this approach doesnt seem to work as component GUIDs will be regenerated after a cluster is exploded. (not sure if this is the right way to do.)

Another approach I can think of but Im not quite sure how to do it at the moment is checking the latest components added to the gh document and select the one I need within the list. However, with this approach, I’m not sure how GH defines the latest components added to the document as once a cluster is exploded, there will be many added at the same time.

Does anyone know a solution? Thanks in advance.

Posts: 9

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 3655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>