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
Copy file name to clipboardExpand all lines: docs/index.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,12 @@ When you open a page, you'll be presented with:
16
16
17
17
- A brief introduction to that topic ("This is what the page is about")
18
18
- Headers for **Attributes** and **Methods**
19
-
-**Attributes** are accessible bits of information:
20
-
-`thisComp.name` gets the name of the comp!
21
-
-`text.sourceText.fontSize` gets the font size of the text
22
-
-**Methods** are functions that you run, to either get some other info or generate a result:
23
-
-`thisComp.layer("Banana")` retrieves a layer called Banana, or
24
-
-`text.sourceText.setFontSize(123)` will set the font size to 123
19
+
-**Attributes** are accessible bits of information:
20
+
- `thisComp.name` gets the name of the comp!
21
+
- `text.sourceText.fontSize` gets the font size of the text
22
+
-**Methods** are functions that you run, to either get some other info or generate a result:
23
+
-`thisComp.layer("Banana")` retrieves a layer called Banana, or
24
+
-`text.sourceText.setFontSize(123)` will set the font size to 123
25
25
- A list of each expression method or attribute alphabetically sorted under its header, which includes:
26
26
- The name of the item
27
27
- At least one way of how to access it from an expression (ie if you want to use the "TextStyle.font" item, you access it via `text.sourceText.style.font`)
Copy file name to clipboardExpand all lines: docs/introduction/examples.md
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,9 @@ You can create an expression without using properties from other layers. For exa
30
30
31
31
1. Select a layer, press P to reveal its Position property in the Timeline panel, and Alt-click (Windows) or Option-click (Mac OS) the stopwatch to the left of the property name.
@@ -46,13 +46,13 @@ You can use the pick whip to link rotation values between layers to animate the
46
46
4.Set Rotation keyframes for the hour hand.
47
47
5. Select the Rotation property for the minute hand and choose `Animation > Add Expression.`
48
48
6. Drag the pick whip to the Rotation property for the hour hand. The following expression appears:
49
-
```js
50
-
thisComp.layer("hour hand").rotation
51
-
```
49
+
```js
50
+
thisComp.layer("hour hand").rotation
51
+
```
52
52
7. To make the minute hand rotate 12 times as fast as the hour hand, add `* 12` at the end of the expression as follows:
53
-
```js
54
-
thisComp.layer("hour hand").rotation*12
55
-
```
53
+
```js
54
+
thisComp.layer("hour hand").rotation * 12
55
+
```
56
56
57
57
---
58
58
@@ -64,9 +64,9 @@ This example expression positions and maintains one layer at a balanced distance
64
64
2. Animate the positions of the first two layers in the Timeline panel.
65
65
3. Select the third layer, press P to reveal the Position property, and Alt-click (Windows) or Option-click (Mac OS) the stopwatch button to the left of the property name.
@@ -78,9 +78,9 @@ This example expression instructs a layer to be at the same position as the next
78
78
2. Animate the position of the first layer.
79
79
3. Select the second layer, press P to reveal the Position property, and Alt-click (Windows) or Option-click (Mac OS) the stopwatch button to the left of the property name.
5. Duplicate the last layer five times by selecting it and pressing Ctrl+D (Windows) or Command+D (Mac OS) five times.
85
85
86
86
All layers follow the same path, and each is delayed 0.5 seconds from the previous.
@@ -101,9 +101,9 @@ You can also use other effects, such as Ripple, with this expression.
101
101
3. Apply the Bulge effect to the other layer. (See Apply an effect or animation preset.)
102
102
4. Select the Bulge Center property of the Bulge effect in the Timeline panel and choose Animation > Add Expression, or Alt-click (Windows) or Option-click (Mac OS) the stopwatch button for the property.
103
103
5. Select the default expression text and type the following:
104
-
```js
105
-
fromWorld(thisComp.layer("Magnifier").position)
106
-
```
104
+
```js
105
+
fromWorld(thisComp.layer("Magnifier").position)
106
+
```
107
107
108
108
---
109
109
@@ -216,9 +216,9 @@ timeToStart = 2;
216
216
timeToStop = 4;
217
217
218
218
if ((time > timeToStart) && (time < timeToStop)) {
0 commit comments