-
Notifications
You must be signed in to change notification settings - Fork 89
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
Unable to import Molecular nodes #651
Comments
For the 4.2 update, Blender changed how add-ons are imported. Currently you can import molecularnodes like this: from bl_ext.user_default import molecularnodes as mn
mn.entities.fetch("8H1B", style="cartoon", centre="centroid") The python API should not be considered stable, as it is something that is still being developed and is evolving (and isn't well documented because of this), but I welcome feedback and suggestions on how you would like this to work. |
Hi there, thanks for your reply, I'd be more than happy to help with the python interface. I've been getting these weird errors though: import bpy
from bl_ext.user_default import molecularnodes as mn
mn.entities.fetch("8H1B", style="cartoon", centre="centroid")
|
I haven't seen this error before, but it might be that the add-on is disabled in Blender preferences? |
Ah! Seems like within blender this works. However, if I create a conda environment with blender and Molecular Nodes I get that error. A way around it is simply to use: blender -b --python /Users/leo/Desktop/prova.py |
Ah yes it'll currently need to be executed by Blender to work properly. This is something that can be improved upon though, as I can skip the step that is currently failing when we are not in Blender to begin with. Glad to see it's working! Please do keep me update |
Ofc I'll keep you up to date with this :) |
Hi there,
Sorry if this is a dumb question but I'm fairly new to blender. I've installed the plugin and made my first render. However, I would like to automate this with a python script to download and generate several images of a different proteins.
However, I'm sure I'm doing something wrong:
Describe the bug
When I move to the "Scripting" tab and simply type:
To Reproduce
See above
Expected behavior
No error
Error Codes
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: