Commit Graph

21 Commits

Author SHA1 Message Date
e8da6131fd License headers: use SPDX-FileCopyrightText for all addons
Move copyright text to SPDX-FileCopyrightText or set to the
Blender Foundation so "make check_licenses" now runs without warnings.
2023-06-15 16:54:05 +10:00
b9ad80de61 io_mesh_atomic: code polishing 2023-05-19 11:02:21 +02:00
d0b5970dca Fix #104600, io_mesh_atomic: double or tripple bonds are now shown as double and tripple sticks when choosing option 'normal' sticks 2023-05-19 10:31:56 +02:00
caed9c9da5 Atomic Blender: Get nodes with their types instead of names
Using hardcoded names to retrieve nodes can result in errors if the
user has enabled UI translation, because the new nodes may not have
the expected English names.

Instead, we retrieve the nodes using their types (BSDF_PRINCIPLED or
OUTPUT_MATERIAL).

Ref blender/blender#104145

Co-authored-by: Damien Picard <dam.pic@free.fr>
Pull Request #104403
2023-02-09 23:02:28 +01:00
b8d86ccc0a File headers: use SPDX license identifiers
See T95597
2022-02-11 16:05:07 +11:00
98003acc98 Fix io_mesh_atomic: decreasing the stick diameter revealed the stick mesh
Reason: the planes used for the instancing vertice structure were
visible at once because their size was as large as the stick diameter.

I decreased the size of those planes by a factor of 100, everything is
fine now
2022-01-25 13:14:31 +01:00
374e67c8d3 Fix io_mesh_atomic: surface of sticks were not smooth although option was set
Reason: hidden objects cannot be modified by 'bpy.ops.object.shade_smooth()'

The surface of sticks, which are in an instancing vertice structure,
are now correctly smoothened when option 'Smooth' of the PDB importer is
selected.
2022-01-24 21:37:57 +01:00
7f5d0ab6be io_mesh_atomic: atom objects had no 'diffuse_color'
Property 'material.diffuse_color' is now set such that one can see the
color of the atoms in also the 'Solid mode' of the Viewport.

Please enter the commit message for your changes. Lines starting
2022-01-23 10:55:38 +01:00
6e910cf217 The addon gets updated for Eevee/Cycles - part 4 - revision: A point source
for both, Eevee and Cycles, is sufficient, no need to have an additional
ball with emission for Cycles.
2022-01-20 15:01:18 +01:00
3012911034 Update/bug removal of the 'Utility panel' - part 1: the functions in the
section 'Change atom shape' got updated for eevee and cycles.
There are also a few adjustments of the values of both importers
(PDB and XYZ).
2022-01-16 22:01:17 +01:00
ee7f95212b ... with some addtional changes. 2022-01-16 10:50:52 +01:00
7d11bb351e The addon gets updated for Eevee/Cycles - part 4: a point light source for
Eevee is re-inserted (I forgot that this is needed for Eeve) and the transparency
material properties of the vacancies when using Eevee have been changed: the
cubes show now a nice transparency.
2022-01-16 10:29:13 +01:00
efcceb62d4 The addon gets updated for Eevee/Cycles - part 3: vacancies, as described by an 'X' in
PDB and XYZ files, are shown as transparent cubes. The properties of the transparency
have been changed and are now much better ... . The user can certainly adjust these
properties after the import.
2022-01-15 20:33:24 +01:00
c00916b26b The addon gets updated for Eevee/Cycles - part 2: we now use a sphere
as a 'point' light source. In material properties, the sphere has the
node called 'Emission'. Note that the light source as well as a camera
can be **optionally** chosen, they are not set by default.
2022-01-15 12:40:30 +01:00
f1d2eca09b q 2022-01-14 23:08:06 +01:00
1b95d391dc The addon is updated for Eevee/Cycles - part 1: the atoms get now a useful color
by using nodes (material properties). The color used in the viewport shading
('solid mode') has been removed since it doesn't make sense anymore. Otherwise
one always has to manually choose 'using nodes' in the material properties.
2022-01-14 22:46:15 +01:00
59625d6200 Fix of an unreported error: "material.blend_method = 'ADD'" did not work anymore. We now use "material.blend_method = 'OPAQUE'" 2019-12-24 15:50:33 +01:00
8c37a7fe4a Update for object add align property changes 2019-05-15 18:05:28 +02:00
e452b07c64 Update addons for changes to proportional edit mode 2019-05-06 15:04:04 +10:00
6c87db2551 Fix 1: Atomic structures based on meta spheres were not visible because the meta balls were hidden by default, T62804
Fix 2: Option 'Mesh UV spheres' for atomic structures lead to an error message, T62804

Comments
========
1: It i strange that a representative mesh sphere or NURBS sphere in a dupliverts structure
can be hidden, which is not the case for meta balls. A representative meta ball needs to
be 'visible' and not hidden. By default this is now the case.
2: The 'size' option in 'bpy.ops.mesh.primitive_uv_sphere_add' does not exist anymore.
Option 'size' was removed.
2019-03-29 20:33:17 +01:00
9791bd3a22 The new ‘Atomic Blender PDB/XYZ’ importer. T62804
Comments
========
This is the fusion of the 3 atomic blender addons from Blender 2.79:

    1. PDB (I/O addon for .pdb files, was in trunk before)
    2. XYZ (I/O addon for .xyz files, was in contrib before)
    3. Utilities (panel for modifying atomic structures, was in contrib before),

into one single addon called ‘Atomic Blender PDB/XYZ’.
2019-03-28 10:37:49 +01:00