set

fun set(bindableArtboard: BindableArtboard?)

Set the bindable artboard for this property.

To create a BindableArtboard, use File.createBindableArtboardByName or File.createDefaultBindableArtboard.

Pass null to clear the artboard from the property.

⚠️ If you are done with the BindableArtboard instance, be sure to call BindableArtboard.release after assigning. The property will retain its own reference to the bindable artboard.

Throws

if bindableArtboard has been disposed.


fun set(artboard: Artboard)

Deprecated

This method is unsafe as the Artboard's lifetime is bound to that of the File that created it. Use a BindableArtboard to ensure proper lifetimes.

Replace with

set(bindableArtboard)

Set the artboard for this property.

The bound artboard will retain none of the state of the passed in artboard. It effectively creates a new instance of the artboard with its initial state.

Throws

if artboard has been disposed, if its file doesn't exist, or if its file has been disposed.