Blender V4.3
COM_CompositorContext.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
6
7namespace blender::compositor {
8
10{
11 scene_ = nullptr;
12 rd_ = nullptr;
13 bnodetree_ = nullptr;
14}
15
17{
18 BLI_assert(rd_);
19 return rd_->cfra;
20}
21
27
28} // namespace blender::compositor
#define BLI_assert(a)
Definition BLI_assert.h:50
CompositorContext()
constructor initializes the context with default values.
int get_framenumber() const
get the current frame-number of the scene in this context
const RenderData * get_render_data() const
get the scene of the context
float get_render_percentage_as_factor() const
Get the render percentage as a factor. The compositor uses a factor i.o. a percentage.