How do I change and key frame layer parameters?

If I use the code

layer->set_param("amount",0.5);

The layer’s parameter changes, but a waypoint is not added, even with animate editing mode turned on.
Is there a solution?

yop,

That’s correct :wink: … There is a difference between Param and ValueNode
download.tuxfamily.org/synfig/ap … Layer.html

Also depending … but you may have interest for that :
github.com/synfig/synfig/blob/a … intadd.cpp

Just curiosity, what are you trying to achieve ?

How do I set the ValueNode? I am trying to create a shortcut that changes the layer’s parameter.