Share

Control material properties by geo properties

You can use properties of geometric objects to control material definition properties. For example, you can set a material's base_ color to a particle system's point_velocity for diagnostic purposes, or use custom geo properties to drive any number of material properties to achieve artistic results.

Particle velocity as color

Note:

This procedure works only with material definitions. Referenced materials are not supported.

  1. Add a material definition, such as standard_surface_mat or constant_surface_material, to your graph.

  2. Connect its output to the material_definition port of a set_geo_property_reference node.

  3. Set material_property to the name of the material property to control, such as base_color.

  4. Set geo_property to the name of the property on the geometric object to use to control the material property.

  5. Connect the output of set_geo_property_reference to one of the material inputs of an assign_material node.

  6. Connect the geometric object into the geometry port of the assign_material node. Output the result to the scene, or modify it further in the graph.

Using set_geo_property_reference

Was this information helpful?