# Easy way to copy an effect?

**URL:** <https://wled.discourse.group/t/easy-way-to-copy-an-effect/6056>\
**Category:** Questions\
**Created:** [October 6, 2022, 4:38pm UTC](https://wled.discourse.group/t/easy-way-to-copy-an-effect/6056 "2022-10-06T16:38:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpichow](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dpichow](https://wled.discourse.group/u/dpichow)\
**Post date:** [October 6, 2022, 4:38pm UTC](https://wled.discourse.group/t/easy-way-to-copy-an-effect/6056/1 "2022-10-06T16:38:11Z")

</div>

HI, How do I change the API in a preset for Candy Cane to change the colors.  
Or copy effect “Candy Cane” and chg the colors there.  
Thx

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [October 6, 2022, 6:29pm UTC](https://wled.discourse.group/t/easy-way-to-copy-an-effect/6056/2 "2022-10-06T18:29:54Z")

</div>

Try this:  
Setup a preset with the effect/colours you like, save it, uncheck the “Overwrite with state” box and then refresh your browser. The API commands for that preset will be displayed.

You can save that to a different preset and make the colour changes you want.  
Turn the API back on and you’ll see the differences in the API command you need to make.

---

<div class="post-metadata">

**Author:** ![dpichow](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dpichow](https://wled.discourse.group/u/dpichow)\
**Post date:** [October 7, 2022, 12:41pm UTC](https://wled.discourse.group/t/easy-way-to-copy-an-effect/6056/3 "2022-10-07T12:41:43Z")

</div>

Thanks, I did this but all the API is doing is call fx:114 the “Candy Cane” effect. And obviously this effect has predefined colors.

---

<div class="post-metadata">

**Author:** ![dpichow](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dpichow](https://wled.discourse.group/u/dpichow)\
**Post date:** [October 7, 2022, 2:32pm UTC](https://wled.discourse.group/t/easy-way-to-copy-an-effect/6056/4 "2022-10-07T14:32:18Z")

</div>

I found the solution.  
Use “Candy Cane” and change the API fx: from 114 to 37 which uses the primary and secondary color.
