For ionic radii: new charge state zero means that nothing is done. So, when
importing a molecule and choosing 'ionic radii', the charge state is on zero 
and nothing happens. Only when a charge state other than 0 is chosen by the
user, the radii are changed (if the charge state exists for the selected 
element(s)).

Blendphys.





git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4169 96b784f8-4ae3-dd11-aff7-0030488c597c
When increasing the size of the atoms (e.g., by using the buttons 'Bigger ...'
and 'Smaller ...') of a selected atomic structure with sticks (dupliverts 
structure), the size of sticks is changed, too. However, it should not change. 
This bug was removed.

Blendphys.





git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4170 96b784f8-4ae3-dd11-aff7-0030488c597c
1. New and very useful feature: the diameter of the sticks (only dupliverts 
structures) can now be changed by two buttons. - I always got annoyed when
I have loaded a structure (e.g. molecule) with sticks but with too small/large 
stick diameters. One always had to reload the whole structure. Now, one can 
select a structure and modify the stick diameter. BTW: the wiki has been
already updated.

2. The design of the whole panel was changed. The individual sections (custom
data file, measuring distances, changing atom radii, changing stick diamter and
separating single atoms) are now much better distinguishable. 

3. Code cleaning.

Blendphys.





git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4172 96b784f8-4ae3-dd11-aff7-0030488c597c
New and very useful feature: when separating atoms from a dupliverts structure
same type of objects (NURBS, mesh and meta) were used. Now, one can explicitly
use other type of objects: cube, plane, circle, torus, cylinder, etc. 

This new option is quite useful for creating 'defects' in atomic structures, 
which shall appear in a different shape.

Blendphys.





git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4173 96b784f8-4ae3-dd11-aff7-0030488c597c
New feature, new version.

Blendphys.





git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4174 96b784f8-4ae3-dd11-aff7-0030488c597c
1. Separating single atoms by other type of objects: I added NURBS objects and 
some useful 'special' objects, which can serve for displaying defects in 
atomic structures. By time, I will add some other of 'special' objects.

2. Code cleaning

Blendphys.



git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4175 96b784f8-4ae3-dd11-aff7-0030488c597c
Three types of icospheres can now be used, with sub-division 1, 2 and 3.

Blendphys.



git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4176 96b784f8-4ae3-dd11-aff7-0030488c597c
1. New feature: The shape of the atoms (object types like sphere, cube, etc.) can
now be changed! Example: the PDB and XYZ importer always use spheres (mesh, 
NURBS or meta) for representing atoms. Now, these objects can be changed to:
cubes, spheres, icospheres, torus and many others. This is very nice since now 
there is much more freedom in representing atomic structures.

2. A 'hidden bug' could be removed: When accessing all selected objects via
bpy.context.selected_objects, BOTH, the parents AND children of dupliverts 
structures are in the list. This can be very dangerous, in particular if e.g.
something is modified (replaced, deleted etc.). - The list of 
bpy.context.selected_objects is now sorted, and only the parents are in the 
resulting list.

3. Code cleaning

Blendphys.





git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4178 96b784f8-4ae3-dd11-aff7-0030488c597c
I consider the "Atomic Blender - Utilities" as almost finished. It has most 
important features included, which are needed for the daily work of preparing
atomic structures in Blender. This is why I put the version number onto 0.95.
After some time, during which I will test the addon through and through, I put
the version number onto 1.0.

Updating the wiki will be done tomorrow.


Blendphys.





git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4179 96b784f8-4ae3-dd11-aff7-0030488c597c
Code cleaning.

Blendphys.



git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4180 96b784f8-4ae3-dd11-aff7-0030488c597c
Merge remote-tracking branch 'remotes/trunk'

