Ho to test for null objects in GhPython?

Hi RIL,

Usually there is no “Null”/None point, because Point3d is a structure. While Python can create None and assign it to any variable, strongly-typed .Net languages do not support None on plain structs. There is a special Point3d.Unset value, that is sometimes used for None. You can use is not None followed by and pt.IsValid. That will also filter out any infinite points.

1 Like