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_instancenode to the graph.Connect one or more geometric objects like meshes to the
instance_geometriesport. 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
longproperty as theinstance_id_propertyinput. This assumes that you have used a node likeset_geo_propertyupstream to assign a property targeting thepoint_componentof 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_geometryport. 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_instancenodes to theinstance_geometriesport instead of connecting geometries directly.Connect the
selector_instanceto either aset_instance_geometrynode or aset_instance_shapenode.
