[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2802] trunk/py/scripts/addons/ io_mesh_pdb:

Clemens Barth barth at root-1.de
Thu Dec 22 17:06:29 CET 2011


Revision: 2802
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2802
Author:   blendphys
Date:     2011-12-22 16:06:28 +0000 (Thu, 22 Dec 2011)
Log Message:
-----------


Dear all.

1. Changes of the 'Atomic Blender - PDB importer' panel. I've 
grouped specific in/outputs and buttons by using boxes. Now,
there is some order in the panel.
2. Better precision for sticks
3. No other changes otherwise ...

Merry Christams,

Blendphys 

Modified Paths:
--------------
    trunk/py/scripts/addons/io_mesh_pdb/__init__.py
    trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py

Modified: trunk/py/scripts/addons/io_mesh_pdb/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/__init__.py	2011-12-22 05:54:45 UTC (rev 2801)
+++ trunk/py/scripts/addons/io_mesh_pdb/__init__.py	2011-12-22 16:06:28 UTC (rev 2802)
@@ -87,75 +87,72 @@
         scn    = bpy.context.scene
 
         row = layout.row()
+        row.label(text="Outputs and custom data file")
+
+        box = layout.box()
+        row = box.row()
         row.label(text="Custom data file")
-        row = layout.row()
+        row = box.row()
         col = row.column()
         col.prop(scn, "atom_pdb_datafile")
         col.operator("atom_pdb.datafile_apply")
-        row = layout.row()
+        row = box.row()
         col = row.column(align=True)
         col.prop(scn, "atom_pdb_PDB_file")
 
-        layout.separator()
-
         row = layout.row()
+        row.label(text="Reload structure")
+
+        box = layout.box()
+        row = box.row()
         col = row.column(align=True)
         col.prop(scn, "use_atom_pdb_mesh")
         col.prop(scn, "atom_pdb_mesh_azimuth")
         col.prop(scn, "atom_pdb_mesh_zenith")
-
-
         col = row.column(align=True)
         col.label(text="Scaling factors")
         col.prop(scn, "atom_pdb_scale_ballradius")
         col.prop(scn, "atom_pdb_scale_distances")
-        row = layout.row()
+        row = box.row()
         col = row.column()
         col.prop(scn, "use_atom_pdb_sticks")
         col = row.column(align=True)
         col.prop(scn, "atom_pdb_sticks_sectors")
         col.prop(scn, "atom_pdb_sticks_radius")
-
-        row = layout.row()
+        row = box.row()
         row.prop(scn, "use_atom_pdb_center")
-
-        row = layout.row()
+        row = box.row()
         col = row.column()
         col.prop(scn, "use_atom_pdb_cam")
         col.prop(scn, "use_atom_pdb_lamp")
         col = row.column()
         col.operator("atom_pdb.button_reload")
-
         # TODO, use lanel() instead
         col.prop(scn, "atom_pdb_number_atoms")
 
-        layout.separator()
-
         row = layout.row()
+        row.label(text="Modify atom radii")
+        box = layout.box()
+        row = box.row()
         row.operator("atom_pdb.button_distance")
         row.prop(scn, "atom_pdb_distance")
-        layout.separator()
-
-        row = layout.row()
+        row = box.row()
         row.label(text="All changes concern:")
-        row = layout.row()
+        row = box.row()
         row.prop(scn, "atom_pdb_radius_how")
-
-        row = layout.row()
+        row = box.row()
         row.label(text="1. Change type of radii")
-        row = layout.row()
+        row = box.row()
         row.prop(scn, "atom_pdb_radius_type")
-
-        row = layout.row()
+        row = box.row()
         row.label(text="2. Change atom radii in pm")
-        row = layout.row()
+        row = box.row()
         row.prop(scn, "atom_pdb_radius_pm_name")
-        row = layout.row()
+        row = box.row()
         row.prop(scn, "atom_pdb_radius_pm")
-
-        row = layout.row()
+        row = box.row()
         row.label(text="3. Change atom radii by scale")
-        row = layout.row()
+        row = box.row()
         col = row.column()
         col.prop(scn, "atom_pdb_radius_all")
         col = row.column(align=True)
@@ -164,8 +161,10 @@
 
         if bpy.context.mode == 'EDIT_MESH':
 
-            layout.separator()
             row = layout.row()
+            row.label(text="Separate atom")
+            box = layout.box()
+            row = box.row()
             row.operator( "atom_pdb.separate_atom" )
 
 

Modified: trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py	2011-12-22 05:54:45 UTC (rev 2801)
+++ trunk/py/scripts/addons/io_mesh_pdb/import_pdb.py	2011-12-22 16:06:28 UTC (rev 2802)
@@ -25,7 +25,7 @@
 #
 #  Start of project              : 2011-08-31 by Clemens Barth
 #  First publication in Blender  : 2011-11-11
-#  Last modified                 : 2011-12-01
+#  Last modified                 : 2011-12-22
 #
 #  Acknowledgements: Thanks to ideasman, meta_androcto, truman, kilon,
 #  dairin0d, PKHG, Valter, etc
@@ -1080,7 +1080,7 @@
 
         vertices = []
         faces    = []
-        dl = 0.2
+        dl = 0.1
 
         i = 0
         # For all sticks, do ...



More information about the Bf-extensions-cvs mailing list