Page MenuHome

Auto-fill name for exported file doesn't change when opening a different file.
Closed, InvalidPublic


System Information
Windows 7 Ultimate 64-bit
nVidia GeForce 230m

Blender Version
Broken: Blender 2.69.0 r60995

Short description of error
The filename suggested by the Blender export dialog does not change to reflect the currently opened file.

Exact steps for others to reproduce the error

  • Open a .blend file and click File > Export > Wavefront (.obj)
  • Notice the filename that is suggested by Blender (same as the name of the currently open file with a different extension)
  • Click File > Open recent... > [another .blend file]
  • Click File > Export > Wavefront (.obj)
  • Notice the filename that is suggested. It will be the name of the previous file, not the currently opened file.

Related Objects

Event Timeline

Whats happening is operator settings are stored for reuse, this can be handy - its nice if you export to a directory that you can export a second time without having to navigate to that path all over again.

We could clear all stored operator settings on file load or...

We could look for all operators matching EXPORT_*_OT_*and only clear the stored path strings, but this seems a bit arbitrary.

Brecht Van Lommel (brecht) lowered the priority of this task from 90 to Normal.Nov 27 2013, 4:38 PM

I think it's quite useful if tool settings and paths like this get preserved over file loads. Even if I'm opening a new .blend file there's a good chance I want to export to the same directory, though probably not with the same file name.

I can't think of a good solution here. You could have some extra property flag to indicate that it is remember but not across file loads but I'm not sure about that. I wouldn't really consider this a bug.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Invalid.Nov 27 2013, 10:37 PM

Closing, I can see sometimes this is confusing - it can be handy too.

I agree that the directory where the exported file will end up should stay the same, however it doesn't make sense to keep the file name the same. The way it's currently set up, I have to change the name for each file so that the next export doesn't overwrite the previous one. If I wanted to export my model with a different name, I would gladly change it but keeping it the same adds an unnecessary step when exporting from a bunch of files.