Hopefully you dont mind, but I made a fix for you so that it will work in 2015. The function for polybevel had different attr names that was causing errors. Also I added two lines in it to turn off the smooth display after finalize and to smooth out the normals after finalize. Code below. // a function to be called when…