Switching on Nanites using Python

Hi folks,

So I’ve got a python script that loads a bunch of .fbx models into UE5, each has an associated text file to indicate whether it should have nanites switched on.

My question is: for the ones that require it, how do I switch on nanite generation using python?

Thanks in advance.