Nuke Python : message using conversion specifier


/ Published in: Python
Save to your folder(s)

storing integer in string using conversion specifier


Copy this code and paste it in your HTML
  1. alt =23850
  2. dm=72350
  3. mph =125
  4.  
  5. z = ("Altitude " + "%.1f" % alt + " ft velocity " + "%.1f" % dm + " dm/sec " +"%.3f" % mph + " mph")
  6. nuke.message(z)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.