getImage

abstract fun getImage(key: String, target: VariableTarget?): String

Get an image variable. Experimental: this API may change in a minor release.

Return

the URI of the image.

Parameters

key

the variable's key.

target

the layer to read. null returns the value that the scene shows: the value of the active value set, else the default value.


open fun getImage(key: String): String

Get the shown value of an image variable. Same as getImage with no target.