I’ve altered Albans code and used a python snippet from @c.poupin to allow users to use an export setting
You can read about it here