script_inject_snippet is now being serialized to plot models