eradiate.kernel.UpdateParameter#
- class eradiate.kernel.UpdateParameter(evaluator, flags=<Flags.ALL: 3>, lookup_strategy=None, parameter_id=None)[source]#
Bases:
objectThis class declares an Eradiate parameter in a Mitsuba scene parameter update map. It holds an evaluation protocol depending on context information.
- Parameters:
evaluator (
callable()) – A callable that returns the value of the parameter for a given context, with signaturef(ctx: KernelContext) -> Any.flags (
Flags, default:Flags.ALL) – Flags specifying parameter attributes. By default, the declared parameter will pass all filters.lookup_strategy (
callable(), optional, default:None) – A callable that searches a Mitsuba scene tree node for a desired parameter ID: with signaturef(node: mi.Object, node_relpath: str) -> Optional[str].parameter_id (
str, optional) – The full ID of the Mitsuba scene parameter to update.
- Fields:
evaluator (
callable()) – A callable that returns the value of the parameter for a given context, with signaturef(ctx: KernelContext) -> Any.flags (
Flags) – Flags specifying parameter attributes.lookup_strategy (
callable()orNone) – A callable that searches a Mitsuba scene tree node for a desired parameter ID: with signaturef(node: mi.Object, node_relpath: str) -> Optional[str].parameter_id (
strorNone) – The full ID of the Mitsuba scene parameter to update.
See also
- class Flags(value)[source]#
Bases:
FlagUpdate parameter flags.
- GEOMETRIC = 2#
Triggers a scene rebuild
- SPECTRAL = 1#
Varies during the spectral loop
- UNUSED = <object object>#
Sentinel value indicating that a parameter is not used