void OutputHeader( std::ofstream& in_mfw) { //# XSI Wavefront OBJ Export v3.0 //# File Created: Mon Oct 11 15:58:17 2010 //# XSI Version: 9.1.91.0 in_mfw << "#Wavefront OBJ Export for 3D-Coat"; in_mfw << "\n"; in_mfw << "# "; in_mfw << "\n"; in_mfw << "#XSI Version: "; in_mfw << app.GetVersion().GetAsciiString(); in_mfw << "\n"; if(Get3DCoatParam( L"bExpMat" ).GetValue()) { //mtllib object.mtl Project prj = app.GetActiveProject(); Scene scn = prj.GetActiveScene(); CString string = L"mtllib " + scn.GetName() + L".mtl"; in_mfw << string.GetAsciiString(); in_mfw << "\n"; } in_mfw << "\n"; }