FBXExport flag setting

Trying to get this to work… but missing something here, as it complains about syntax:

bakeAnim = True
mel.eval('FBXExportBakeComplexAnimation -v '+str(bakeAnim)+';')

// Error: Syntax Error: Use FBXExportBakeComplexAnimation -v true|false //

Error: RuntimeError: file <maya console> line 3: Error occurred during execution of MEL script

line 1: Syntax Error: Use FBXExportBakeComplexAnimation -v true|false #

Check the value of your bakeAnim variable. If it’s a bool, you’ll want to convert it to a lowercase version. The FBX requires something like: FBXExportBakeComplexAnimation -v true; with the bool being lowercase and python, with something like str(True) will output ‘True’.

Thanks, I didn’t realize that it was so nitpicky on wanting lowercase.