algorithmic modeling for Rhino
Hi, I would like to collect all messages of all components with one single script component from the top level document so that one will be aware what's going on even inside clusters.
Is there a way to iterate and access components inside a cluster from the outside?
I noticed the "document" method of GH_Cluster, however, this specific class has not been documented. I have no idea how to deal with it.
Best regards, WP
Tags:
Hi,
I have writen a cluster named cluster_protector which maybe solve your problem when put it into a cluster!
Tnx Panda, that could be a way. However, that means that every cluster should contain it. I found a way to iterate over "nested" objects. That way one only needs on component at the very top. The proof of concept go goes something like this:
for obj in doc.Objects:
if obj.Name == 'Cluster':
cdoc = obj.Document(None)
for cobj in cdoc.Objects:
print cobj.Name
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by