Set subD crease by script?

Is there a way to automatically set crease to the edges that I want to crease, such as accessing the input subD edge’s index and selectively set crease? Otherwise sometimes it’s quite annoying to bake object to rhino then manually set crease.

You need to unweld the desired edges.

Thank you! I solved it.