Changeset View
Changeset View
Standalone View
Standalone View
io_mesh_pdb/import_pdb.py
| Context not available. | |||||
| # From above it can be clearly seen that j is now the number of all atoms. | # From above it can be clearly seen that j is now the number of all atoms. | ||||
| Number_of_total_atoms = j | Number_of_total_atoms = j | ||||
| return (Number_of_total_atoms, all_atoms) | return Number_of_total_atoms, all_atoms | ||||
| # The function, which reads the sticks in a PDB file. | # The function, which reads the sticks in a PDB file. | ||||
| Context not available. | |||||
| new_cups = bpy.data.objects.new("Sticks_Cups", cups) | new_cups = bpy.data.objects.new("Sticks_Cups", cups) | ||||
| bpy.context.scene.objects.link(new_cups) | bpy.context.scene.objects.link(new_cups) | ||||
| return (new_cylinder, new_cups) | return new_cylinder, new_cups | ||||
| # Function, which puts a camera and light source into the 3D scene | # Function, which puts a camera and light source into the 3D scene | ||||
| Context not available. | |||||