That would be cool to see as a standalone script! But just do what you need for your project, if you want to make it a generalized script, it can always be done later!