![]() Then NetLogo will ignore that model when generating previews. ![]() Repeat 75 [ go a model needs a hand-generated preview (for example, a model that requires user interaction), set the custom preview commands to a single pseudo-command, need-to-manually-make-preview-for-this-model. (Even if you specify custom commands, NetLogo still does random-seed 0 before running them, so you don't need to set the random seed yourself unless you don't like 0.)įor example, you'll notice the custom preview commands in the Wolf Sheep Predation model: You can specify custom preview commands for a particular model by hand-editing the model file and putting your custom preview commands in the section near the end right after the NetLogo version, or by using the Preview Commands Editor (accessible from the Tools menu). sbt preview can be used to remake a single preview.īy default, NetLogo generates a preview image by executing random-seed 0 setup repeat 75, and then exporting the contents of the 2D view. sbt all-previews redoes the whole models library and. NetLogo can automatically generate preview images for models. The preview image should have the same name, and live in the same directory, as the model, but extension. This image is used in the Models Library window. ![]() The plot can then be controlled with the following narrowcast plotting primitives.Įvery model in the models library needs a PNG preview image. _hubnet-make-plot-narrowcast designates a plot as narrowcast.īoth the model and the client should have a plot named plotname.HubNet can control plots specific to each client: _export-drawing exports only the drawing layer to an image file._change-topology sets the wrapping in x and y directions.(This one is actually in the User Manual.) So 1.0 means one patch wide, zero will always be 1 pixel wide regardless of patch size. _set-line-thickness sets the thickness of lines in the shape ( if any are contained in the turtles current shape).Either the result is the empty string "", indicating that string will not result in a compiler error if immediately passed to run, or it is an error message indicating the compile error that occurred. _check-syntax reports a string result indicating whether was successfully parsed as a NetLogo statement._reload will reload the current model from disk.For example, to open Flocking, you might type _flock You can quickly open any model in the Models Library by typing a name, or a part of its name, into the Command Center, preceded by three underscores.If any of these are important to your work, stay in touch with the devel team about their status. They are (mostly) not in the User Manual and they may not continue to exist or work in future versions of NetLogo. These features are not officially supported.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |