From 473dabf00476edd4e6dcd0d1cea0106a8d86de8d Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:45:39 +0300 Subject: [PATCH] Replace "{name}" with the project name when exporting --- src/Autoload/Export.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Autoload/Export.gd b/src/Autoload/Export.gd index 6bf079807..af4449837 100644 --- a/src/Autoload/Export.gd +++ b/src/Autoload/Export.gd @@ -605,6 +605,8 @@ func is_ffmpeg_installed() -> bool: func _create_export_path(multifile: bool, project: Project, frame := 0, layer := -1) -> String: var path := project.file_name + if path.contains("{name}"): + path = path.replace("{name}", project.name) # Only append frame number when there are multiple files exported if multifile: var path_extras := ""