Event Arguments
When you write functions for given
, change
, keep
or select
, you can name what arguments you want to use. You can choose from these arguments:
space
atom
element
origin
(the space that is calling the event)self
(the atom that is calling the event)Self
(the element that is calling the event)selected
(a value that was returned by aselect
function of the same symbol)x
(the relative x-value of the space)y
(the relative y-value of the space)z
(the relative z-value of the space)sites
(an array containing all spaces in the origin's event window)siteNumber
(the site index of this space)time
(the number of event cycles that have happened since page load)
The arguments below are mainly used for internal purposes, but are still available:
transformationNumber
(when using a symmetry block, the current transformation number)possibleSiteNumbers
(when using anany
block, an array containing possible site numbers for this space)possibleXs
(when using anany
block, an array containing possible relative x-values for this space)possibleYs
(when using anany
block, an array containing possible relative y-values for this space)possibleZs
(when using anany
block, an array containing possible relative z-values for this space)transformationNumbers
(when using afor
block, an array containing transformation numbers)
Last updated