[Bf-extensions-cvs] [8673c814] master: The UI of the XYZ importer (File view, options) has been changed such that it is similar to the one of the PDB importer. This makes writing the manual more easy.

Clemens Barth noreply at git.blender.org
Wed Dec 25 23:23:29 CET 2019


Commit: 8673c814bf9a8e0c858006523033d8d31454fe1e
Author: Clemens Barth
Date:   Wed Dec 25 23:20:59 2019 +0100
Branches: master
https://developer.blender.org/rBA8673c814bf9a8e0c858006523033d8d31454fe1e

The UI of the XYZ importer (File view, options) has been changed such that it is
similar to the one of the PDB importer. This makes writing the manual more easy.

===================================================================

M	io_mesh_atomic/xyz_gui.py

===================================================================

diff --git a/io_mesh_atomic/xyz_gui.py b/io_mesh_atomic/xyz_gui.py
index 79b08f21..e66a071a 100644
--- a/io_mesh_atomic/xyz_gui.py
+++ b/io_mesh_atomic/xyz_gui.py
@@ -97,7 +97,7 @@ class IMPORT_OT_xyz(Operator, ImportHelper):
         name="", default=1, min=1,
         description="Choose the number of images between 2 keys.")
 
-    # This thing here just guarantees that the menu entry is not active when the 
+    # This thing here just guarantees that the menu entry is not active when the
     # check box in the addon preferences is not activated! See __init__.py
     @classmethod
     def poll(cls, context):
@@ -110,35 +110,42 @@ class IMPORT_OT_xyz(Operator, ImportHelper):
         row.prop(self, "use_camera")
         row.prop(self, "use_lamp")
         row = layout.row()
+        row.prop(self, "use_center")
+        row = layout.row()
+        row.prop(self, "use_center_all")
+        # Balls
+        box = layout.box()
+        row = box.row()
+        row.label(text="Balls / atoms")
+        row = box.row()
         col = row.column()
         col.prop(self, "ball")
-        row = layout.row()
+        row = box.row()
         row.active = (self.ball == "1")
         col = row.column(align=True)
         col.prop(self, "mesh_azimuth")
         col.prop(self, "mesh_zenith")
-        row = layout.row()
+        row = box.row()
         col = row.column()
         col.label(text="Scaling factors")
         col = row.column(align=True)
         col.prop(self, "scale_ballradius")
         col.prop(self, "scale_distances")
-        row = layout.row()
-        row.prop(self, "use_center")
-        row = layout.row()
-        row.prop(self, "use_center_all")
-        row = layout.row()
+        row = box.row()
         row.prop(self, "atomradius")
-
-        row = layout.row()
+        # Frames
+        box = layout.box()
+        row = box.row()
+        row.label(text="Frames")
+        row = box.row()
         row.prop(self, "use_frames")
-        row = layout.row()
+        row = box.row()
         row.active = self.use_frames
         col = row.column()
         col.label(text="Skip frames")
         col = row.column()
         col.prop(self, "skip_frames")
-        row = layout.row()
+        row = box.row()
         row.active = self.use_frames
         col = row.column()
         col.label(text="Frames/key")
@@ -192,7 +199,7 @@ class EXPORT_OT_xyz(Operator, ExportHelper):
                                  " a proper element name")),
                default='1',)
 
-    # This thing here just guarantees that the menu entry is not active when the 
+    # This thing here just guarantees that the menu entry is not active when the
     # check box in the addon preferences is not activated! See __init__.py
     @classmethod
     def poll(cls, context):



More information about the Bf-extensions-cvs mailing list