I am trying to write a C# function that will export selected as FBX using ExportToFile, but I am not sure how to specify all of the parameters.
the code hint in visual studio shows:
bool IInterface.ExportToFile(string name, bool supressPrompts, uint options, IClass_ID exporterID)
name and supressPrompts are obvious.
but what about options and exporterID?
public static string fbxExport(string filePath)
{
uint options=Convert.ToUInt32("SCENE_EXPORT_SELECTED"); //will this work?
IClass_ID exporterID =(<?where Do I look up the value for FBX?>);
Interface.ExportToFile(filePath,true,options,exporterID );
}
options:
the SDK docs indicate that options is a DWORD value in C++ but here in C# it’s uint.
the C++ value I want would be SCENE_EXPORT_SELECTED per the docs.
Research showed that DWORD is a 32 bit value so I am hoping that converting the string “SCENE_EXPORT_SELECTED” into a 32bit uint will do the trick.
exporterID:
this would be an IClass_ID object whose value is whatever the FBX exporter’s ID is. How do I get this value?