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
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
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.
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
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.
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.
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.
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.
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.
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’.