Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5745

for filtering

$
0
0

Where can I find the type of a GH python object / <type ‘ZuiPythonComponent’>?
I want to filter for these, but can not find the type like for the gh_group as seen below.
It’s not part Grasshopper.Kernel.Special, so where is it then?
I didn’t find it in ghenv.Component either.

Thanks!

ghObjects = ghenv.Component.OnPingDocument().Objects
for obj in ghObjects:
    if type(obj) == gh.Kernel.Special.GH_Group:
...

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5745

Trending Articles