title: The Foundry Nuke – Get a file path of font
body: <p>I need to programatically get the location of all fonts used in a Nuke script. If you open a text node in the GUI you can see the font file path under <code>Font</code> however using the following code I only get a tuple of font family, font style. This gets me part of the way there. </p>
  
  <p>Interestingly if I print out the text node itself I am able to see at least the filename of the current font, but this information is not available any way I can figure out.</p>
  
  <p>The documentation for <a href="https://learn.foundry.com/nuke/developers/90/pythonreference/nuke.FreeType_Knob-class.html" rel="nofollow noreferrer">FreeType_Knob</a> does not offer any real solution...</p>
  
  <pre><code>for node in nuke.selectedNodes():
      print(node.knob('font').getValue())
  </code></pre>