Paquetes de nodos¶
Un paquete es un contenedor que agrupa múltiples valores en un único conector. Esto hará posible pasar varios valores a través de una única conexión (de forma similar a una estructura en programación).
Los paquetes ayudan a reducir la cantidad de entradas y salidas expuestas de un grupo de nodos y son capaces de contener tipos de datos disímiles, tales como geometrías, campos, valores, objetos o hasta otros paquetes anidados.
Un cubo y un cilindro en agrupados en un paquete y, luego, vueltos a separar.¶
Nodos¶
The following nodes are provided for working with bundles:
Bundle nodes allow adding or removing an arbitrary number of sockets, with flexible type support.
Bundles can be attached to geometry using get/set geometry bundle nodes. These can be used to pass bundled data between modifiers and objects.
Typed Bundles¶
A typed bundle is a bundle that contains a special Type item identifying its purpose. The type is stored as a string and allows node groups to recognize bundles without relying on their internal structure.
Using types makes bundles easier to exchange between node groups and different Geometry Nodes modifiers, since a node group can search for a specific type rather than assuming a particular bundle layout.
Bundles can also contain other bundles, allowing complex data to be organized hierarchically.
Creating Typed Bundles¶
The Add Typed Bundle operator creates a typed bundle by constructing a bundle containing the required Type item.
Importante
The string item named Type is reserved for identifying typed bundles.
It should not be used for any other purpose within a bundle.
Searching Typed Bundles¶
The Get Nested Bundle Paths node searches a bundle hierarchy for bundles with a matching type.
This allows node groups to locate typed bundles even when they are nested inside other bundles.
For example, a geometry may contain multiple bundles describing different components. A node group can search for all bundles of a particular type without requiring them to exist at a fixed location.
Uso¶
Los paquetes resultarán útiles con varios propósitos:
Simplificación de interfaces – permitiendo agrupar entradas en un único conector, para una mayor claridad.
Simulaciones dinámicas – permitiendo empacar todas las entidades y restricciones de un mismo método de resolución.
Sistemas declarativos – permitiendo almacenar datos estructurados para su posterior evaluación.
Conjuntos de texturas – permitiendo combinar mapas PBR (Color base, Rugosidad, Normal) en un único conector.
Sincronización de conectores¶
Bundles use socket names to match their inputs and outputs. If two bundle nodes are connected but have mismatched signatures, Blender can offer to sync them automatically.
Sync happens automatically when a node is connected for the first time.
Existing sockets are never updated automatically to avoid overwriting data.
A button (Sync Sockets) button appears in the node header when a mismatch is detected, allowing manual synchronization.