Script/addon that can rename Text objects to whatever in is their text field?

Anyone know of a script or addon that can rename a Text object to whatever the text says? I have hundreds of text objects to create, and would love an automated method that could also translate non-alphanumeric characters in the text field into underscores (e.g. spaces, hyphens, slashes) in the name.
So if the Text reads “SWITCH-1 ON/OFF”, it would rename the object to “SWITCH_1_ON_OFF”. I’d appreciate any help with this.

1 Like

hi, just fire this:

import bpy
for t in
    if t.type == 'FONT': =