SetLayerAction Function
Attaches one or more given layer actions to a given object item from an Envision document currently opened in the Canvas Envision Creator app.
SetLayerAction(
obj: [[[EvItem|canvas-envision-document-items.html#object-items]]],
layerActions: [[[EvLayerAction|evlayeraction-interface.html]]][],
tooltip?: string
): Promise<void>
Parameters
obj: EvItemAn Object item object, an object item from the Envision document currently opened in the Canvas Envision Creator app to which the given layer actions should be attached.
layerActions: EvLayerAction[]An array of
EvLayerActionobjects, one or more layer actions that should be attached to the given object item.tooltip?: stringA string, an optional custom tooltip that overrides the default tooltip of the given object item.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the given layer actions have been successfully attached to the given object item in the current Envision document.
27 March 2025