Duplicate an item and add it to a new artboard

When I try to duplicate an item and add it to another artboard that is not the parent of that item, I receive the error:

Plugin Error: add (): Added node already has an owner (either a parent or an active state).

Is there a way to achieve this?

1 Like

After you duplicate the item, you can call item.removeFromParent() before adding to the other artboard. See https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#scenenoderemovefromparent.

Then you may run into edit context problems when adding to another artboard, unless your selection includes the other artboard.

3 Likes