Hi everybody, I’ve been having this issue for a while now and with a ton of time debugging I’ve finally induced the error in 3 lines:`import rhinoscriptsyntax as rs try: rs.AddCurve(((1,2,3),(1,2,4))) except Exception as e: print(e)`
the code will execute perfectly in the python script editor command in Rhino, but for some reason when compiled, it will throw the following error:
‘NoneType’ object has no attribute ‘Objects’
I’ve tried printing type(rs) and it returns module so I have no idea why it is giving an error saying NoneType. My speculation is that this error diagnosis is incorrect, I’m not sure this is a type of error that would be normally handled by python.
Also by the way, I’ve gotten other rs commands to work, but in the script I developed that has a lot of work into it, this sort of command is pretty crucial.
Any suggestions? Seems like rhinoscriptsyntax is not imported correctly… but why