I am trying my hand with my first Python Script and wanted some help with making it work more cleanly.
It’s to create blended setback curves at adjacent edges on a surface, which I then use as rails in future. It’s really just a plaything for me to try and test what I’ve learnt so far, because I can kind of see the steps.
My first version worked perfectly fine on untrimmed surfaces. v1.01 I was trying to make work on trimmed surfaces, where adjacent edges aren’t necessarily following the clockwise rule when I’ve created the edge curves.
I think I just need my if statement to work properly. It’s in a bit of a loop where I keep overwriting the curve directions with the else from before. So it’s a logic issue that I can see but not code. There may be a lot of redundant steps covered in one command too if anybody knows of any.
BlendCrvOnSrf_Radius_1.01.py (4.7 KB)