File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ It comes in the form of a JSON file that's imported into the project, and then r
23
23
- [ Overview] ( #overview )
24
24
- [ Contents] ( #contents )
25
25
- [ Compatibility] ( #compatibility )
26
- - [ Usage] ( #usage )
27
- - [ 4. Use effector properties] ( #4-use-effector-properties )
28
26
- [ Example] ( #example )
27
+ - [ Usage] ( #usage )
29
28
- [ License] ( #license )
30
29
- [ Contact] ( #contact )
31
30
@@ -35,6 +34,21 @@ This aeFunctions is compatible with After Effects versions >= 16.0.1 (CC2019) wh
35
34
36
35
[ Back To Top ↑]
37
36
37
+ ## Example
38
+
39
+ Example layer attraction setup using eTractors:
40
+
41
+ ``` javascript
42
+ // Import the library
43
+ const eTractors = footage (' eTractors.jsx' ).sourceData ;
44
+
45
+ // Create a new effector
46
+ const myEffector = eTractors .createEffector (effectorLayer, particlePosition);
47
+
48
+ // Move towards the effector layer
49
+ particlePosition + myEffector .attract ;
50
+ ```
51
+
38
52
## Usage
39
53
40
54
### 1. ** Download and import ` eTractors.jsx ` into your After Effects project** <!-- omit in toc -->
You can’t perform that action at this time.
0 commit comments