add_graph_action function

Add a graph action for execution at every transform