You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+87-10Lines changed: 87 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,29 +36,102 @@ Alpha 04 (V1.12)
36
36
37
37
38
38
table of contents
39
-
00-HOW TO INSTALL
40
-
01-THE UI
39
+
01-HOW TO INSTALL
41
40
02-BASIC EXEMPLE
42
41
03-GRAMMAR RULES
43
42
04-VARIABLES
44
43
05-FUNCTIONS
45
44
46
45
47
-
**HOW TO INSTALL**
46
+
**1-HOW TO INSTALL**
48
47
extract the zip file in the folder :
49
-
On mac : /Library/Application Support/Adobe/Common/Plug-ins/7.0/MediaCore/
48
+
On mac : /Library/Application Support/Adobe/Common/Plug-ins/7.0/MediaCore/tl
50
49
51
-
on Windows : C:\Program Files\Adobe\Common\Plug-ins\7.0\MediaCore\
50
+
on Windows : C:\Program Files\Adobe\Common\Plug-ins\7.0\MediaCore\tl
52
51
53
-
**1-THE UI**
54
52
55
-
the plugin Effect UI
53
+
**2- BASIC EXEMPLE**
54
+
-Apply the effect on a White Solid
55
+
-In the Effect UI click on "Math Expression"
56
+
-For the Alpha Channle write: xL/layerWidth
57
+
The result is a ramp, black on the left white on the right.
58
+
for every pixel, the plugin devide the x coordonate by the total layerWidth of the layer.
59
+
60
+
**3- GRAMMAR RULES**
56
61
62
+
3.1-The result
63
+
Whatever the color Dpeth of your project (8/16 or 32 bits) with the plugin you have to think in float beween 0 and 1, like in 32 bits. The plugin convert the result to the good depth of the project after the calculation.
64
+
65
+
3.2-define a variable.
66
+
Like in the After EFfect expression you can define a variable. It's compulsory to call var before to define a new one or you will get an error.
67
+
68
+
```
69
+
var foo := in_red*xL/layerWidth;
70
+
```
71
+
3.3-Sign Equal
72
+
The expression Math is based on Exprtk grammar. That's why equal is written like this
73
+
```
74
+
:=
75
+
```
76
+
Note : the plugin will correct your if you write " = " (with spaces before and after). But when you will reopen the expression it will be changed in " := "
77
+
78
+
3.4 close your "phrase"
79
+
```
80
+
;
81
+
```
82
+
As in javascript, don't forget to close the end of your phrase with ";"
83
+
84
+
3.4 operators
85
+
Math Operators are similar to operators used in the the Internal Expression system of After Effect.
86
+
NAME| DESCRIPTION|EXEMPLE|
87
+
---------|--------|--------|
88
+
`+` | addition| var foo:= a+b;
89
+
`-` | substraction| var foo:= a-b;
90
+
`*` | multiply|var foo:= a*b;
91
+
`/`| devide|var foo:= a/b;
92
+
93
+
Boolean Operators
94
+
Logical operators have differents name than in internal expression system but they do the same things
95
+
NAME| DESCRIPTION|EXEMPLE|
96
+
---------|--------|--------|
97
+
`and` '&' | logical and. Returns true if a and b are true | a and b; a|b;|
98
+
`or` '|' | logical or. Returns true if a or b is true | a or b; a|b;|
99
+
`nand` | logical NAND Returns true if a and b are false | a nand b;|
100
+
`nor`| logical NOR Returns true if a or b is false | a nor b;|
101
+
102
+
3.5 LOOPS AND CONDITIONS
103
+
104
+
105
+
3.1 IF/ELSE
106
+
107
+
```
108
+
if (a < b)
109
+
{1}
110
+
else if (a==b)
111
+
{0.5}
112
+
else
113
+
{0}
114
+
```
115
+
116
+
3.2 LOOPS
117
+
118
+
Loops are similar to those like in js. you can use loops for, while, switch. Be careful, if you write a big loop, the effect will calculate it for each pixels, o limit the range of the loop or take a coffee during render time.
119
+
120
+
exemple with a loop, a condition and a break:
121
+
```
122
+
var a :=0;
123
+
for (far i:=0; i<10; i +=1){
124
+
if (layerHeight/yL >i)
125
+
{
126
+
a:=i;
127
+
break;
128
+
}
129
+
}
130
+
57
131
132
+
Note the plugin converts "&&" and "||" to the exprtk grammar.
0 commit comments