# of the License, or (at your option) any later version. if bpy.context.selected_objects[1].type == 'MESH' and bpy.context.selected_objects[0].type == 'CURVE ...
I ran across an issue where I used a vertex to design a curve for some braids. After using the array modifier I applied it, merged many of the vertices but forgot some. I converted to a curve and used ...