Denoise renderings. An example config file using this control can be found here:
of the other controls in the
unit_tests folder, this files parent folder, use
this control as well for more realistic renderings).
DenoiseControl(root_folder: str, *, continuous_dims: Optional[Dict[str, Tuple[float, float]]] = None, discrete_dims: Optional[Dict[str, List[Any]]] = None)¶
Enable the built-in Denoise feature in blender
This control enables the blender feature for denoising renderings. It has no parameters.
apply(context: Dict[str, Any], control_args: Dict[str, Any]) → None¶
Enable OPENIMAGEDENOISE denoiser
context (Dict[str, Any]) – The scene context
unapply(context: Dict[str, Any]) → None¶
Undo the modification on a scene
Most of the time, recreating a scene is very expensive, therefore, controls are asked to implement a reverse operation to undo their changes. Controls that need to store state in order to undo their actions should add data to the target object they received.
context (Dict[str, Any]) – The description of the scene to render