@@ -9,33 +9,58 @@ Requirements
9
9
Adobe After Effects
10
10
ExtendScript Toolkit or other text editor
11
11
12
- Download
13
- --------
14
- [ The latest version of AEQuery can be found in the downloads section of this repository] ( https://bitbucket.org/motiondesign/aequery/downloads )
12
+ Download/install
13
+ ----------------
14
+
15
+ ``` bash
16
+ npm install aequery
17
+ ```
18
+
19
+ If you are not using npm, you can download the latest version [ here] ( https://bitbucket.org/motiondesign/aequery/downloads )
20
+
21
+ Then you can include it in your script
22
+
23
+ Import into your script
24
+ ``` javascript
25
+ #include ' path/to/aequery.js'
26
+
27
+ // Disable all Camera lens blur effects in active comp
28
+ aeq ( ' activecomp effect[MatchName="ADBE Camera Lens Blur"]' ).attr ( ' enabled' , false )
29
+ ```
30
+
31
+ or, if you are using browserify/typescript or similar:
32
+
33
+ ``` javascript
34
+ var aeq = require ( ' aequery' )
35
+
36
+ var comp = aeq .getActiveComp ()
37
+
38
+ if (comp) {
39
+ aeq .forEachLayer ( function ( layer ) {
40
+ // Do something with layer
41
+ })
42
+ }
43
+ ```
15
44
16
45
Documentation
17
46
-------------
18
47
[ For documentation, visit aequery.aenhancers.com] ( http://aequery.aenhancers.com )
19
48
20
49
21
- How to build it yourself
22
- ------------------------
50
+ Development
51
+ -----------
23
52
24
53
Make sure you have [ node] ( https://nodejs.org ) and [ npm] ( https://www.npmjs.com ) installed
25
54
26
55
Install gulp
27
56
``` bash
28
57
sudo npm install -g gulp
29
- ```
30
58
31
- Clone repository and enter the directory
32
- ``` bash
59
+ # Clone the repository and enter the directory
33
60
git clone https://bitbucket.org/motiondesign/aequery.git
34
61
cd aequery
35
- ```
36
62
37
- Install npm dependencies
38
- ``` bash
63
+ # Install npm dependencies
39
64
npm install
40
65
```
41
66
@@ -45,42 +70,5 @@ gulp # Builds it to the relevant places in the ScriptUI Folder
45
70
gulp watch # Will monitor it and rebuild it real quick if anything changes
46
71
```
47
72
48
- Import into your script
49
- ``` javascript
50
- #include " path/to/aeq.js"
51
- ```
52
-
53
73
# Contributing
54
- Want to add something in AEQuery?
55
-
56
- Look in the file tree to see if there is a place where it may fit.
57
-
58
- If necessary, create a new file. The basic file structure is:
59
- ``` javascript
60
- var aeq = (function (aeq ) {
61
- aeq .extend ({
62
- yourCodeHere : function () {
63
-
64
- }
65
- });
66
- return aeq;
67
- }(aeq || {}));
68
- ```
69
- If you want to create a submodule, the structure is:
70
- ``` javascript
71
- var aeq = (function (aeq ) {
72
- aeq .yourModule = {
73
- toString : function () {
74
- return " [object aeq.yourModule]" ;
75
- },
76
-
77
- // Function for extending the object using objects
78
- extend: aeq .extend ,
79
-
80
- code : function () {
81
-
82
- }
83
- }
84
- return aeq;
85
- }(aeq || {}));
86
- ```
74
+ Pull requests, [ bug reports and feature requests] ( https://bitbucket.org/motiondesign/aequery/issues ) are welcome!
0 commit comments