Hi, I’m trying to create a simple loop in python that filters out a surface if it is smaller than certain area
I believe I got the general idea right, but somehow this error keeps popping up:
*> Warning: > IronPythonEvaluator.EvaluateIronPythonScript operation failed. *
> > Traceback (most recent call last):
> > File “”, line 13, in
> > TypeError: getset_descriptor is not callable
You need to load the DesignScript module in order to use nodes within python.
clr.AddReference('DSCoreNodes')
from DSCore import *
With python you would just write item.Area to return the area of the given surface.
You also have the option of doing this with nodes just by using FilterByBoolMask.
Thanks for the quick reply. It worked
So when importing DSCore does that mean all the normal dynamo nodes are imported?
Correct. All the core DesignScript nodes.