I have this script, and I use packagemanager to make a plugin. I’ve updated the script for Rhino 8, and the script runs fine in V8. But, if I compile it with Script Compiler in V7, the command won’t run. The name auto-fills on the command line, and so it’s in the plugin commands list, but it just won’t run in V8. I’m thinking the problem is that the script itself won’t run in V7, so maybe the compiler in V7 has trouble with it. But I can’t currently compile in V8 because of V8’s compiler issues, so…I’m a little stuck. And I don’t understand RhinoCommon, but maybe one of you can help me fix this so that it will work in V7 (and 8)?
Hi Peter - see if making that ‘NONE’ >> ‘None’ helps.
-Pascal
1 Like
It does help. And why didn’t I try that?
Thanks!
Hi Peter - it is tricky because None is allowed in Python 2.7 or whatever - IronPython as used in V7, and is a reserved key word in Python 3.0, I think, so in V8, if I remember right, Ehsan made it use NONE instead. Something like that.
-Pascal
Yeah, so now if I run the script in Rh8, it gives me an error, but the plugin works fine. Which is ok for now.