Hi Brian,
Why not make your script into a node? It may require a little more work, but it would mean your time investment to date is not for nought, and you'll have an appreciative community of noders grateful of your efforts.
There is already a "ConvertCurveToPoly" node in ui/nodeeditor/nodes/SubD directory.
Just a thought.
-James
|