ScriptInterface:LayerAsImage(layer)

Version added: before 9.5

Converts a generic layer object into an image layer

ArgumentTypeDescriptionDefaultVer
layerMohoLayerThe layer to cast< 9.5

Return type (ImageLayer): an ImageLayer object

Converts a generic layer object into an image layer. The layer is not modified - this is equivalent to "casting" from one type of pointer to another in C. Some functions return a generic layer object, even if the layer is really an image layer - use this function if you need to work with ImageLayer-specific functions.
String "LayerAsImage" is found in the following scripts:

WP Import from Spine JSON (by wigglepixel)

MR Transform Rig Tool (by eugenebabich)

Render (by Lukas)

Images Render Quality (by Stan)

Replace PSD (by A.Evseeva)

See all...