# Copy configure events

**URL:** <https://forum.inductiveautomation.com/t/copy-configure-events/70027>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 17, 2023, 7:51pm UTC](https://forum.inductiveautomation.com/t/copy-configure-events/70027 "2023-02-17T19:51:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [February 17, 2023, 7:51pm UTC](https://forum.inductiveautomation.com/t/copy-configure-events/70027/1 "2023-02-17T19:51:56Z")

</div>

Is there an easy way to copy and paste configured events?

Is there a way to copy and paste it that isn't easy?

Or do I have to manually generate each one for each that I need to make?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [February 17, 2023, 11:02pm UTC](https://forum.inductiveautomation.com/t/copy-configure-events/70027/2 "2023-02-17T23:02:56Z")

</div>

No there's no easy way to copy the Events of a component. Why not just copy the whole component and then change what you need to change in the props?

The hard way is to

1. Copy the original component to your clipboard.
2. Paste it into a text editor.
3. Copy the target component to your clipboard.
4. Paste it to another file in your text editor.
5. Copy the `events` entry from the original component's JSON.
6. Paste the contents of the clipboard into the appropriate location on the target component in the text editor (along with a preceding comma to make the JSON Gods happy).
7. Copy the entirety of the target component in the text editor.
8. Replace the target component in your Designer with the contents of your clipboard.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [February 18, 2023, 5:29am UTC](https://forum.inductiveautomation.com/t/copy-configure-events/70027/3 "2023-02-18T05:29:19Z")

</div>

This feels like a _relatively_ easy enough “Copy event” or “Copy action” context menu on text lists in the popup. Similar to the “Copy binding” context menu.

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [February 18, 2023, 6:48am UTC](https://forum.inductiveautomation.com/t/copy-configure-events/70027/4 "2023-02-18T06:48:32Z")

</div>

In actual projects, it is very common to generate scripts for configured bindings.  
At first you create thousands components to show the machine. Then, you realize you need script to control them....

---

<div class="post-metadata">

**Author:** ![ken.maze](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ken.maze/32/85876_2.png) [@ken.maze](https://forum.inductiveautomation.com/u/ken.maze)\
**Post date:** [May 23, 2024, 5:07pm UTC](https://forum.inductiveautomation.com/t/copy-configure-events/70027/5 "2024-05-23T17:07:29Z")

</div>

It seems the somewhat less hard way is to

1. open the event script of the source object
2. copy the script
3. open the event script of the target object
4. paste the script

but it does feel like a copy event script feature could save some time when you set it up like nideyijuyidong mentioned, even once you're experienced sometimes you end up doing t that way

---

<div class="post-metadata">

**Author:** ![ken.maze](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ken.maze/32/85876_2.png) [@ken.maze](https://forum.inductiveautomation.com/u/ken.maze)\
**Post date:** [May 23, 2024, 5:11pm UTC](https://forum.inductiveautomation.com/t/copy-configure-events/70027/6 "2024-05-23T17:11:58Z")

</div>

And, I just discovered you can paste the script to muliple objects, so:

1. open the event script of the source object
2. copy the script
3. select multiple objects you want to copy the script to
4. make an event script of the target object(s)
5. paste the script

This works best when the script is only self-referential to the object, but may work under other circumstances,
