Skip to content

Commit 393ae63

Browse files
committed
Fix bad idents
1 parent 09255b7 commit 393ae63

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

docs/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ When you open a page, you'll be presented with:
1616

1717
- A brief introduction to that topic ("This is what the page is about")
1818
- 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
2525
- A list of each expression method or attribute alphabetically sorted under its header, which includes:
2626
- The name of the item
2727
- 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`)

docs/introduction/examples.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ You can create an expression without using properties from other layers. For exa
3030

3131
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.
3232
2. Enter the following in the expression field:
33-
```js
34-
[(thisComp.width/2), (thisComp.height/2)] + [Math.sin(time)*50, -Math.cos(time)*50]
35-
```
33+
```js
34+
[(thisComp.width/2), (thisComp.height/2)] + [Math.sin(time)*50, -Math.cos(time)*50]
35+
```
3636

3737
---
3838

@@ -46,13 +46,13 @@ You can use the pick whip to link rotation values between layers to animate the
4646
4. Set Rotation keyframes for the hour hand.
4747
5. Select the Rotation property for the minute hand and choose `Animation > Add Expression.`
4848
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+
```
5252
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+
```
5656

5757
---
5858

@@ -64,9 +64,9 @@ This example expression positions and maintains one layer at a balanced distance
6464
2. Animate the positions of the first two layers in the Timeline panel.
6565
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.
6666
4. Enter the following in the expression field:
67-
```js
68-
(thisComp.layer(1).position + thisComp.layer(2).position)/2
69-
```
67+
```js
68+
(thisComp.layer(1).position + thisComp.layer(2).position)/2
69+
```
7070

7171
---
7272

@@ -78,9 +78,9 @@ This example expression instructs a layer to be at the same position as the next
7878
2. Animate the position of the first layer.
7979
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.
8080
4. Enter the following in the expression field:
81-
```js
82-
thisComp.layer(thisLayer, -1).position.valueAtTime(time - .5)
83-
```
81+
```js
82+
thisComp.layer(thisLayer, -1).position.valueAtTime(time - .5)
83+
```
8484
5. Duplicate the last layer five times by selecting it and pressing Ctrl+D (Windows) or Command+D (Mac OS) five times.
8585

8686
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.
101101
3. Apply the Bulge effect to the other layer. (See Apply an effect or animation preset.)
102102
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.
103103
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+
```
107107

108108
---
109109

@@ -216,9 +216,9 @@ timeToStart = 2;
216216
timeToStop = 4;
217217
218218
if ((time > timeToStart) && (time < timeToStop)) {
219-
wiggle(3,25);
219+
wiggle(3,25);
220220
} else {
221-
value;
221+
value;
222222
}
223223
```
224224

docs/objects/property.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ Loops a segment of time that is measured from the first keyframe on the layer fo
180180

181181
You can use keyframe-looping methods to repeat a series of keyframes. You can use these methods on most properties. Exceptions include:
182182
- properties that can't be expressed by simple numeric values in the Timeline panel, such as:
183-
- the Source Text property,
184-
- path shape properties, and
185-
- the Histogram property for the Levels effect.
183+
- the Source Text property,
184+
- path shape properties, and
185+
- the Histogram property for the Levels effect.
186186

187187
Keyframes or duration values that are too large are clipped to the maximum allowable value. Values that are too small result in a constant loop.
188188

docs/objects/propertygroup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Number
9292

9393
### PropertyGroup.propertyGroup()
9494

95-
`propertyGroup([countUp=1])`
95+
`propertyGroup([countUp=1])`
9696

9797
#### Description
9898

0 commit comments

Comments
 (0)