Updated snapshot to save by selection; several changes in scripts and scripting API.