ScriptInterface:LayerAsImage(layer)
Version added: before 9.5
Arguments:
Name | Type | Description | Default | Ver |
layer | MohoLayer | The layer to cast | < 9.5 |
Return value:
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.
Search results
Usage of 'LayerAsImage' is found in the following scripts:
Replace PSD (Original Edition) by A.Evseeva
View Code
Render (Original Edition) by Lukas
View Code
MR Transform Rig Tool (Original Edition) by eugenebabich
View Code
WP Import from Spine JSON (Original Edition) by wigglepixel
View Code