Use PIL to generate images from text

Forum Forums Visual Components 4.1 Python Programming in VC Use PIL to generate images from text

This topic contains 1 reply, has 2 voices, and was last updated by zesty zesty 1 month, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15023
    hu zonghua
    hu zonghua
    Participant

    HI,

    When I was using VC, I found that there was PIL in the pyhon directory, just that I needed to convert the text into a picture and display it in the 3D world, so I tried it and I got an error at runtime: Python engine: ACCESS VIOLATION
    RuntimeError: ACCESS VIOLATION
    After tracking and debugging, I found the error. In the ImageFont.py—getmask2 function, it appears when calling self.font.render(text, im.id, mode==”1″). But then I can’t debug anymore. I tried replacing the PIL version and using pygame, but all failed.

    #16762
    zesty
    zesty
    Moderator

    Have you contacted support about this issue? Instead of using a component script, have you tried using it as an add-on/application script?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.