SparkRef

Syntax

[var name] = sparkref(โ€œ[spark instance name]โ€)

Return: ValMap in the โ€œSparkโ€ format

Description

PLEASE NOTE: This is currently a MEMORY HEAVY API, so use it wisely.

Used for cases where a Spark Instance needs to be modified many times within the same script. This could be multiple traits on the same instance or the same traits modified multiple times (as in the case of a for or while loop).

Sample Usage

Adjust the altitude and position traits of a spark called "Spark 1"

spark = sparkref("Spark 1") spark.traits.altitude = 3 spark.traits.position.value = "(0,1)"

Last updated