How do I get the name of the texture?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tort

How do I get the name of the texture?

print($anim_sprite.frames.get_frame('anim', id).get_data().get_name())

If so, nothing is output to the console.

Let it be for now.

tex.get_path().substr(tex.get_path().rfind('/') + 1, tex.get_path().length())
:bust_in_silhouette: Reply From: njamster
$anim_sprite.frames.get_frame('anim', id).get_path().get_file()