How can I get / read the font used in the String to Curves node using Python?
Example:
The output I'm trying to get back from the image below would be wmcorners2 Regular:
I know I can get a value using the code below, but how can I do this for the String to Curves node?
import bpy
# Get the node
node = bpy.data.materials["MyMaterial"].node_tree.nodes["MyNode"]
# Get the value of the first output
value = node.outputs[0].default_value
print(value)
The great answer given below by Muzammil and Chris seems to get the first font in the list not the currently selected / used font. Is there a workaround or is this a bug?