I've added a new version that allows to do that. I may try to work on a demo that has those so it will be easier to do as reference, but the instructions have been updated.
There's an export to lua button at the top right corner. Choose on of the demos then export to see what's created. It is basically the same content as shown in the lua script area in the right property panel.









