message: batch layers with default format
diff: @@ -187,14 +187,28 @@ void FrameBuffer::saveFrame(std::string filename, int flags)
  if (sgUsingMpi() && sgMpiRank() != 0)
  return;
  - auto exporter = getExporter(FileName(filename));
  + std::vector<std::string> filenames;
  + auto file = FileName(filename);
  +
  + if (flags && file.ext() != "exr") {
  + auto base = file.base();
  + auto name = base.substr(0, base.find_last_of('.'));
  + auto exrFile = file.path() + name + ".exr";
  + filenames.push_back(exrFile);
  + }
  + filenames.push_back(filename);
  +
  + for (auto &f : filenames) {
  + auto file = FileName(f);
  + auto exporter = getExporter(file);
  +
  if (exporter == "") {
  std::cout << "No exporter found for type " << FileName(filename).ext()
  << std::endl;
  return;
  }
  auto exp = createNodeAs<ImageExporter>("exporter", exporter);
  - exp->child("file") = filename;
  + exp->child("file") = f;
  auto fb = map(OSP_FB_COLOR);
  auto size = child("size").valueAs<vec2i>();
  @@ -243,6 +257,7 @@ void FrameBuffer::saveFrame(std::string filename, int flags)
  if (nbuf)
  unmap(nbuf);
  }
  +}
  OSP_REGISTER_SG_NODE_NAME(FrameBuffer, framebuffer);
  