For some reason points that are output of a python node are being previewed in the Revit viewport which obscures other geometry. This is not a huge deal since the preview can be hidden in the Dynamo workspace, but I still found it interesting as what I am trying to do with my definition is exactly this: to output geometry into the Revit viewport. Now I seem to have done it accidentally.
Can someone possibly explain this behaviour? Below is the code for the python node (can’t upload the .py file as I’m a new user… wtf?).
from Autodesk.DesignScript.Geometry import *
in_points = IN
index_groups = IN
out_points = 
for grp in index_groups:
---- indexes = [grp.A, grp.B, grp.C]
---- if grp.Count == 4:
---- points = [in_points[i] for i in indexes]
OUT = out_points