I’m trying to compile my python script into a plugin for Rhino 5 but am running into an issue that I am not able to fix. When I run my script in the Rhino editor it runs fine, although when compiled into a plugin (Im using the Rhinoscript Compiler) the script will not run all the way through. It’s really tough to debug when I cannot see an error like when I do in the editor.
I’ve tried putting print commands in the script to see exactly when it is failing and ive sort of narrowed it down to a line or to but still cannot see when the issue is when the script is running just fine in the editor. Here is a snip of the code where I think I am running into the error:
def BuildComponent(MPoints,EPoints,Degree,Components): if Components == 1: Curves =  for CrossSection in range(len(MPoints)): Curves.append(RS.AddCurve(MPoints[CrossSection])) elif Components == 2: Curves =  for Count in [0,1]: for CrossSection in range(len(MPoints[Count])): Curves.append(RS.AddCurve(MPoints[Count][CrossSection])) Sections = [RS.AddLoftSrf(Curves,None,None,Degree)]
If there was some way to see the errors python is returning in the rhino command window it would help a lot but I’m sure that there is.
I appreciate any help