Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Export fbx triagulate python

Export fbx triagulate python

vuhoangtuandct
Explorer Explorer
298 Views
1 Reply
Message 1 of 2

Export fbx triagulate python

vuhoangtuandct
Explorer
Explorer

Im running into a problem with this line of code

 

This code still working

Location = .... ( my Computer path)

Mel.oval('FBXExport -f "{0} -s'.format(location))

 

This still working too (export highpoly mesh)

Mel.oval('FBXExport -f "{0} -s FBXExportSmoothingGroups -v true'.format(location))

 

But as soon as i add this option

Mel.oval('FBXExport -f "{0} -s FBXExportTriagulate -v true'.format(location))

 

It's still working but not triagulate the mesh aa i want

 

Please help me. Thank you guys !

0 Likes
299 Views
1 Reply
Reply (1)
Message 2 of 2

16497643852
Contributor
Contributor

Hello @vuhoangtuandct ,

Hope you're doing fine.

 

The below command works for me in maya 2024 and 2020 in windows 10

document that i referred - https://help.autodesk.com/view/MAYAUL/2024/ENU/?guid=GUID-6CCE943A-2ED4-4CEE-96D4-9CB19C28F4E0

 

 

import maya.cmds as cmds
import maya.mel as mel

path = "D:/All_Projs/Maya_Projs/tri.fbx" # forward slashes are important
mel.eval('FBXExport -f "{0}" -s FBXExportTriagulate -v true'.format(path))
#mel.eval('FBXExport -f "{0}" -s'.format(path))

 

 

 

The command you mentioned

Mel.oval('FBXExport -f "{0} -s FBXExportTriagulate -v true'.format(location))

small corrections 🙂

mel.eval('FBXExport -f "{0}" -s FBXExportTriagulate -v true'.format(location))

 

hope it helps.

 

A suggestion, kindly next time do provide an error log from the script editor.

 

0 Likes