No, you can’t do that in script. That is static information and has to be done in the editor. You can copy them though.