Why wont the python component accept a list as an input - it only accepts singletons?
Type error: expected float got list
Heres my code. I’m trying to create 2 points at x = 10.0 and x = 5.0:
<span style=“color: #f92672; font-weight: bold;”>import</span> clr
clr.<span style=“color: #ffffff; font-weight: bold;”>AddReference</span>(<span style=“color: #e6db74;”>‘ProtoGeometry’</span>)
<span style=“color: #f92672; font-weight: bold;”>from</span> Autodesk.DesignScript.Geometry <span style=“color: #f92672; font-weight: bold;”>import</span> *
<span style=“color: #75715e;”>#The inputs to this node will be stored as a list in the IN variable.</span>
dataEnteringNode = IN
ptCentre = IN[<span style=“color: #ae81ff;”>0</span>]
rad = IN[<span style=“color: #ae81ff;”>1</span>]
t = IN[<span style=“color: #ae81ff;”>2</span>]
CS = IN[<span style=“color: #ae81ff;”>3</span>]
cirConstruction = Circle.<span style=“color: #ffffff; font-weight: bold;”>ByCenterPointRadius</span>(ptCentre, rad);
val = [<span style=“color: #ae81ff;”>10.0</span>, <span style=“color: #ae81ff;”>5.0</span>];
pt = Point.<span style=“color: #ffffff; font-weight: bold;”>ByCartesianCoordinates</span>(CS, val, <span style=“color: #ae81ff;”>10.0</span>, <span style=“color: #ae81ff;”>1.0</span>);
OUT = pt