oormicreations / VSEIndic

Renders text in Indic or any other complex languages accurately in Blender's video sequence editor.
MIT License
9 stars 1 forks source link

Pip and new line suggestions #1

Open tin2tin opened 4 years ago

tin2tin commented 4 years ago

Great to see your Sequencer add-on. Blender now comes with pip, so maybe something like this can be used to make the add-on install the modules?

    try:
      import screenplain
    except ImportError:
      pybin = bpy.app.binary_path_python
      subprocess.check_call([pybin, '-m', 'pip', 'install', 'screenplain[PDF]'])

Another thing I would like to mention is that, even if the text entry widget doesn't allow multiline, chr(10), will actually force a new line. Maybe you can use that somehow?

If you like to discuss add-ons or developments in the VSE, come and join the vse chat: https://blender.chat/channel/vse

oormicreations commented 4 years ago

Hello, Thank you for these useful suggestions. I will surely try it. The addon supports new lines, just type \n in the text box. It also takes newlines from text files. I will test the chr(10) method too. And thanks for invitation to chat. Great place.

oormicreations commented 4 years ago

I checked the latest version 2.83 and pip does not come preinstalled, (but there is ensureppip as usual). It can be automated by issuing all the needed commands, but I think it is better if the user does it, there can be slight difference in linux and windows. Anyhow I am keeping this issue open, just in case there are more suggestions and tips.