# Magic color

{% embed url="<https://www.youtube.com/watch?v=CdYgmhv6xw0>" %}

***

As the effector moves near the drones, one of the following effects can be applied:

* **`Fixed:`** drones within the effector take on the selected color.
* **`Faded:`**&#x64;rones inside the effector adopt the chosen color, while those outside transition with a fading effect based on their distance from the effector.
* **`Random:`**&#x64;rones within the effector randomly pick one of the selected colors and change at a defined interval.

> ***Magic color helps you create color effects on multiple drones at the same time.***

## 🔸Create an effector&#x20;

The first step is to place the desired mesh into to `Effector` collection

![](https://content.gitbook.com/content/7kFPTfd9Bef94qNlcfqD/blobs/8PfW2FAaQTTOrAqF45Mx/cube_to_effector.gif)

{% hint style="warning" %}
Only the meshes inside the `Effector`collection are considered potential effectors
{% endhint %}

## 🔸Add emission material

Select your effector and go to Material Properties.

Click on `Add emission material` to add the custom material for effectors.

## 🔸Apply an effect

The effector candidates are available on the `Name` list. Three different types of effects are available on the `Type` list:

**Fixed:** Drones inside the effector take their color, nothing appends to the other drones, this type is not concerned by the `Frame rate` and `Intensity` parameter

![](https://content.gitbook.com/content/7kFPTfd9Bef94qNlcfqD/blobs/njx0BsnbP9l0L5falBMP/Fixed_drone.gif)

**Random**: Drones inside the mesh take the different colors of the effector randomly with a rate of `Frame rate`. For instance, if the frame rate is 6, the color of the drones inside the mesh will change every 6 frames

![](https://content.gitbook.com/content/7kFPTfd9Bef94qNlcfqD/blobs/ZgovRrz3kYBWoXwIJcML/Random_drone.gif)

**Faded:** Drones inside the effector take its color. The drone outside the effector takes its color decreasing over distance with an intensity of `Intensity`, for instance, if the intensity is zero the drones outside the mesh will not be modified and if the intensity is very high the drones outside the mesh will have the same color as the drones inside

![](https://content.gitbook.com/content/7kFPTfd9Bef94qNlcfqD/blobs/F6sobYbGXnn4gdPeoYGD/Faded_drone.gif)

`Priority` determines the influence one effector has over the others. For instance, if a drone is inside a red cube with a priority of 1 and a green sphere with a priority of 2, the color of the drone will be a combination of $$\frac{1}{3}$$ red and $$\frac{2}{3}$$ green. So if you wish that a mesh has an absolute priority over another you must set a high value of priority of that mesh over the other, for instance 1000 over 1

{% hint style="success" %}
The effector effects are reinitialized based on the mesh on the `Effector` collection **every time you save your blender file**
{% endhint %}

## 🔸Visualize effects

Effector effects are update **every time the current frame is changed**

## 🔸Delete effects&#x20;

In order to remove an effector, you must move the mesh into another collection and **save the blender file**

![](https://content.gitbook.com/content/7kFPTfd9Bef94qNlcfqD/blobs/0DsprFg7ijU4ES8pkRD9/remove_effector.gif)

## 🔸Register LED&#x20;

`Register LED` registers the keyframe the color between `Start` and `End` with a frame rate of `Frame rate` with the selected `Interpolation`. For instance, if the frame rate is 6, a color keyframe will be registered every 6 frames. Even if it is recommended to have the lowest frame rate in order to have the best visual output, it is also recommended to watch the size of the dance during the show creation so your dance can be exported (Higher frame rates create smaller dance files).

Once the LED effects are registered, they will remain even if the effectors are removed

![](https://content.gitbook.com/content/7kFPTfd9Bef94qNlcfqD/blobs/HvunUKQlKkfDReO5WN4s/register_led.gif)

{% hint style="success" %}
The registration of the LED can take a few minutes based on the number of frames and the capacity of your computer
{% endhint %}
