I am trying to set the Font for a Text Objectt.
I've been following the code from this forum topic: SetFont not working
This example uses MoText, however, and I would like to use the Text Object. I'm unable to access its FontData via
import c4d def main(doc): textObject = c4d.BaseObject(c4d.Osplinetext) doc.InsertObject(textObject) print textObject[c4d.PRIM_TEXT_FONT] #prints None c4d.EventAdd() if __name__=='__main__': main(doc)
If I change the Font manually and then print
Text[c4d.PRIM_TEXT_FONT] from the Command Line it does print the Font Data, but I don't know how to change this Font in Python.
Can anyone explain how to get/set the FontData with a Text Object? Thank you!