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?
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?
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.