LOAD A PDB FILE
Setup
- Blender version 4.0
- Blender empty file
PDB MOLECULE
Got a structure of ciprofloxacin in SDF format from here:
https://www.molinstincts.com/sdf-mol-file/ciprofloxacin-sdf-CT1000048109.html
translated to PDB with:
https://datascience.unm.edu/tomcat/biocomp/convert (3D)
Sometimes you get DivisionByZero, try to use a different converter.
WORKFLOW
- Delete the cube with
X
-
Import file Ciprofloxacin
-
Import Settings:
Parameter Value Balls type Mesh Balls radius 0.5 Stick type Duplivert Bonds Active Bond radius 0.1 - Now we are going to merge all atoms and sticks to create a unique mesh. We will work in the Outlier
- Select Hydrogen and hide it, notice that the sticks are closed.
- Remove the cups just deleting the underling model (Hydrogen_sticks_cup)
- Do the same for all sticks: extra faces will interfere with shading.
- Convert the instance of Carbon_Stick_mesh to a real mesh:
CTRL-A
and make instance real. - Select an active stick with
CTRL-Click
andCTRL-J
to join segments TAB
to enter edit mode and thanM
and merge by distance to cleanup vertices- Do this tedious thing for all the sticks, remember to go back in object mode.
- Join all sticks in a single mesh: select in outlier and
CTRL-J
and rename itsticks
- On Outlier, create a new collection under Scene collection (name: ‘Molecule’)
- In Outlier move the sticks object to the new collection
- Do the same with atoms:
CTRL-A
make instance realCTRL-Click
and select one atomCTRL-J
and join allTAB
andM
to merge by distance
- Merge all atoms together with
CRTL-J
- Named it balls and move to the collection
Molecule
- Select balls: In the Material properties you notice there are multiple materials: rename them as XXX.Atoms (example: Carbon.Atoms)
- Now we want to separate the bonds and atoms materials. Select sticks and make new materials called XXX.Bonds
- We can now merge sticks and balls with
CTRL-J
- Rename final mesh
Ciprofloxacin
- Now that we have a single molecule we can do a lot of cool things! For example let’s WAVE this molecule for no reason!
- On Modifiers add a Wave modifier, play animation and see your molecule waving!
- Add a rotating animation:
- Remove the wave
N
for item propertiesI
overing ‘Rotation’ to insert a keyframe- Go to frame 100
- Rotate 360 on Z axis with
RZ360
- Go to frame 120
- Rotate again on Z axis 360
- Render animation (EEVE)
Blender file: 02_fix_pdb_complete.blend