26 const int framenumber = context.get_framenumber();
28 if (framenumber < node->custom1) {
31 else if (framenumber > node->custom2) {
34 else if (node->custom1 < node->custom2) {
35 fac = (context.get_framenumber() - node->custom1) /
float(node->custom2 - node->custom1);
MINLINE float clamp_f(float value, float min, float max)
Overall context of the compositor.
void map_output_socket(NodeOutput *node_socket, NodeOperationOutput *operation_socket)
void add_operation(NodeOperation *operation)
NodeOperationOutput * get_output_socket(unsigned int index=0)
NodeOutput * get_output_socket(unsigned int index=0) const
const bNode * get_bnode() const
get the reference to the SDNA bNode struct
void set_value(float value)
void convert_to_operations(NodeConverter &converter, const CompositorContext &context) const override
convert node to operation
TimeNode(bNode *editor_node)