Octolapse icon indicating copy to clipboard operation
Octolapse copied to clipboard

[Request] File Name Replacement Token

Open eboston opened this issue 3 years ago • 5 comments

If this is a feature request describe it here

Add a replacement token for the name of the file being printed.

eboston avatar Apr 15 '21 19:04 eboston

This description is a bit vague. Please explain in detail where and how this token will be used.

FormerLurker avatar Apr 15 '21 19:04 FormerLurker

With all the other tokens like {snapshot_number}, {current_time}, {time_elapsed}, {layer}, {height}, {x}, {y}, {z}, {e}, {f}, {x_snapshot}, {y_snapshot} in the overlay section. I just noticed a {GCODEFILENAME} in another section. Can that be used in the overlay? Is there somewhere that lists all of these tokens?

On Thu, Apr 15, 2021 at 2:50 PM FormerLurker @.***> wrote:

This description is a bit vague. Please explain in detail where and how this token will be used.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/FormerLurker/Octolapse/issues/724#issuecomment-820690306, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6625KMPEPVUCEV2TDITPTTI47RJANCNFSM43ADNJ2A .

eboston avatar Apr 15 '21 20:04 eboston

So, you can install the development version (devel branch) where I have added a number of tokens, including the gcode_file (name+extension), gcode_file_name (name without extension) and gcode_file_extension. There are now new customizable time tokens too, where you can specify the time format.

Here is a screen cap of the new token display, and you can click on the ? icons for more info:

image

Let me know if that resolves this issue.

FormerLurker avatar Apr 15 '21 21:04 FormerLurker

When will the devel branch with these new tokens be pushed to master?

hryanl avatar Aug 29 '21 00:08 hryanl

It might take a while unfortunately since there is quite a bit to finish up. Feel free to install from the devel branch for the time being.

FormerLurker avatar Aug 29 '21 17:08 FormerLurker