BehaviourComposer: ignore everything before this. Begin micro-behaviour: Begin description: Save a snapshot of the entire interface to the file system. NETLOGO ONLY - DOES NOT WORK IN APPLETS. End description Record interface Begin NetLogo code: substitute-text-area-for folder-path test1displayexport-interface (word "folder-path" "/frame" but-first (word (100000 + round ticks)) ".png") End NetLogo code VariantsTypically this is enhanced to repeat on every tick. How this worksThis uses the NetLogo primitive export-interface to save a PNG file of the appearance of the current  state of the interface. The reason for adding 100000 to the ticks and then removing the first digit is so the file names are chronologically ordered when sorted alphabetically. Related micro-behavioursRecord view records only the view of the world and not the user interface widgets. HistoryThis was implemented by Ken Kahn on 10 August 2012. BehaviourComposer: ignore everything after this. |