44 scale_factor_operation->
set_value(
context.get_render_percentage_as_factor());
64 const float render_size_factor =
context.get_render_percentage_as_factor();
#define CMP_SCALE_ABSOLUTE
#define CMP_SCALE_SCENEPERCENT
#define CMP_SCALE_RENDERSIZE_FRAME_CROP
#define CMP_SCALE_RENDERSIZE_FRAME_ASPECT
#define CMP_SCALE_RENDERPERCENT
#define CMP_SCALE_RELATIVE
void set_scale_canvas_max_size(Size2f size)
void set_variable_size(bool variable_size)
Overall context of the compositor.
void add_link(NodeOperationOutput *from, NodeOperationInput *to)
void map_output_socket(NodeOutput *node_socket, NodeOperationOutput *operation_socket)
void add_operation(NodeOperation *operation)
void map_input_socket(NodeInput *node_socket, NodeOperationInput *operation_socket)
NodeOperationOutput * get_output_socket(unsigned int index=0)
NodeOperationInput * get_input_socket(unsigned int index)
NodeOutput are sockets that can send data/input.
NodeOutput * get_output_socket(unsigned int index=0) const
bNode * get_bnode() const
get the reference to the SDNA bNode struct
NodeInput * get_input_socket(unsigned int index) const
void set_new_width(int width)
void set_offset(float x, float y)
void set_is_crop(bool is_crop)
void set_is_aspect(bool is_aspect)
void set_new_height(int height)
ScaleNode(bNode *editor_node)
void convert_to_operations(NodeConverter &converter, const CompositorContext &context) const override
convert node to operation
void set_value(float value)