mcneel / ghpython

A Grasshopper component for Rhino.Python
http://www.food4rhino.com/project/ghpython
118 stars 34 forks source link

Marshaling a complex number #17

Closed scotttd closed 12 years ago

scotttd commented 13 years ago

If I create a complex number in Ghpython:

b = complex(1.0,2.0)

And I output into Grasshopper. Then try to run it into a Complex number param. It does not look like a complex number to Grasshopper.

I think with some marshaling this could be a complex to grasshopper.

scotttd commented 13 years ago

Another option is to a rs.coersecomplex(x) That may work to create a complex number for grasshopper.