Hello, I saw that this revision was stalled for a few months so I tried to update it. https://developer.blender.org/D10995 I added a function that adds a preview on the first connected input of the file output node. I removed the preview on the single layer format Thanks Reviewed By: #compositing, jbakker Maniphest Tasks: T84815 Differential Revision: https://developer.blender.org/D14219
32 lines
831 B
C++
32 lines
831 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2011 Blender Foundation. */
|
|
|
|
#pragma once
|
|
|
|
#include "COM_Node.h"
|
|
|
|
#include "COM_OutputFileMultiViewOperation.h"
|
|
|
|
#include "DNA_node_types.h"
|
|
|
|
namespace blender::compositor {
|
|
|
|
/**
|
|
* \brief OutputFileNode
|
|
* \ingroup Node
|
|
*/
|
|
class OutputFileNode : public Node {
|
|
public:
|
|
OutputFileNode(bNode *editor_node);
|
|
void convert_to_operations(NodeConverter &converter,
|
|
const CompositorContext &context) const override;
|
|
|
|
private:
|
|
void add_preview_to_first_linked_input(NodeConverter &converter) const;
|
|
void add_input_sockets(OutputOpenExrMultiLayerOperation &operation) const;
|
|
void map_input_sockets(NodeConverter &converter,
|
|
OutputOpenExrMultiLayerOperation &operation) const;
|
|
};
|
|
|
|
} // namespace blender::compositor
|