Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pip and new line suggestions #1

Open
tin2tin opened this issue Jun 7, 2020 · 2 comments
Open

Pip and new line suggestions #1

tin2tin opened this issue Jun 7, 2020 · 2 comments

Comments

@tin2tin
Copy link

tin2tin commented Jun 7, 2020

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
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants