It’s a basic PDB importer for Blender. I tested it out on a few different PDB files and it appears to be functioning correctly.
Current features:
Capable of quickly loading 10,000s of atoms into the scene
Imports molecules as space filling models
Atom models are created by particle systems so that large molecules can be imported. Particle locations are defined by the vertices of the molecule object.
Compatible with render instancing
Atoms coloured by element
Option to import all models (slightly different versions of the same molecule)
Option to import file-listed multimers
Option to choose the size of the imported molecule and atoms
Pictures: ATP synthase F0,
40 tobacco mosaic virus capsid proteins,
10 models of insulin
9 multimers of insulin (different file)
Screenshot of the import screen, showing the options
I switched to using particles when I discovered that Blender doesn’t like having more than a few thousand objects at once.
Do you know of a better way to just get the entire database? That site only allows single compound downloads.
Hmm…
I ran it it on an older build and I did not get any errors. But now that I run the script on r31068 it no longer works? Has anyone else tried this script on a recent build?
I guess the Python API has changed again. It is supposedly still unstable and undergoing development, according the the wiki page. The script does work on the beta release.
Cool! Using particles to speed things up is a very novel approach. We are doing something similiar, but due to project requirement, i have to use individual objects (shared mesh).
Hmm… it appears that PDB file is based on an older format guidelines. Specifically it doesn’t list the chains in the COMPND records, which I assumed would always be present. I used the list to initialize chain objects, although perhaps that might not be the best way to go about doing it.
Actually I can’t say I’m too familiar with the format because the format guide I got is 200 pages long
BTW did you file from the RCSB too? I was kind of hoping they kept all their files in the latest format
Hey there, I’ve downloaded and tried to import the script with the Blender ver: 2.54 interface. It’s blocking me from enabling it. Can you tell me why this is happening and how I can go about fixing it?
Is it likely to be a compatibility issue with the script and the new blender version?
Kind of a noob to blender, but I want to import PDB files to make a movie for a presentation coming up soon.
Ve: 8 | Fa:6 |Ob:1-3 |La:1 (if any of that helps…)
I also experienced the problem and I think it caused by the Python API not being stable yet so changes in the new version causes the script to fail. Download 2.53 from blender.org and run it there instead, that works fine.
@ Litterate, okay then I’m content with a work-around… do you have a direct link? I couldn’t find it on the site anymore
Do you know any mirror site for the Blender ver 2.53 for Linux 32 bit?
I wanted to play with it in latest Blender trunk and made it work with revision 35616, there were some changes to the API sometime ago. If anybody is interested: