Create instances with set_instance_geometry
set_instance_geometry
is a high-level node for creating instances of geometry from points objects. It has built-in options for switching between several master geometries, based on either a stored long
values per-point or an input array of long
values.
Add a
set_instance_geometry
node to the graph.Connect a points object, such as the output of a particle system, to the
points
input.Connect one or more geometric objects like meshes to the
instance_geometries
port. In addition to geometries, you can also connect instance shapes, such as the output of:geo_instance
, if you want to use different preview geometries for different instance master shapes.render_archive_instance
, to instantiate render archive files on disk.selector_instance
, for more complex switching between master geometries.
Specify how to assign a geometry to each point. This can be be done in one of two ways:
- Specify the name of a custom
long
property as theinstance_id_property
input. This assumes that you have used a node likeset_geo_property
upstream to assign a property targeting thepoint_component
of the points object. The property should specify which geometry to instantiate, where 0 is the first geometry connected toinstance_geometries
, 1 is the second, and so on. - Connect an array of
long
to theinstance_id_values
port, and enableoverwrite_instance_id
. If the array is longer than the number of points, the extra values are ignored. If the array is shorter, the first connected geometry is used for the remaining points.
- Specify the name of a custom
If desired, connect one or more simple geometries to the
preview_geometries
port. These geometries act as stand-ins for previewing in the viewport. Note that some instance shapes might already have preview geometries defined, for example, if you connectedgeo_instance
nodes to theinstance_geometries
port instead of connecting geometries directly. In addition, if you connect a single geometry here then it is used for previewing all instances, including those that already have their own preview geometry defined — this can be useful for simplifying the view when you are working on other things.Output the resulting
instances
to the scene.