Select between multiple instance geometries
The selector_instance
node selects between multiple shapes so that, for example, you can create a forest based on several different trees. You can also daisy-chain selector_instance
nodes, for example, to select between pine and leafy trees based on one criterion, and then select between different examples of each based on other criteria. The output of selector_instance
can be connected into either a set_instance_geometry
node or a set_instance_shape
node.
Add a
selector_instance
node to the graph.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 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.If desired, connect a simple geometry to the
preview_geometry
port. This geometry acts as a stand-in for previewing in the viewport. Note that it will be used for all instances, even if they already have preview geometries defined, for example, if you connectedgeo_instance
nodes to theinstance_geometries
port instead of connecting geometries directly.Connect the
selector_instance
to either aset_instance_geometry
node or aset_instance_shape
node.