<type 'ZuiPythonComponent'> for filtering / filter ghpython components

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:
...
1 Like
def FindOtherPythonObjects():
    pythonObjects = []
    ghObjects = ghenv.Component.OnPingDocument().Objects
    for obj in ghObjects:
        if obj.ComponentGuid == ghenv.Component.ComponentGuid:
            if obj.InstanceGuid != ghenv.Component.InstanceGuid:
                pythonObjects.append(obj)
    return pythonObjects
2 Likes

Thank you very much!