How to change 3d sprite texture through script?

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

What it says on the tin, I want to set up a big case statement that changes the 3D Sprite’s sprite/texture (not sure which its considered) and for some reason I’m just not finding the function that changes the sprite through code.

for example something like:
get_node(3dsprite).texture = “new texture”