1
$\begingroup$

How can I try, except for only:
RuntimeError: Error: Tangent space can only be computed for tris/quads, aborting

and also store the message (Tangent space can only be computed for tris/quads, aborting)

try:
    export_fbx_tangent_on(self, context, save_dir)
except RuntimeError as e:
    message = f'w:Fbx export failed,{e}'
$\endgroup$
  • $\begingroup$ I also have this error trying to get tangents from a mesh with custom normals when I use the calc_tangents() function. It seems that the mesh must be tris or quads, so perhaps try triangulating the mesh before exporting? $\endgroup$ – MrFlamey Sep 21 at 13:52
  • $\begingroup$ Yeah I know why I get the error, I just want to catch the error. $\endgroup$ – Way2Close Sep 22 at 6:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.