* remotes/trunk:
  Code cleaning.
  I consider the "Atomic Blender - Utilities" as almost finished. It has most important features included, which are needed for the daily work of preparing atomic structures in Blender. This is why I put the version number onto 0.95. After some time, during which I will test the addon through and through, I put the version number onto 1.0.
  1. New feature: The shape of the atoms (object types like sphere, cube, etc.) can now be changed! Example: the PDB and XYZ importer always use spheres (mesh, NURBS or meta) for representing atoms. Now, these objects can be changed to: cubes, spheres, icospheres, torus and many others. This is very nice since now there is much more freedom in representing atomic structures.
  Three types of icospheres can now be used, with sub-division 1, 2 and 3.
  1. Separating single atoms by other type of objects: I added NURBS objects and some useful 'special' objects, which can serve for displaying defects in atomic structures. By time, I will add some other of 'special' objects.
  New feature, new version.
  New and very useful feature: when separating atoms from a dupliverts structure same type of objects (NURBS, mesh and meta) were used. Now, one can explicitly use other type of objects: cube, plane, circle, torus, cylinder, etc.
  1. New and very useful feature: the diameter of the sticks (only dupliverts structures) can now be changed by two buttons. - I always got annoyed when I have loaded a structure (e.g. molecule) with sticks but with too small/large stick diameters. One always had to reload the whole structure. Now, one can select a structure and modify the stick diameter. BTW: the wiki has been already updated.
  When increasing the size of the atoms (e.g., by using the buttons 'Bigger ...' and 'Smaller ...') of a selected atomic structure with sticks (dupliverts structure), the size of sticks is changed, too. However, it should not change. This bug was removed.
  For ionic radii: new charge state zero means that nothing is done. So, when importing a molecule and choosing 'ionic radii', the charge state is on zero and nothing happens. Only when a charge state other than 0 is chosen by the user, the radii are changed (if the charge state exists for the selected element(s)).
Yet an other new feature: the 'default' values (size, object type and material)
can be transferred on selected atoms.

Blendphys.



git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4187 96b784f8-4ae3-dd11-aff7-0030488c597c
fix related bug [#33890]

because of changes of http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53355

git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4191 96b784f8-4ae3-dd11-aff7-0030488c597c
Objects with some new shapes for replacing the shapes of selected atoms were
added.

Blendphys.



git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4195 96b784f8-4ae3-dd11-aff7-0030488c597c
I re-designed the code for replacing/separating atoms: one can now 
independently choose the shape and material. I think that this is 
much better.

Blendphys.



git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4198 96b784f8-4ae3-dd11-aff7-0030488c597c
1. Replacing atom shapes: a third bool enumerator permits choosing special 
atom shapes/objects such as halo clouds etc. In future, other shapes/objects
will be added.

2. Some buttons are protected against their 'illegal' use in the EDIT or OBJECT 
mode (use of poll functions).

3. Separating atoms: I removed the option to replace the atom shapes since 
replacing as such is already done by the 'replacing' option.

Blendphys.



git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4199 96b784f8-4ae3-dd11-aff7-0030488c597c
Committing F2 to svn.

git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4200 96b784f8-4ae3-dd11-aff7-0030488c597c
And yet again, some major changes:

1. I included some security checks such that changing shapes and materials of 
atoms does not produce errors. For instance, separating atoms from a dupliverts
structure only is possible when the EDIT mode is active. However, when pushing 
the 'separate' button in the OBJECT mode, an error occured. Now, this is
inhibited.

2. Separating atoms from a dupliverts structure: Before, it was done by copying
the properties of the child object and directly creating new objects. Now, the 
child is taken and duplicated (new object). After, the parent of the new object
is removed such that the new object is a 'free' and independent one. Then, 
the location is modified. - All this is repeated for the number of selected 
vertices of the dupliverts structure. Advantage: the shape, size, material, 
etc. are automatically conserved. 

3. When creating new materials, a new name for the material is created such that 
the old material is still existing without any changes of its prarameters.

4. Code cleaning

I think that this is now somewhat a final state. I hope that there will not be 
any other big changes in future.

Blendphys.





git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4201 96b784f8-4ae3-dd11-aff7-0030488c597c
SVN maintenance.


git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4203 96b784f8-4ae3-dd11-aff7-0030488c597c
clear comments

git-svn-id: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons@4204 96b784f8-4ae3-dd11-aff7-0030488c597c