PDT Parts Library (Biblioteca de partes de PDT)#
El menú para la biblioteca de partes
This module is in its infancy for releases up to and including 1.1.5 and is an attempt to organize a collection of parts, as objects, in a central repository. This library will consist of Objects, Collections and Materials. For now, these are placed in a holding blend file in Blender’s:
«…../Scripts/Addons/clockworxpdt» folder (the location of the PDT Add-on).
Principios:#
The concept is to store parts as either individual objects, or in the case of more complex parts, like an engine assembly for example, as collections. When objects are linked or appended, Blender will will bring the materials of the object with it. If you append the part many times, you get many copies of the same material -– not a situation that is efficient. So the recommendation for this trial system is to leave the materials off the objects and store them either against a «holder» object, or set a fake user so the material is always held in the library blend file. Then you can append or link the material once and assign it to many copies of the appended or linked object.
The plan is to expand the system so users can send objects, collections, or material from their current open blend-file to the Library blend-file. This will be a further development in a later release, if this is possible. Parts Libraries have been in existence in CAD systems since the 1980’s where they were called «Cells» and had one, or many «Cell Libraries» to store them in, each cell had a user defined origin point that was used to place the part. The process was to put the cursor where you wanted the part, then call it by name and it would be placed with its origin at the cursor location.
PDT Parts Library uses the same method to store, recall and place parts at the cursor location:
This shows the Parts Library Menu and some sample parts brought in by either Appending
or Linking
.
Archivo de la biblioteca de piezas:#
The Parts Libraries can be located wherever you want them on your system. The location of your file, a normal Blender blend file, is set in the PDT Add-on Preference (
):You can either type in the location and name of the file, or click the Folder
icon and use Blender
file select tools to navigate to your file. The Selectors in PDT are then automatically updated
with your file’s objects, collections and materials, subject to any search criteria.
this can be changed at any time in your session to access data from another library file.
Las Opciones son:#
Append
– this will append the chosen Object, Collection,
or Material from the library into your current blend file.
Link
– this will link the chosen Object, Collection,
or Material from the library into your current blend file.
Whether you are going to work with objects, collections, or materials depends on the setting of the Selector next to the Link button.
The next three Selectors will show the Objects
, Collections
and Materials
in the Library blend file, either all of them, or filtered by the Search input next to each Selector.
The Search
strings consist of any characters that appear anywhere in the Object’s,
Collection’s, or Material’s Name. So searching with gear
in the search box will find,
for example, objects named 25T 20mm gear
, or gears – 20mm 25teeth
, etc.
The principle of operation is therefore:
Place the 3D cursor where you want the objects to be located.
Enter any required search criteria, to narrow the list shown in the selector.
Select the type to work with; Objects, Collections, or Materials.
Seleccionar el objeto, colección o material requerido.
Click either
Append
, orLink
.
At the moment, if you bring in a collection, ALL objects in that collection are placed at the cursor location. The purpose of this is to bring in complex models and assume that they will be placed «as one» at the cursor location, this also assumes that they were built as a number of objects with a shared origin in the library.
The suggestion at this stage that materials can be imported and used on each object to which they are appropriate, it may be that many parts share a common material, in which case, using this approach does not result in many duplicate materials in the blend file.
The Show Library File
button will show the user in a popup the location of the parts library file,
this is also printed to the console, if you are running Blender from a Terminal.
This purpose of this is to make it easier to locate the parts library for editing.
The library file can be opened in Blender and edited like any blend file to add your own objects, collections and materials.
Aquí hay un ejemplo de una serie de motores usados en distintos tipos de bicicletas y triciclos, estos han sido anexados desde un archivo de biblioteca a un archivo .blend de trabajo, luego se asignaron los materiales:
Cada motor es modelado como un conjunto de objetos individuales, organizado en forma de colección en el archivo .blend. Todos los archivos individuales de cada colección compartirán un punto de origen en común, para poder ser ubicados en la posición relativa que corresponda.
An alternative under consideration at this stage would be to store in the parts library, only the unique components of these engines, they share cylinder barrels for example, then append, or link these into a project file and build whichever engine is required.
El sistema ha sido dejado deliberadamente abierto en esta etapa de desarrollo, para que a medida que pase el tiempo, más ideas puedan ser exploradas y el sistema sea refinado. Es posible que este sistema sea reemplazado y quede obsoleto gracias a los avances en Blender con métodos mejores y más capaces de administración de recursos.