eradiate.kernel.TypeIdLookupStrategy

eradiate.kernel.TypeIdLookupStrategy#

class eradiate.kernel.TypeIdLookupStrategy(node_type, node_id, parameter_relpath)[source]#

Bases: object

This parameter ID lookup strategy searches for a Mitsuba type and object ID match.

Instances are callables which take, as argument, the current node during a Mitsuba scene tree traversal and, optionally, its path in the Mitsuba scene tree. If the lookup succeeds, the full parameter path is returned.

Parameters:
  • node_type (type) – Type of the node which will be looked up.

  • node_id (str) – ID of the node which will be looked up.

  • parameter_relpath (str) – Parameter path relative to its parent object.

Fields:
  • node_type (type) – Type of the node which will be looked up.

  • node_id (str) – ID of the node which will be looked up.

  • parameter_relpath (str) – Parameter path relative to its parent object.