Mix use with rhino geometry and gh component in ghpython

bug solved.
I restart my computer and it works immediatly… :upside_down_face:
I don’t know whether I should delete this post…cos it’s tooooo silly
but if anyone encountered same problem and don’t know what to do
try restarting rhino/ computer

hi! I’m using ghpython to write some stuff but stuck at some silly bug…

I’m trying to make my script as simple as I can, code is as followed. my input is a simple plane list (I specified the type list and plane), and I draw a circle.

import rhinoscriptsyntax as rs
from ghpythonlib import components as ghcomp
import scriptcontext as sc

xo = x[0].Origin
xz = x[0].ZAxis
a = ghcomp.CircleCNR(xo,xz,1)
print a

this works if I use gh battery directly, but in ghpython it returns None…
hope someone can help me with this…


It works here:

CircleCNR.gh (5.6 KB)

Thanks! I restart my computer and it works immediatly…

I was like wt*???

sorry for posting this & timewasting reading