Scripts from Python primer 101 not working in Rhino 6?

I have been working through the primer for Rhino Python to learn the basics. However, when trying out some of the example code in the Rhino Python Editor, it often gives no results in my Rhino window. One example for which this is the case is the ‘DistributeCirclesOnSphere’ code (see below).

I am running an up-to-date version of Rhino 6 on Windows 10. Is some of the syntax different in Rhino 6 as opposed to Rhino 5, or may the problem be caused by something else? Thanks in advance,

Hi @pimbuskermolen,

Don’t forget to call the function you’ve just defined:

# Call the darn thing!
if __name__ == "__main__":

– Dale

1 Like

Ah, rookie mistake. Cheers!