├── .github └── workflows │ ├── codeql-analysis.yml │ ├── python-publish.yml │ └── sphinx.yml ├── LICENSE ├── README.md ├── ae_python ├── __init__.py ├── ae_script.py ├── comp.py ├── compiler.py ├── js │ └── std_functions.js ├── layer │ ├── __init__.py │ ├── camera_layer.py │ ├── layer.py │ ├── null_layer.py │ ├── shape_layer.py │ ├── solid_layer.py │ └── text_layer.py ├── property.py ├── shape.py ├── standalone_functions.py └── timeline.py ├── docs ├── .buildinfo ├── .doctrees │ ├── environment.pickle │ └── index.doctree ├── _sources │ └── index.rst.txt ├── genindex.html ├── index.html ├── logos │ ├── logo-small.png │ └── logo.png ├── modules │ ├── ae_python │ │ └── layer │ │ │ ├── camera_layer.html │ │ │ ├── layer.html │ │ │ ├── null_layer.html │ │ │ ├── shape_layer.html │ │ │ ├── solid_layer.html │ │ │ └── text_layer.html │ └── index.html ├── objects.inv ├── py-modindex.html ├── search.html ├── searchindex.js ├── source │ ├── conf.py │ └── index.rst └── static │ ├── basic.css │ ├── css │ └── insegel.css │ ├── doctools.js │ ├── documentation_options.js │ ├── file.png │ ├── img │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ └── logo.svg │ ├── jquery-3.5.1.js │ ├── jquery.js │ ├── language_data.js │ ├── logo.png │ ├── minus.png │ ├── plus.png │ ├── pygments.css │ ├── searchtools.js │ ├── underscore-1.3.1.js │ └── underscore.js ├── example └── hello_world.py ├── requirements.txt └── setup.py /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- 1 | # For most projects, this workflow file will not need changing; you simply need 2 | # to commit it to your repository. 3 | # 4 | # You may wish to alter this file to override the set of languages analyzed, 5 | # or to provide custom queries or build logic. 6 | # 7 | # ******** NOTE ******** 8 | # We have attempted to detect the languages in your repository. Please check 9 | # the `language` matrix defined below to confirm you have the correct set of 10 | # supported CodeQL languages. 11 | # 12 | name: "CodeQL" 13 | 14 | on: 15 | push: 16 | branches: [ master ] 17 | pull_request: 18 | # The branches below must be a subset of the branches above 19 | branches: [ master ] 20 | schedule: 21 | - cron: '38 17 * * 1' 22 | 23 | jobs: 24 | analyze: 25 | name: Analyze 26 | runs-on: ubuntu-latest 27 | 28 | strategy: 29 | fail-fast: false 30 | matrix: 31 | language: [ 'python' ] 32 | # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] 33 | # Learn more: 34 | # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed 35 | 36 | steps: 37 | - name: Checkout repository 38 | uses: actions/checkout@v2 39 | 40 | # Initializes the CodeQL tools for scanning. 41 | - name: Initialize CodeQL 42 | uses: github/codeql-action/init@v1 43 | with: 44 | languages: ${{ matrix.language }} 45 | # If you wish to specify custom queries, you can do so here or in a config file. 46 | # By default, queries listed here will override any specified in a config file. 47 | # Prefix the list here with "+" to use these queries and those in the config file. 48 | # queries: ./path/to/local/query, your-org/your-repo/queries@main 49 | 50 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 51 | # If this step fails, then you should remove it and run the build manually (see below) 52 | - name: Autobuild 53 | uses: github/codeql-action/autobuild@v1 54 | 55 | # ℹ️ Command-line programs to run using the OS shell. 56 | # 📚 https://git.io/JvXDl 57 | 58 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines 59 | # and modify them (or add more) to build your code if your project 60 | # uses a compiled language 61 | 62 | #- run: | 63 | # make bootstrap 64 | # make release 65 | 66 | - name: Perform CodeQL Analysis 67 | uses: github/codeql-action/analyze@v1 68 | -------------------------------------------------------------------------------- /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- 1 | # This workflow will upload a Python Package using Twine when a release is created 2 | # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries 3 | 4 | name: Upload Python Package 5 | 6 | on: 7 | release: 8 | types: [created] 9 | 10 | jobs: 11 | deploy: 12 | 13 | runs-on: ubuntu-latest 14 | 15 | steps: 16 | - uses: actions/checkout@v2 17 | - name: Set up Python 18 | uses: actions/setup-python@v2 19 | with: 20 | python-version: '3.x' 21 | - name: Install dependencies 22 | run: | 23 | python -m pip install --upgrade pip 24 | pip install setuptools wheel twine 25 | - name: Build and publish 26 | env: 27 | TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} 28 | TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} 29 | run: | 30 | python setup.py sdist bdist_wheel 31 | twine upload dist/* 32 | -------------------------------------------------------------------------------- /.github/workflows/sphinx.yml: -------------------------------------------------------------------------------- 1 | on: [push] 2 | 3 | jobs: 4 | build: 5 | name: Sphinx Pages 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: seanzhengw/sphinx-pages@master 9 | id: sphinx-pages 10 | with: 11 | github_token: ${{ secrets.GITHUB_TOKEN }} 12 | create_readme: true 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Kalle Willem Lothar Bracht 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## After Effects scripts with python 2 | Create After Effects scripts in Python. See the [documentation](https://kalbra.github.io/after-effects-python). 3 | 4 | ## Install 5 | Download via pip: `pip install ae-python` 6 | 7 | Download the developing version: `pip install git+https://github.com/Kalbra/after-effects-python` 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ae_python/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ae_python/ae_script.py: -------------------------------------------------------------------------------- 1 | from ae_python.comp import Comp 2 | from ae_python.compiler import Compiler 3 | import os 4 | 5 | """ 6 | The AEScript class contains a script. You can add Comps by using addComp(), the comps contain layers where the 7 | creative stuff happen. 8 | """ 9 | class AEScript: 10 | """ 11 | The constructor of the class. It creates a list of comps. Note that the comp list is at first empty, but you can 12 | add comps via addComp(). 13 | """ 14 | def __init__(self): 15 | self.comp_list = [] 16 | 17 | """ 18 | Add a comp class to the script. 19 | 20 | :parameter: Comp class that will be added to the script. 21 | """ 22 | def addComp(self, comp: Comp): 23 | self.comp_list.append(comp) 24 | 25 | """ 26 | Compile the given things. Compile means the python objects will be converted into javascript what after effects can 27 | read. 28 | """ 29 | def compile(self): 30 | # Run the compiler and saves it into js_respond 31 | js_respond = Compiler(self.comp_list).compile() 32 | 33 | # Add standard function at the first of the js_respond 34 | js_respond = open(f"{os.path.dirname(__file__)}/js/std_functions.js", "r").read() + js_respond 35 | 36 | output_file = open("python_js_script.js", "w") 37 | output_file.write(js_respond) 38 | output_file.close() 39 | 40 | # Debug call 41 | print(js_respond) -------------------------------------------------------------------------------- /ae_python/comp.py: -------------------------------------------------------------------------------- 1 | from ae_python.layer.layer import Layer 2 | from ae_python.standalone_functions import * 3 | 4 | class Comp: 5 | """ 6 | Constructor of comp. Has all comp options see: 7 | https://after-effects-scripting-guide.readthedocs.io/items/itemcollection/#itemcollection-addcomp 8 | 9 | :parameter name: A string containing the name of the composition. 10 | :parameter width: The width of the composition in pixels, an integer in the range [4..30000]. 11 | :parameter height: The height of the composition in pixels, an integer in the range [4..30000]. 12 | :parameter pixel_aspect: The pixel aspect ratio of the composition, a floating-point value in the 13 | range [0.01..100.0]. 14 | :parameter duration: The duration of the composition in seconds, a floating-point value in the range [0.0..10800.0]. 15 | :parameter framerate: The frame rate of the composition, a floating-point value in the range [1.0..99.0]. 16 | """ 17 | def __init__(self, *args, **kwargs): 18 | self.name: str = kwargs.get("name") 19 | self.width: int = kwargs.get("width", 1280) 20 | self.height: int = kwargs.get("height", 720) 21 | self.pixel_aspect: float = kwargs.get("pixel_aspect", 1) 22 | self.duration: float = kwargs.get("duration", 30.0) 23 | self.framerate: float = kwargs.get("framerate", 30.0) 24 | self.label: int = kwargs.get("label", 1) 25 | self.comment: str = kwargs.get("comment") 26 | 27 | # Layer list for the layers. At first empty, you can add a layer via addLayer() 28 | self.layers = [] 29 | 30 | # The variable name in javascript. The name is hashed. 31 | self.js_variable_name:str = hash_maker() 32 | 33 | # Sets the middle point of the comp. It is a position, so [x,y]. 34 | self.middle: int = [self.width/2, self.height/2] 35 | 36 | """ 37 | Adds a layer to the comp. 38 | 39 | :parameter layer: The layer you want to add. 40 | """ 41 | def addLayer(self, layer: Layer): 42 | self.layers.append(layer) -------------------------------------------------------------------------------- /ae_python/compiler.py: -------------------------------------------------------------------------------- 1 | from ae_python.comp import Comp 2 | from ae_python.layer.solid_layer import SolidLayer 3 | from ae_python.layer.null_layer import NullLayer 4 | from ae_python.layer.camera_layer import CameraLayer 5 | from ae_python.layer.text_layer import TextLayer 6 | from ae_python.property import * 7 | 8 | class Compiler: 9 | def __init__(self, comps: Comp): 10 | self.comp_list = comps 11 | 12 | self.js_script = "" 13 | 14 | """ 15 | Compile the layers to javascript for after effects. The layer needs the comp variable(hashed value) to add a layer 16 | to the comp. Also a layer variable will be created(hashed value). 17 | """ 18 | def __create_layer__(self, layer, comp: Comp): 19 | # JS script for solid layer. To identify the type of the layer the class will be identified. 20 | if type(layer) == SolidLayer: 21 | self.js_script += f"var {layer.js_variable_name} = {comp.js_variable_name}.layers.addSolid([" \ 22 | f"{layer.getProperty('color').default_value.red}," \ 23 | f"{layer.getProperty('color').default_value.green}," \ 24 | f"{layer.getProperty('color').default_value.blue}], '{layer.getProperty('name')}'," \ 25 | f" {comp.width}, {comp.height},1);" 26 | 27 | # JS script for null layer. 28 | elif type(layer) == NullLayer: 29 | self.js_script += f"var {layer.js_variable_name} = {comp.js_variable_name}.layers.addNull();" 30 | 31 | # JS script for camara layer. 32 | elif type(layer) == CameraLayer: 33 | self.js_script += f"var {layer.js_variable_name} = {comp.js_variable_name}.layers.addCamera('', " \ 34 | f"{layer.getProperty('center_point')});" 35 | 36 | # JS script for text layer. 37 | elif type(layer) == TextLayer: 38 | self.js_script += f"var {layer.js_variable_name} = {comp.js_variable_name}.layers.addText('" \ 39 | f"{layer.getProperty('text')}');var {layer.js_text_variable_name} = " \ 40 | f"{layer.js_variable_name}.text.sourceText.value;{layer.js_text_variable_name}.fontSize" \ 41 | f" = {layer.getProperty('font_size')};{layer.js_text_variable_name}.fillColor = " \ 42 | f"[{layer.getProperty('font_color').default_value.red}," \ 43 | f"{layer.getProperty('font_color').default_value.green}," \ 44 | f"{layer.getProperty('font_color').default_value.blue}];{layer.js_text_variable_name}" \ 45 | f".font = '{layer.getProperty('font_family')}';" 46 | 47 | # @TODO: This do not work 48 | for value in self.__property_decoder__(layer.getProperty("font_color")): 49 | self.js_script += f"{layer.js_text_variable_name}.fillColor.setValueAtTime({value[0]}, [{value[1].red},{value[1].green},{value[1].blue}]);" 50 | 51 | self.js_script += f"{layer.js_variable_name}.text.sourceText.setValue({layer.js_text_variable_name});" 52 | 53 | else: 54 | raise ValueError("Class type is not in compiler list.") 55 | 56 | # Adds default properties to layer. 57 | # Sets the position 58 | if layer.getProperty('position').isNone(): 59 | layer.setProperty('position', Property([comp.middle[0], comp.middle[1], 0])) 60 | 61 | self.js_script += f"{layer.js_variable_name}.position.setValue([{layer.getProperty('position')[0]}, " \ 62 | f"{layer.getProperty('position')[1]}, {layer.getProperty('position')[2]}]);" 63 | 64 | for value in self.__property_decoder__(layer.getProperty("position")): 65 | self.js_script += f"{layer.js_variable_name}.position.setValueAtTime({value[0]}, [{value[1][0]}," \ 66 | f"{value[1][1]},{value[1][2]}]);" 67 | 68 | # Sets the rotation 69 | self.js_script += f"{layer.js_variable_name}.rotation = {layer.getProperty('rotation')};" 70 | 71 | for value in self.__property_decoder__(layer.getProperty("rotation")): 72 | self.js_script = f"{layer.js_variable_name}.position.setValueAtTime({value[0]}, {value[1]});" 73 | 74 | # Sets the name 75 | self.js_script += f"{layer.js_variable_name}.name = '{layer.getProperty('name')}';" 76 | 77 | # Sets the comment 78 | if not layer.getProperty('comment').isNone(): 79 | self.js_script += f"{layer.js_variable_name}.comment = '{layer.getProperty('comment')}';" 80 | 81 | # Sets the label 82 | if not layer.getProperty('label').isNone(): 83 | self.js_script += f"{layer.js_variable_name}.label = {layer.getProperty('label')};" 84 | 85 | # Sets if shy 86 | if layer.getProperty('shy') == 'True': 87 | self.js_script += f"{layer.js_variable_name}.shy = true;" 88 | 89 | # Sets if solo 90 | if layer.getProperty('solo') == 'True': 91 | self.js_script += f"{layer.js_variable_name}.solo = true;" 92 | 93 | # Sets the start time 94 | self.js_script += f"{layer.js_variable_name}.startTime = {layer.getProperty('start_time')};" 95 | 96 | # Sets the stretch 97 | if not layer.getProperty('stretch').isNone(): 98 | self.js_script += f"{layer.js_variable_name}.stretch = {layer.getProperty('stretch')};" 99 | 100 | # Sets the in point 101 | if not layer.getProperty('in_point').isNone(): 102 | self.js_script += f"{layer.js_variable_name}.inPoint = {layer.getProperty('in_point')};" 103 | 104 | # Sets the out point 105 | if not layer.getProperty('out_point').isNone(): 106 | self.js_script += f"{layer.js_variable_name}.outPoint = {layer.getProperty('out_point')};" 107 | 108 | # Sets if looked. Note: Locked has to be on the end because after you lock a layer you cant edit it. 109 | if layer.getProperty('locked') == 'True': 110 | self.js_script += f"{layer.js_variable_name}.locked = true;" 111 | 112 | 113 | """ 114 | Gets the property values(name, time, script) 115 | 116 | :parameter property: The property you want to decode. 117 | 118 | :returns: Returns an array in the following order [time, value] 119 | """ 120 | def __property_decoder__(self, property): 121 | for value in property.value_stack: 122 | property_time = value[0] 123 | property_value = value[1] 124 | 125 | yield property_time, property_value 126 | 127 | """ 128 | Compile the comps to javascript for after effects. The variable name is hashed to prevent doubling 129 | """ 130 | def __create_comp__(self, comp: Comp): 131 | self.js_script += f"var {comp.js_variable_name} = app.project.items.addComp('{comp.name}', {comp.width}, " \ 132 | f"{comp.height}, {comp.pixel_aspect}, {comp.duration}, {comp.framerate});" \ 133 | f"{comp.js_variable_name}.label = {comp.label};" 134 | 135 | if comp.comment != None: 136 | self.js_script += f"{comp.js_variable_name}.comment = '{comp.comment}';" 137 | 138 | def compile(self): 139 | for comp in self.comp_list: 140 | self.__create_comp__(comp) 141 | 142 | for layer in comp.layers: 143 | self.__create_layer__(layer, comp) 144 | 145 | return self.js_script -------------------------------------------------------------------------------- /ae_python/js/std_functions.js: -------------------------------------------------------------------------------- 1 | function GET_COMP(name){ 2 | for (var i = 1; i <= app.project.numItems; i++) { 3 | var item= app.project.items[i]; 4 | if (item instanceof CompItem && item.name == name) { 5 | return item; 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /ae_python/layer/__init__.py: -------------------------------------------------------------------------------- 1 | from ae_python.layer.solid_layer import SolidLayer 2 | from ae_python.layer.null_layer import NullLayer 3 | from ae_python.layer.camera_layer import CameraLayer 4 | from ae_python.layer.text_layer import TextLayer -------------------------------------------------------------------------------- /ae_python/layer/camera_layer.py: -------------------------------------------------------------------------------- 1 | from ae_python.layer.layer import Layer 2 | from ae_python.property import Property 3 | 4 | class CameraLayer(Layer): 5 | """ 6 | The Camera layer object represents a camera layer within a composition. 7 | 8 | :parameter zoom: The zoom factor of the camera. 9 | :parameter center_point: The center of the new camera, a floating-point array [x, y]. This is used to set the 10 | initial x and y values of the new camera’s Point of Interest property. The z value is set to 0. 11 | """ 12 | def __init__(self, *args, **kwargs): 13 | super().__init__(*args, **kwargs) 14 | 15 | self.properties.append(["zoom", Property(kwargs.get("zoom"))]) 16 | self.properties.append(["center_point", Property(kwargs.get("center_point"))]) 17 | 18 | -------------------------------------------------------------------------------- /ae_python/layer/layer.py: -------------------------------------------------------------------------------- 1 | import time 2 | from ae_python.standalone_functions import * 3 | from ae_python.property import * 4 | from typing import List 5 | 6 | class Layer: 7 | """ 8 | The parent class for all layer types. Contains basic values. 9 | 10 | :parameter name: A string containing the name of the solid. 11 | 12 | :parameter position: The position of the layer. Needs array in following style: [x, y, z] 13 | :parameter rotation: The rotation of the layer. Needs array in following style: [x, y, z] 14 | 15 | :parameter comment: A descriptive comment for the layer. 16 | :parameter label: The label color for the item. Colors are represented by their number (0 for None, or 1 to 16 for 17 | one of the preset colors in the Labels preferences). 18 | :parameter locked: When true, the layer is locked; otherwise false. This corresponds to the lock toggle in the Layer 19 | panel. 20 | :parameter shy: When true, the layer is “shy”, meaning that it is hidden in the Layer panel if the composition’s 21 | “Hide all shy layers” option is toggled on. 22 | :parameter solo: When true, the layer is soloed, otherwise false. 23 | :parameter start_time: The time when the layer starts. 24 | :parameter stretch: The layer’s time stretch, expressed as a percentage. A value of 100 means no stretch. Values 25 | between 0 and 1 are set to 1, and values between -1 and 0 (not including 0) are set to -1. 26 | :parameter duration: Optional, the length of a still layer in seconds, a floating-point value. 27 | :parameter scale: The scale of the layer. 28 | 29 | :parameter in_point: The “in” point of the layer, expressed in composition time (seconds). 30 | :parameter out_point: The “out” point of the layer, expressed in composition time (seconds). 31 | """ 32 | def __init__(self, *args, **kwargs): 33 | self.properties = [] 34 | 35 | self.properties.append(["name", Property(kwargs.get("name"))]) 36 | 37 | self.properties.append(["position", Property(kwargs.get("position"))]) 38 | self.properties.append(["rotation", Property(kwargs.get("rotation", 0))]) 39 | 40 | self.properties.append(["comment", Property(kwargs.get("comment"))]) 41 | self.properties.append(["label", Property(kwargs.get("label"))]) 42 | self.properties.append(["locked", Property(kwargs.get("locked", False))]) 43 | self.properties.append(["shy", Property(kwargs.get("shy", False))]) 44 | self.properties.append(["solo", Property(kwargs.get("solo", False))]) 45 | self.properties.append(["start_time", Property(kwargs.get("start_time", 0))]) 46 | self.properties.append(["stretch", Property(kwargs.get("stretch"))]) 47 | self.properties.append(["duration", Property(kwargs.get("duration"))]) 48 | self.properties.append(["scale", Property(kwargs.get("scale"))]) 49 | 50 | self.properties.append(["in_point", Property(kwargs.get("in_point"))]) 51 | self.properties.append(["out_point", Property(kwargs.get("out_point"))]) 52 | 53 | # The variable name in javascript. The name is hashed. 54 | self.js_variable_name: str = hash_maker() 55 | 56 | """ 57 | Returns the JS variable name. 58 | 59 | :return: The JS variable name. Note: the variable name is hashed and not for user interaction. 60 | """ 61 | def __str__(self): 62 | return self.js_variable_name 63 | 64 | """ 65 | Gets a property of the layer by the name. 66 | 67 | :parameter name: The name of the property. 68 | 69 | :returns: Returns a property pointer identified by the name of the property. 70 | """ 71 | def getProperty(self, name): 72 | for property in self.properties: 73 | if property[0] == name: 74 | return property[1] 75 | 76 | """ 77 | Deletes a property by name. 78 | 79 | :parameter name: The name of the property. 80 | """ 81 | def deleteProperty(self, name): 82 | for i in range(len(self.properties)): 83 | if self.properties[i][0] == name: 84 | return self.properties.pop(i) 85 | 86 | """ 87 | Sets a property by name. At first the method tries to delete the property to prevent property doubling 88 | 89 | :parameter name: The property name you want to set. 90 | :parameter property: The actual property, type is property class. 91 | """ 92 | def setProperty(self, name, property): 93 | self.deleteProperty(name) 94 | self.properties.append([name, property]) 95 | -------------------------------------------------------------------------------- /ae_python/layer/null_layer.py: -------------------------------------------------------------------------------- 1 | from ae_python.layer.layer import Layer 2 | 3 | class NullLayer(Layer): 4 | def __init__(self, *args, **kwargs): 5 | super().__init__(*args, **kwargs) -------------------------------------------------------------------------------- /ae_python/layer/shape_layer.py: -------------------------------------------------------------------------------- 1 | from ae_python.layer.layer import Layer 2 | from ae_python.property import Property 3 | from typing import List 4 | 5 | class ShapeLayer(Layer): 6 | def __init__(self, *args, **kwargs): 7 | super().__init__(*args, **kwargs) 8 | 9 | self.vertices = [] 10 | 11 | def addVertex(self, point: List[int]): 12 | self.vertices.append(point) -------------------------------------------------------------------------------- /ae_python/layer/solid_layer.py: -------------------------------------------------------------------------------- 1 | from colour import Color 2 | from ae_python.layer.layer import Layer 3 | from ae_python.property import Property 4 | 5 | class SolidLayer(Layer): 6 | """ 7 | The solid layer class, you can create a solid plane with it. 8 | 9 | :parameter color: The color of the plane. 10 | :parameter pixel_aspect: The pixel_aspect of the solid. 11 | """ 12 | def __init__(self, *args, **kwargs): 13 | super().__init__(*args, **kwargs) 14 | 15 | self.properties.append(["color", Property(kwargs.get("zoom", Color("black")))]) 16 | self.properties.append(["pixel_aspect", Property(kwargs.get("pixel_aspect"))]) 17 | 18 | -------------------------------------------------------------------------------- /ae_python/layer/text_layer.py: -------------------------------------------------------------------------------- 1 | from ae_python.layer.layer import Layer 2 | from ae_python.standalone_functions import hash_maker 3 | from colour import Color 4 | from ae_python.property import Property 5 | 6 | class TextLayer(Layer): 7 | """ 8 | The TextLayer object represents a text layer within a composition. 9 | 10 | :parameter text: The text of the text layer. 11 | :parameter font_family: The font family of the text. 12 | :ref:`anchor text ` 13 | :parameter font_size: The font size of the text. The unit is px. Note: The value is float. 14 | :parameter font_color: The text color, the argument class is Color. 15 | """ 16 | def __init__(self, *args, **kwargs): 17 | super().__init__(*args, **kwargs) 18 | 19 | self.properties.append(["text", Property(kwargs.get("text", "Hello World!"))]) 20 | self.properties.append(["font_family", Property(kwargs.get("font_family", "Arial"))]) 21 | self.properties.append(["font_size", Property(kwargs.get("font_size", 14))]) 22 | self.properties.append(["font_color", Property(kwargs.get("font_color", Color("white")))]) 23 | 24 | # The text document variable name. Need for the compiler. 25 | self.js_text_variable_name = hash_maker() -------------------------------------------------------------------------------- /ae_python/property.py: -------------------------------------------------------------------------------- 1 | class Property: 2 | def __init__(self, default_value): 3 | # If the type is property so this class not a subclass will be created the values will be transfer. 4 | if type(default_value) == Property: 5 | self.default_value = default_value.default_value 6 | self.value_stack = default_value.value_stack 7 | 8 | else: 9 | self.default_value = default_value 10 | 11 | # The value stack is 3D array to set values at given times. This is needed to make animations. The array 12 | # subarray is in the following format: [time, value] 13 | self.value_stack = [] 14 | 15 | """ 16 | With this method you can set a keyframe at a given time, so it is possible to make animation or changes over time. 17 | 18 | :parameter time: The time when the keyframe will set. 19 | :parameter value: The value you want to set. 20 | """ 21 | def setValueAtTime(self, time, value): 22 | self.value_stack.append([time, value]) 23 | 24 | def __str__(self): 25 | return str(self.default_value) 26 | 27 | """ 28 | The get item attribute. Used to return an element of an array. 29 | 30 | :returns: Element of array, identified by number like normal. 31 | """ 32 | def __getitem__(self, item): 33 | return self.default_value[int(item)] 34 | 35 | """ 36 | This method checks if a value. 37 | 38 | :returns: True if the value is none else false. 39 | """ 40 | def isNone(self): 41 | if self.default_value == None: 42 | return True 43 | else: 44 | return False 45 | -------------------------------------------------------------------------------- /ae_python/shape.py: -------------------------------------------------------------------------------- 1 | from typing import List 2 | 3 | class Shape: 4 | """ 5 | 6 | :parameter vertices: [ [ [point] [in] [out] ] ] 7 | """ 8 | def __init__(self, point: List[List[List[int]]]): 9 | self.vertices = point[0] 10 | self.in_tangents = point[1] 11 | self.out_tangents = point[2] 12 | 13 | """ 14 | Add a point at the end to a shape. 15 | 16 | :parameter point: A int array of two items in the following style 17 | [[point_x, point_y],[t_in_x, t_in_y],[t_out_x, t_out_y]]. 18 | """ 19 | def addPoint(self, point): 20 | self.vertices.append(point[0]) 21 | 22 | # Tries to add the tangents if the tangents not set the value is 0. 23 | try: 24 | self.in_tangents.append(point[1]) 25 | self.out_tangents.append(point[2]) 26 | 27 | except IndexError: 28 | self.in_tangents.append([0, 0]) 29 | self.out_tangents.append([0, 0]) 30 | 31 | """ 32 | Deletes a vertex form the shape by index. 33 | 34 | :parameter index: The index number you want to delete. 35 | """ 36 | def deletePoint(self, index: int): 37 | self.vertices.pop(index) 38 | self.in_tangents.pop(index) 39 | self.out_tangents.pop(index) -------------------------------------------------------------------------------- /ae_python/standalone_functions.py: -------------------------------------------------------------------------------- 1 | import secrets 2 | 3 | """ 4 | The hash maker creates a hash for the variable name in javascript. By this code you can call the function. The 5 | code is javascript variable name save, so no syntax error can happen, cause a bad letter or character. 6 | The hashing is important because if you have the following scenario: 7 | 8 | composition = comp.Comp(name="comp1") 9 | composition.addLayer(layer.Layer("layer1")) 10 | composition = comp.Comp(name="comp2") 11 | composition.addLayer(layer.Layer("layer1")) 12 | 13 | The name "layer1" is dobbed, so the program doesn't work well, therefore the hash is used. 14 | """ 15 | def hash_maker(): 16 | return secrets.token_urlsafe(8).replace("0", "a").replace("1", "b").replace("2", "c").replace("3", "d").replace("4", "e").replace("5", "f").replace("6", "g").replace("7", "h").replace("8", "i").replace("9", "j").replace("-", "k").replace("_", "l") 17 | -------------------------------------------------------------------------------- /ae_python/timeline.py: -------------------------------------------------------------------------------- 1 | class Timeline: 2 | def __init__(self): 3 | pass 4 | 5 | def addKey(self, time, propriety): 6 | pass 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: 3efbae5d46f348ab016026b9626290ef 4 | tags: 645f666f9bcd5a90fca523b33c5a78b7 5 | -------------------------------------------------------------------------------- /docs/.doctrees/environment.pickle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/.doctrees/environment.pickle -------------------------------------------------------------------------------- /docs/.doctrees/index.doctree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/.doctrees/index.doctree -------------------------------------------------------------------------------- /docs/_sources/index.rst.txt: -------------------------------------------------------------------------------- 1 | .. After Effects Python documentation master file, created by 2 | sphinx-quickstart on Mon Jan 25 17:17:24 2021. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | Welcome to After Effects Python's documentation! 7 | ================================================ 8 | 9 | .. toctree:: 10 | :maxdepth: 2 11 | :caption: Contents: 12 | 13 | 14 | 15 | Indices and tables 16 | ================== 17 | 18 | * :ref:`genindex` 19 | * :ref:`modindex` 20 | * :ref:`search` 21 | 22 | 23 | Layers 24 | ====== 25 | .. automodule:: ae_python.layer.layer 26 | :members: 27 | 28 | Camera layer 29 | ============ 30 | .. automodule:: ae_python.layer.camera_layer 31 | :members: 32 | 33 | Null layer 34 | ========== 35 | .. automodule:: ae_python.layer.null_layer 36 | :members: 37 | 38 | Shape layer 39 | =========== 40 | .. automodule:: ae_python.layer.shape_layer 41 | :members: 42 | 43 | Solid layer 44 | =========== 45 | .. automodule:: ae_python.layer.solid_layer 46 | :members: 47 | 48 | Text layer 49 | ========== 50 | .. automodule:: ae_python.layer.text_layer 51 | :members: -------------------------------------------------------------------------------- /docs/genindex.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: Index 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 |

After Effects Python Documentation

48 |
49 |
50 | 51 |
52 | 53 |
54 |
55 |

Index

56 |
57 |
58 | 59 | 60 |

Index

61 | 62 |
63 | A 64 | | C 65 | | L 66 | | M 67 | | N 68 | | S 69 | | T 70 | 71 |
72 |

A

73 | 74 | 97 | 120 |
    75 |
  • 76 | ae_python.layer.camera_layer 77 | 78 |
  • 82 |
  • 83 | ae_python.layer.layer 84 | 85 |
  • 89 |
  • 90 | ae_python.layer.null_layer 91 | 92 |
  • 96 |
    98 |
  • 99 | ae_python.layer.shape_layer 100 | 101 |
  • 105 |
  • 106 | ae_python.layer.solid_layer 107 | 108 |
  • 112 |
  • 113 | ae_python.layer.text_layer 114 | 115 |
  • 119 |
121 | 122 |

C

123 | 124 | 128 |
129 | 130 |

L

131 | 132 | 136 |
137 | 138 |

M

139 | 140 | 159 |
160 | 161 |

N

162 | 163 | 167 |
168 | 169 |

S

170 | 171 | 175 | 179 |
180 | 181 |

T

182 | 183 | 187 |
188 | 189 | 190 | 191 |
192 |
193 | 194 |
195 | 196 | 203 | 204 | 216 | 217 | 218 | 219 |
220 | 221 |
222 | 223 |
224 | 241 | 242 | 243 | 244 | 250 | 251 |
252 | 253 |
254 | 255 | 256 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: Welcome to After Effects Python’s documentation! 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 |

After Effects Python Documentation

48 |
49 |
50 | 51 |
52 | 53 |
54 |
55 |

Welcome to After Effects Python’s documentation!

56 |
57 |
58 | 59 |
60 |

Welcome to After Effects Python’s documentation!

61 |
62 |
63 |
64 |
65 |

Indices and tables

66 | 71 |
72 |
73 |

Layers

74 |
75 |
76 | class ae_python.layer.layer.Layer(*args, **kwargs)[source]
77 |

The parent class for all layer types. Contains basic values.

78 |
79 |
Parameters
80 |
    81 |
  • name – A string containing the name of the solid.

  • 82 |
  • position – The position of the layer. Needs array in following style: [x, y, z]

  • 83 |
  • rotation – The rotation of the layer. Needs array in following style: [x, y, z]

  • 84 |
  • comment – A descriptive comment for the layer.

  • 85 |
  • label – The label color for the item. Colors are represented by their number (0 for None, or 1 to 16 for 86 | one of the preset colors in the Labels preferences).

  • 87 |
  • locked – When true, the layer is locked; otherwise false. This corresponds to the lock toggle in the Layer 88 | panel.

  • 89 |
  • shy – When true, the layer is “shy”, meaning that it is hidden in the Layer panel if the composition’s 90 | “Hide all shy layers” option is toggled on.

  • 91 |
  • solo – When true, the layer is soloed, otherwise false.

  • 92 |
  • start_time – The time when the layer starts.

  • 93 |
  • stretch – The layer’s time stretch, expressed as a percentage. A value of 100 means no stretch. Values 94 | between 0 and 1 are set to 1, and values between -1 and 0 (not including 0) are set to -1.

  • 95 |
  • duration – Optional, the length of a still layer in seconds, a floating-point value.

  • 96 |
  • scale – The scale of the layer.

  • 97 |
  • in_point – The “in” point of the layer, expressed in composition time (seconds).

  • 98 |
  • out_point – The “out” point of the layer, expressed in composition time (seconds).

  • 99 |
100 |
101 |
102 |
103 | 104 |
105 |
106 |

Camera layer

107 |
108 |
109 | class ae_python.layer.camera_layer.CameraLayer(*args, **kwargs)[source]
110 |

The Camera layer object represents a camera layer within a composition.

111 |
112 |
Parameters
113 |
    114 |
  • zoom – The zoom factor of the camera.

  • 115 |
  • center_point – The center of the new camera, a floating-point array [x, y]. This is used to set the 116 | initial x and y values of the new camera’s Point of Interest property. The z value is set to 0.

  • 117 |
118 |
119 |
120 |
121 | 122 |
123 |
124 |

Null layer

125 |
126 |
127 | class ae_python.layer.null_layer.NullLayer(*args, **kwargs)[source]
128 |
129 | 130 |
131 |
132 |

Shape layer

133 |
134 |
135 | class ae_python.layer.shape_layer.ShapeLayer(*args, **kwargs)[source]
136 |
137 | 138 |
139 |
140 |

Solid layer

141 |
142 |
143 | class ae_python.layer.solid_layer.SolidLayer(*args, **kwargs)[source]
144 |

The solid layer class, you can create a solid plane with it.

145 |
146 |
Parameters
147 |
    148 |
  • color – The color of the plane.

  • 149 |
  • pixel_aspect – The pixel_aspect of the solid.

  • 150 |
151 |
152 |
153 |
154 | 155 |
156 |
157 |

Text layer

158 |
159 |
160 | class ae_python.layer.text_layer.TextLayer(*args, **kwargs)[source]
161 |

The TextLayer object represents a text layer within a composition.

162 |
163 |
Parameters
164 |
    165 |
  • text – The text of the text layer.

  • 166 |
  • font_family – The font family of the text.

  • 167 |
168 |
169 |
170 |

anchor text 171 | :parameter font_size: The font size of the text. The unit is px. Note: The value is float. 172 | :parameter font_color: The text color, the argument class is Color.

173 |
174 | 175 |
176 | 177 | 178 |
179 |
180 | 181 |
182 | 183 | 190 | 191 | 213 | 214 | 215 | 216 |
217 | 218 |
219 | 220 |
221 | 240 | 241 | 242 | 243 | 249 | 250 |
251 | 252 |
253 | 254 | 255 | -------------------------------------------------------------------------------- /docs/logos/logo-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/logos/logo-small.png -------------------------------------------------------------------------------- /docs/logos/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/logos/logo.png -------------------------------------------------------------------------------- /docs/modules/ae_python/layer/camera_layer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: ae_python.layer.camera_layer 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 |

After Effects Python Documentation

48 |
49 |
50 | 51 |
52 | 53 |
54 |
55 |

ae_python.layer.camera_layer

56 |
57 |
58 | 59 |

Source code for ae_python.layer.camera_layer

 60 | from ae_python.layer.layer import Layer
 61 | from ae_python.property import Property
 62 | 
 63 | 
[docs]class CameraLayer(Layer): 64 | """ 65 | The Camera layer object represents a camera layer within a composition. 66 | 67 | :parameter zoom: The zoom factor of the camera. 68 | :parameter center_point: The center of the new camera, a floating-point array [x, y]. This is used to set the 69 | initial x and y values of the new camera’s Point of Interest property. The z value is set to 0. 70 | """ 71 | def __init__(self, *args, **kwargs): 72 | super().__init__(*args, **kwargs) 73 | 74 | self.properties.append(["zoom", Property(kwargs.get("zoom"))]) 75 | self.properties.append(["center_point", Property(kwargs.get("center_point"))])
76 | 77 |
78 | 79 |
80 |
81 | 82 |
83 | 84 | 91 | 92 | 104 | 105 | 106 | 107 |
108 | 109 |
110 | 111 |
112 | 125 | 126 | 127 | 128 | 134 | 135 |
136 | 137 |
138 | 139 | 140 | -------------------------------------------------------------------------------- /docs/modules/ae_python/layer/layer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: ae_python.layer.layer 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 |

After Effects Python Documentation

48 |
49 |
50 | 51 |
52 | 53 |
54 |
55 |

ae_python.layer.layer

56 |
57 |
58 | 59 |

Source code for ae_python.layer.layer

 60 | import time
 61 | from ae_python.standalone_functions import *
 62 | from ae_python.property import *
 63 | from typing import List
 64 | 
 65 | 
[docs]class Layer: 66 | """ 67 | The parent class for all layer types. Contains basic values. 68 | 69 | :parameter name: A string containing the name of the solid. 70 | 71 | :parameter position: The position of the layer. Needs array in following style: [x, y, z] 72 | :parameter rotation: The rotation of the layer. Needs array in following style: [x, y, z] 73 | 74 | :parameter comment: A descriptive comment for the layer. 75 | :parameter label: The label color for the item. Colors are represented by their number (0 for None, or 1 to 16 for 76 | one of the preset colors in the Labels preferences). 77 | :parameter locked: When true, the layer is locked; otherwise false. This corresponds to the lock toggle in the Layer 78 | panel. 79 | :parameter shy: When true, the layer is “shy”, meaning that it is hidden in the Layer panel if the composition’s 80 | “Hide all shy layers” option is toggled on. 81 | :parameter solo: When true, the layer is soloed, otherwise false. 82 | :parameter start_time: The time when the layer starts. 83 | :parameter stretch: The layer’s time stretch, expressed as a percentage. A value of 100 means no stretch. Values 84 | between 0 and 1 are set to 1, and values between -1 and 0 (not including 0) are set to -1. 85 | :parameter duration: Optional, the length of a still layer in seconds, a floating-point value. 86 | :parameter scale: The scale of the layer. 87 | 88 | :parameter in_point: The “in” point of the layer, expressed in composition time (seconds). 89 | :parameter out_point: The “out” point of the layer, expressed in composition time (seconds). 90 | """ 91 | def __init__(self, *args, **kwargs): 92 | self.properties = [] 93 | 94 | self.properties.append(["name", Property(kwargs.get("name"))]) 95 | 96 | self.properties.append(["position", Property(kwargs.get("position"))]) 97 | self.properties.append(["rotation", Property(kwargs.get("rotation", 0))]) 98 | 99 | self.properties.append(["comment", Property(kwargs.get("comment"))]) 100 | self.properties.append(["label", Property(kwargs.get("label"))]) 101 | self.properties.append(["locked", Property(kwargs.get("locked", False))]) 102 | self.properties.append(["shy", Property(kwargs.get("shy", False))]) 103 | self.properties.append(["solo", Property(kwargs.get("solo", False))]) 104 | self.properties.append(["start_time", Property(kwargs.get("start_time", 0))]) 105 | self.properties.append(["stretch", Property(kwargs.get("stretch"))]) 106 | self.properties.append(["duration", Property(kwargs.get("duration"))]) 107 | self.properties.append(["scale", Property(kwargs.get("scale"))]) 108 | 109 | self.properties.append(["in_point", Property(kwargs.get("in_point"))]) 110 | self.properties.append(["out_point", Property(kwargs.get("out_point"))]) 111 | 112 | # The variable name in javascript. The name is hashed. 113 | self.js_variable_name: str = hash_maker() 114 | 115 | """ 116 | Returns the JS variable name. 117 | 118 | :return: The JS variable name. Note: the variable name is hashed and not for user interaction. 119 | """ 120 | def __str__(self): 121 | return self.js_variable_name 122 | 123 | """ 124 | Gets a property of the layer by the name. 125 | 126 | :parameter name: The name of the property. 127 | 128 | :returns: Returns a property pointer identified by the name of the property. 129 | """ 130 | def getProperty(self, name): 131 | for property in self.properties: 132 | if property[0] == name: 133 | return property[1] 134 | 135 | """ 136 | Deletes a property by name. 137 | 138 | :parameter name: The name of the property. 139 | """ 140 | def deleteProperty(self, name): 141 | for i in range(len(self.properties)): 142 | if self.properties[i][0] == name: 143 | return self.properties.pop(i) 144 | 145 | """ 146 | Sets a property by name. At first the method tries to delete the property to prevent property doubling 147 | 148 | :parameter name: The property name you want to set. 149 | :parameter property: The actual property, type is property class. 150 | """ 151 | def setProperty(self, name, property): 152 | self.deleteProperty(name) 153 | self.properties.append([name, property])
154 |
155 | 156 |
157 |
158 | 159 |
160 | 161 | 168 | 169 | 181 | 182 | 183 | 184 |
185 | 186 |
187 | 188 |
189 | 202 | 203 | 204 | 205 | 211 | 212 |
213 | 214 |
215 | 216 | 217 | -------------------------------------------------------------------------------- /docs/modules/ae_python/layer/null_layer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: ae_python.layer.null_layer 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 |

After Effects Python Documentation

48 |
49 |
50 | 51 |
52 | 53 |
54 |
55 |

ae_python.layer.null_layer

56 |
57 |
58 | 59 |

Source code for ae_python.layer.null_layer

 60 | from ae_python.layer.layer import Layer
 61 | 
 62 | 
[docs]class NullLayer(Layer): 63 | def __init__(self, *args, **kwargs): 64 | super().__init__(*args, **kwargs)
65 |
66 | 67 |
68 |
69 | 70 |
71 | 72 | 79 | 80 | 92 | 93 | 94 | 95 |
96 | 97 |
98 | 99 |
100 | 113 | 114 | 115 | 116 | 122 | 123 |
124 | 125 |
126 | 127 | 128 | -------------------------------------------------------------------------------- /docs/modules/ae_python/layer/shape_layer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: ae_python.layer.shape_layer 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 |

After Effects Python Documentation

48 |
49 |
50 | 51 |
52 | 53 |
54 |
55 |

ae_python.layer.shape_layer

56 |
57 |
58 | 59 |

Source code for ae_python.layer.shape_layer

 60 | from ae_python.layer.layer import Layer
 61 | from ae_python.property import Property
 62 | from typing import List
 63 | 
 64 | 
[docs]class ShapeLayer(Layer): 65 | def __init__(self, *args, **kwargs): 66 | super().__init__(*args, **kwargs) 67 | 68 | self.vertices = [] 69 | 70 | def addVertex(self, point: List[int]): 71 | self.vertices.append(point)
72 |
73 | 74 |
75 |
76 | 77 |
78 | 79 | 86 | 87 | 99 | 100 | 101 | 102 |
103 | 104 |
105 | 106 |
107 | 120 | 121 | 122 | 123 | 129 | 130 |
131 | 132 |
133 | 134 | 135 | -------------------------------------------------------------------------------- /docs/modules/ae_python/layer/solid_layer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: ae_python.layer.solid_layer 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 |

After Effects Python Documentation

48 |
49 |
50 | 51 |
52 | 53 |
54 |
55 |

ae_python.layer.solid_layer

56 |
57 |
58 | 59 |

Source code for ae_python.layer.solid_layer

 60 | from colour import Color
 61 | from ae_python.layer.layer import Layer
 62 | from ae_python.property import Property
 63 | 
 64 | 
[docs]class SolidLayer(Layer): 65 | """ 66 | The solid layer class, you can create a solid plane with it. 67 | 68 | :parameter color: The color of the plane. 69 | :parameter pixel_aspect: The pixel_aspect of the solid. 70 | """ 71 | def __init__(self, *args, **kwargs): 72 | super().__init__(*args, **kwargs) 73 | 74 | self.properties.append(["color", Property(kwargs.get("zoom", Color("black")))]) 75 | self.properties.append(["pixel_aspect", Property(kwargs.get("pixel_aspect"))])
76 | 77 |
78 | 79 |
80 |
81 | 82 |
83 | 84 | 91 | 92 | 104 | 105 | 106 | 107 |
108 | 109 |
110 | 111 |
112 | 125 | 126 | 127 | 128 | 134 | 135 |
136 | 137 |
138 | 139 | 140 | -------------------------------------------------------------------------------- /docs/modules/ae_python/layer/text_layer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: ae_python.layer.text_layer 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 |

After Effects Python Documentation

48 |
49 |
50 | 51 |
52 | 53 |
54 |
55 |

ae_python.layer.text_layer

56 |
57 |
58 | 59 |

Source code for ae_python.layer.text_layer

 60 | from ae_python.layer.layer import Layer
 61 | from ae_python.standalone_functions import hash_maker
 62 | from colour import Color
 63 | from ae_python.property import Property
 64 | 
 65 | 
[docs]class TextLayer(Layer): 66 | """ 67 | The TextLayer object represents a text layer within a composition. 68 | 69 | :parameter text: The text of the text layer. 70 | :parameter font_family: The font family of the text. 71 | :ref:`anchor text <https://www.adobe.com/content/dam/acom/en/fontfolio/pdfs/fontfolio11.1_font_list.pdf>` 72 | :parameter font_size: The font size of the text. The unit is px. Note: The value is float. 73 | :parameter font_color: The text color, the argument class is Color. 74 | """ 75 | def __init__(self, *args, **kwargs): 76 | super().__init__(*args, **kwargs) 77 | 78 | self.properties.append(["text", Property(kwargs.get("text", "Hello World!"))]) 79 | self.properties.append(["font_family", Property(kwargs.get("font_family", "Arial"))]) 80 | self.properties.append(["font_size", Property(kwargs.get("font_size", 14))]) 81 | self.properties.append(["font_color", Property(kwargs.get("font_color", Color("white")))]) 82 | 83 | # The text document variable name. Need for the compiler. 84 | self.js_text_variable_name = hash_maker()
85 |
86 | 87 |
88 |
89 | 90 |
91 | 92 | 99 | 100 | 112 | 113 | 114 | 115 |
116 | 117 |
118 | 119 |
120 | 133 | 134 | 135 | 136 | 142 | 143 |
144 | 145 |
146 | 147 | 148 | -------------------------------------------------------------------------------- /docs/modules/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: Overview: module code 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 |

After Effects Python Documentation

48 |
49 |
50 | 51 |
52 | 53 |
54 |
55 |

Overview: module code

56 |
57 |
58 | 59 |

All modules for which code is available

60 | 67 | 68 |
69 |
70 | 71 |
72 | 73 | 80 | 81 | 93 | 94 | 95 | 96 |
97 | 98 |
99 | 100 |
101 | 114 | 115 | 116 | 117 | 123 | 124 |
125 | 126 |
127 | 128 | 129 | -------------------------------------------------------------------------------- /docs/objects.inv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/objects.inv -------------------------------------------------------------------------------- /docs/py-modindex.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: Python Module Index 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 |

After Effects Python Documentation

48 |
49 |
50 | 51 |
52 | 53 |
54 |
55 |

Python Module Index

56 |
57 |
58 | 59 | 60 |

Python Module Index

61 | 62 |
63 | a 64 |
65 | 66 | 67 | 68 | 70 | 71 | 73 | 76 | 77 | 78 | 81 | 82 | 83 | 86 | 87 | 88 | 91 | 92 | 93 | 96 | 97 | 98 | 101 | 102 | 103 | 106 |
 
69 | a
74 | ae_python 75 |
    79 | ae_python.layer.camera_layer 80 |
    84 | ae_python.layer.layer 85 |
    89 | ae_python.layer.null_layer 90 |
    94 | ae_python.layer.shape_layer 95 |
    99 | ae_python.layer.solid_layer 100 |
    104 | ae_python.layer.text_layer 105 |
107 | 108 | 109 |
110 |
111 | 112 |
113 | 114 | 121 | 122 | 134 | 135 | 136 | 137 |
138 | 139 |
140 | 141 |
142 | 155 | 156 | 157 | 158 | 164 | 165 |
166 | 167 |
168 | 169 | 170 | -------------------------------------------------------------------------------- /docs/search.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | After Effects Python :: Search 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
40 |
41 |
42 | 43 | 44 | 45 | 46 |
47 |
48 |

After Effects Python Documentation

49 |
50 |
51 | 52 |
53 | 54 |
55 |
56 |

Search

57 |
58 |
59 | 60 | 63 | 64 | 65 |
66 | 67 |
68 | 69 | 70 |
71 |
72 | 73 |
74 | 75 | 82 | 83 | 95 | 96 | 97 | 98 |
99 | 100 |
101 | 102 |
103 | 120 | 121 | 122 | 123 | 129 | 130 |
131 | 134 | 135 | 136 | 137 |
138 | 139 | 140 | -------------------------------------------------------------------------------- /docs/searchindex.js: -------------------------------------------------------------------------------- 1 | Search.setIndex({docnames:["index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,"sphinx.ext.intersphinx":1,"sphinx.ext.todo":2,"sphinx.ext.viewcode":1,sphinx:56},filenames:["index.rst"],objects:{"ae_python.layer":{camera_layer:[0,0,0,"-"],layer:[0,0,0,"-"],null_layer:[0,0,0,"-"],shape_layer:[0,0,0,"-"],solid_layer:[0,0,0,"-"],text_layer:[0,0,0,"-"]},"ae_python.layer.camera_layer":{CameraLayer:[0,1,1,""]},"ae_python.layer.layer":{Layer:[0,1,1,""]},"ae_python.layer.null_layer":{NullLayer:[0,1,1,""]},"ae_python.layer.shape_layer":{ShapeLayer:[0,1,1,""]},"ae_python.layer.solid_layer":{SolidLayer:[0,1,1,""]},"ae_python.layer.text_layer":{TextLayer:[0,1,1,""]}},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"]},objtypes:{"0":"py:module","1":"py:class"},terms:{"100":0,"class":0,"float":0,"new":0,"true":0,The:0,ae_python:0,all:0,anchor:0,arg:0,argument:0,arrai:0,basic:0,between:0,camera_lay:0,cameralay:0,can:0,center:0,center_point:0,color:0,comment:0,composit:0,contain:0,corner:[],correspond:0,creat:0,descript:0,durat:0,express:0,factor:0,fals:0,famili:0,follow:0,font:0,font_color:0,font_famili:0,font_siz:0,hidden:0,hide:0,in_point:0,includ:0,index:0,initi:0,interest:0,item:0,kwarg:0,label:0,left:[],length:0,lock:0,mean:0,modul:0,name:0,need:0,none:0,note:0,null_lay:0,nulllay:0,number:0,object:0,one:0,option:0,otherwis:0,out:0,out_point:0,page:0,panel:0,paramet:0,parent:0,percentag:0,pixel_aspect:0,plane:0,point:0,posit:0,prefer:0,preset:0,properti:0,repres:0,rotat:0,scale:0,search:0,second:0,set:0,shape_lay:0,shapelay:0,shy:0,size:0,solid:[],solid_lay:0,solidlay:0,solo:0,sourc:0,start:0,start_tim:0,still:0,stretch:0,string:0,style:0,text_lay:0,textlay:0,thi:0,time:0,toggl:0,top:[],type:0,unit:0,used:0,valu:0,when:0,within:0,you:0,zoom:0},titles:["Welcome to After Effects Python\u2019s documentation!"],titleterms:{"null":0,after:0,camera:0,document:0,effect:0,indic:0,layer:0,python:0,shape:0,solid:0,tabl:0,text:0,welcom:0}}) -------------------------------------------------------------------------------- /docs/source/conf.py: -------------------------------------------------------------------------------- 1 | # Configuration file for the Sphinx documentation builder. 2 | # 3 | # This file only contains a selection of the most common options. For a full 4 | # list see the documentation: 5 | # https://www.sphinx-doc.org/en/master/usage/configuration.html 6 | 7 | # -- Path setup -------------------------------------------------------------- 8 | 9 | # If extensions (or modules to document with autodoc) are in another directory, 10 | # add these directories to sys.path here. If the directory is relative to the 11 | # documentation root, use os.path.abspath to make it absolute, like shown here. 12 | # 13 | import os 14 | import sys 15 | sys.path.insert(0, os.path.abspath('../..')) 16 | 17 | 18 | # -- Project information ----------------------------------------------------- 19 | 20 | project = 'After Effects Python' 21 | copyright = '2021, Kalle Bracht' 22 | author = 'Kalle Bracht' 23 | 24 | # The full version, including alpha/beta/rc tags 25 | release = '1.0.0' 26 | 27 | 28 | # -- General configuration --------------------------------------------------- 29 | 30 | # Add any Sphinx extension module names here, as strings. They can be 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 32 | # ones. 33 | extensions = [ 34 | "sphinx.ext.intersphinx", 35 | "sphinx.ext.mathjax", 36 | 'rinoh.frontend.sphinx', 37 | 'sphinx_markdown_builder', 38 | 'sphinx.ext.todo', 39 | 'sphinx.ext.viewcode', 40 | 'sphinx.ext.autodoc' 41 | ] 42 | 43 | # Add any paths that contain templates here, relative to this directory. 44 | templates_path = ['templates'] 45 | 46 | # List of patterns, relative to source directory, that match files and 47 | # directories to ignore when looking for source files. 48 | # This pattern also affects html_static_path and html_extra_path. 49 | exclude_patterns = [] 50 | 51 | 52 | # -- Options for HTML output ------------------------------------------------- 53 | 54 | # The theme to use for HTML and HTML Help pages. See the documentation for 55 | # a list of builtin themes. 56 | # 57 | html_theme = "insegel" 58 | 59 | 60 | # The project logo 61 | html_logo = "../logos/logo.png" -------------------------------------------------------------------------------- /docs/source/index.rst: -------------------------------------------------------------------------------- 1 | .. After Effects Python documentation master file, created by 2 | sphinx-quickstart on Mon Jan 25 17:17:24 2021. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | Welcome to After Effects Python's documentation! 7 | ================================================ 8 | 9 | .. toctree:: 10 | :maxdepth: 2 11 | :caption: Contents: 12 | 13 | 14 | 15 | Indices and tables 16 | ================== 17 | 18 | * :ref:`genindex` 19 | * :ref:`modindex` 20 | * :ref:`search` 21 | 22 | 23 | Layers 24 | ====== 25 | .. automodule:: ae_python.layer.layer 26 | :members: 27 | 28 | Camera layer 29 | ============ 30 | .. automodule:: ae_python.layer.camera_layer 31 | :members: 32 | 33 | Null layer 34 | ========== 35 | .. automodule:: ae_python.layer.null_layer 36 | :members: 37 | 38 | Shape layer 39 | =========== 40 | .. automodule:: ae_python.layer.shape_layer 41 | :members: 42 | 43 | Solid layer 44 | =========== 45 | .. automodule:: ae_python.layer.solid_layer 46 | :members: 47 | 48 | Text layer 49 | ========== 50 | .. automodule:: ae_python.layer.text_layer 51 | :members: -------------------------------------------------------------------------------- /docs/static/basic.css: -------------------------------------------------------------------------------- 1 | /* 2 | * basic.css 3 | * ~~~~~~~~~ 4 | * 5 | * Sphinx stylesheet -- basic theme. 6 | * 7 | * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. 8 | * :license: BSD, see LICENSE for details. 9 | * 10 | */ 11 | 12 | /* -- main layout ----------------------------------------------------------- */ 13 | 14 | div.clearer { 15 | clear: both; 16 | } 17 | 18 | div.section::after { 19 | display: block; 20 | content: ''; 21 | clear: left; 22 | } 23 | 24 | /* -- relbar ---------------------------------------------------------------- */ 25 | 26 | div.related { 27 | width: 100%; 28 | font-size: 90%; 29 | } 30 | 31 | div.related h3 { 32 | display: none; 33 | } 34 | 35 | div.related ul { 36 | margin: 0; 37 | padding: 0 0 0 10px; 38 | list-style: none; 39 | } 40 | 41 | div.related li { 42 | display: inline; 43 | } 44 | 45 | div.related li.right { 46 | float: right; 47 | margin-right: 5px; 48 | } 49 | 50 | /* -- sidebar --------------------------------------------------------------- */ 51 | 52 | div.sphinxsidebarwrapper { 53 | padding: 10px 5px 0 10px; 54 | } 55 | 56 | div.sphinxsidebar { 57 | float: left; 58 | width: 230px; 59 | margin-left: -100%; 60 | font-size: 90%; 61 | word-wrap: break-word; 62 | overflow-wrap : break-word; 63 | } 64 | 65 | div.sphinxsidebar ul { 66 | list-style: none; 67 | } 68 | 69 | div.sphinxsidebar ul ul, 70 | div.sphinxsidebar ul.want-points { 71 | margin-left: 20px; 72 | list-style: square; 73 | } 74 | 75 | div.sphinxsidebar ul ul { 76 | margin-top: 0; 77 | margin-bottom: 0; 78 | } 79 | 80 | div.sphinxsidebar form { 81 | margin-top: 10px; 82 | } 83 | 84 | div.sphinxsidebar input { 85 | border: 1px solid #98dbcc; 86 | font-family: sans-serif; 87 | font-size: 1em; 88 | } 89 | 90 | div.sphinxsidebar #searchbox form.search { 91 | overflow: hidden; 92 | } 93 | 94 | div.sphinxsidebar #searchbox input[type="text"] { 95 | float: left; 96 | width: 80%; 97 | padding: 0.25em; 98 | box-sizing: border-box; 99 | } 100 | 101 | div.sphinxsidebar #searchbox input[type="submit"] { 102 | float: left; 103 | width: 20%; 104 | border-left: none; 105 | padding: 0.25em; 106 | box-sizing: border-box; 107 | } 108 | 109 | 110 | img { 111 | border: 0; 112 | max-width: 100%; 113 | } 114 | 115 | /* -- search page ----------------------------------------------------------- */ 116 | 117 | ul.search { 118 | margin: 10px 0 0 20px; 119 | padding: 0; 120 | } 121 | 122 | ul.search li { 123 | padding: 5px 0 5px 20px; 124 | background-image: url(file.png); 125 | background-repeat: no-repeat; 126 | background-position: 0 7px; 127 | } 128 | 129 | ul.search li a { 130 | font-weight: bold; 131 | } 132 | 133 | ul.search li div.context { 134 | color: #888; 135 | margin: 2px 0 0 30px; 136 | text-align: left; 137 | } 138 | 139 | ul.keywordmatches li.goodmatch a { 140 | font-weight: bold; 141 | } 142 | 143 | /* -- index page ------------------------------------------------------------ */ 144 | 145 | table.contentstable { 146 | width: 90%; 147 | margin-left: auto; 148 | margin-right: auto; 149 | } 150 | 151 | table.contentstable p.biglink { 152 | line-height: 150%; 153 | } 154 | 155 | a.biglink { 156 | font-size: 1.3em; 157 | } 158 | 159 | span.linkdescr { 160 | font-style: italic; 161 | padding-top: 5px; 162 | font-size: 90%; 163 | } 164 | 165 | /* -- general index --------------------------------------------------------- */ 166 | 167 | table.indextable { 168 | width: 100%; 169 | } 170 | 171 | table.indextable td { 172 | text-align: left; 173 | vertical-align: top; 174 | } 175 | 176 | table.indextable ul { 177 | margin-top: 0; 178 | margin-bottom: 0; 179 | list-style-type: none; 180 | } 181 | 182 | table.indextable > tbody > tr > td > ul { 183 | padding-left: 0em; 184 | } 185 | 186 | table.indextable tr.pcap { 187 | height: 10px; 188 | } 189 | 190 | table.indextable tr.cap { 191 | margin-top: 10px; 192 | background-color: #f2f2f2; 193 | } 194 | 195 | img.toggler { 196 | margin-right: 3px; 197 | margin-top: 3px; 198 | cursor: pointer; 199 | } 200 | 201 | div.modindex-jumpbox { 202 | border-top: 1px solid #ddd; 203 | border-bottom: 1px solid #ddd; 204 | margin: 1em 0 1em 0; 205 | padding: 0.4em; 206 | } 207 | 208 | div.genindex-jumpbox { 209 | border-top: 1px solid #ddd; 210 | border-bottom: 1px solid #ddd; 211 | margin: 1em 0 1em 0; 212 | padding: 0.4em; 213 | } 214 | 215 | /* -- domain module index --------------------------------------------------- */ 216 | 217 | table.modindextable td { 218 | padding: 2px; 219 | border-collapse: collapse; 220 | } 221 | 222 | /* -- general body styles --------------------------------------------------- */ 223 | 224 | div.body { 225 | min-width: 450px; 226 | max-width: 800px; 227 | } 228 | 229 | div.body p, div.body dd, div.body li, div.body blockquote { 230 | -moz-hyphens: auto; 231 | -ms-hyphens: auto; 232 | -webkit-hyphens: auto; 233 | hyphens: auto; 234 | } 235 | 236 | a.headerlink { 237 | visibility: hidden; 238 | } 239 | 240 | a.brackets:before, 241 | span.brackets > a:before{ 242 | content: "["; 243 | } 244 | 245 | a.brackets:after, 246 | span.brackets > a:after { 247 | content: "]"; 248 | } 249 | 250 | h1:hover > a.headerlink, 251 | h2:hover > a.headerlink, 252 | h3:hover > a.headerlink, 253 | h4:hover > a.headerlink, 254 | h5:hover > a.headerlink, 255 | h6:hover > a.headerlink, 256 | dt:hover > a.headerlink, 257 | caption:hover > a.headerlink, 258 | p.caption:hover > a.headerlink, 259 | div.code-block-caption:hover > a.headerlink { 260 | visibility: visible; 261 | } 262 | 263 | div.body p.caption { 264 | text-align: inherit; 265 | } 266 | 267 | div.body td { 268 | text-align: left; 269 | } 270 | 271 | .first { 272 | margin-top: 0 !important; 273 | } 274 | 275 | p.rubric { 276 | margin-top: 30px; 277 | font-weight: bold; 278 | } 279 | 280 | img.align-left, .figure.align-left, object.align-left { 281 | clear: left; 282 | float: left; 283 | margin-right: 1em; 284 | } 285 | 286 | img.align-right, .figure.align-right, object.align-right { 287 | clear: right; 288 | float: right; 289 | margin-left: 1em; 290 | } 291 | 292 | img.align-center, .figure.align-center, object.align-center { 293 | display: block; 294 | margin-left: auto; 295 | margin-right: auto; 296 | } 297 | 298 | img.align-default, .figure.align-default { 299 | display: block; 300 | margin-left: auto; 301 | margin-right: auto; 302 | } 303 | 304 | .align-left { 305 | text-align: left; 306 | } 307 | 308 | .align-center { 309 | text-align: center; 310 | } 311 | 312 | .align-default { 313 | text-align: center; 314 | } 315 | 316 | .align-right { 317 | text-align: right; 318 | } 319 | 320 | /* -- sidebars -------------------------------------------------------------- */ 321 | 322 | div.sidebar { 323 | margin: 0 0 0.5em 1em; 324 | border: 1px solid #ddb; 325 | padding: 7px; 326 | background-color: #ffe; 327 | width: 40%; 328 | float: right; 329 | clear: right; 330 | overflow-x: auto; 331 | } 332 | 333 | p.sidebar-title { 334 | font-weight: bold; 335 | } 336 | 337 | div.admonition, div.topic, blockquote { 338 | clear: left; 339 | } 340 | 341 | /* -- topics ---------------------------------------------------------------- */ 342 | 343 | div.topic { 344 | border: 1px solid #ccc; 345 | padding: 7px; 346 | margin: 10px 0 10px 0; 347 | } 348 | 349 | p.topic-title { 350 | font-size: 1.1em; 351 | font-weight: bold; 352 | margin-top: 10px; 353 | } 354 | 355 | /* -- admonitions ----------------------------------------------------------- */ 356 | 357 | div.admonition { 358 | margin-top: 10px; 359 | margin-bottom: 10px; 360 | padding: 7px; 361 | } 362 | 363 | div.admonition dt { 364 | font-weight: bold; 365 | } 366 | 367 | p.admonition-title { 368 | margin: 0px 10px 5px 0px; 369 | font-weight: bold; 370 | } 371 | 372 | div.body p.centered { 373 | text-align: center; 374 | margin-top: 25px; 375 | } 376 | 377 | /* -- content of sidebars/topics/admonitions -------------------------------- */ 378 | 379 | div.sidebar > :last-child, 380 | div.topic > :last-child, 381 | div.admonition > :last-child { 382 | margin-bottom: 0; 383 | } 384 | 385 | div.sidebar::after, 386 | div.topic::after, 387 | div.admonition::after, 388 | blockquote::after { 389 | display: block; 390 | content: ''; 391 | clear: both; 392 | } 393 | 394 | /* -- tables ---------------------------------------------------------------- */ 395 | 396 | table.docutils { 397 | margin-top: 10px; 398 | margin-bottom: 10px; 399 | border: 0; 400 | border-collapse: collapse; 401 | } 402 | 403 | table.align-center { 404 | margin-left: auto; 405 | margin-right: auto; 406 | } 407 | 408 | table.align-default { 409 | margin-left: auto; 410 | margin-right: auto; 411 | } 412 | 413 | table caption span.caption-number { 414 | font-style: italic; 415 | } 416 | 417 | table caption span.caption-text { 418 | } 419 | 420 | table.docutils td, table.docutils th { 421 | padding: 1px 8px 1px 5px; 422 | border-top: 0; 423 | border-left: 0; 424 | border-right: 0; 425 | border-bottom: 1px solid #aaa; 426 | } 427 | 428 | table.footnote td, table.footnote th { 429 | border: 0 !important; 430 | } 431 | 432 | th { 433 | text-align: left; 434 | padding-right: 5px; 435 | } 436 | 437 | table.citation { 438 | border-left: solid 1px gray; 439 | margin-left: 1px; 440 | } 441 | 442 | table.citation td { 443 | border-bottom: none; 444 | } 445 | 446 | th > :first-child, 447 | td > :first-child { 448 | margin-top: 0px; 449 | } 450 | 451 | th > :last-child, 452 | td > :last-child { 453 | margin-bottom: 0px; 454 | } 455 | 456 | /* -- figures --------------------------------------------------------------- */ 457 | 458 | div.figure { 459 | margin: 0.5em; 460 | padding: 0.5em; 461 | } 462 | 463 | div.figure p.caption { 464 | padding: 0.3em; 465 | } 466 | 467 | div.figure p.caption span.caption-number { 468 | font-style: italic; 469 | } 470 | 471 | div.figure p.caption span.caption-text { 472 | } 473 | 474 | /* -- field list styles ----------------------------------------------------- */ 475 | 476 | table.field-list td, table.field-list th { 477 | border: 0 !important; 478 | } 479 | 480 | .field-list ul { 481 | margin: 0; 482 | padding-left: 1em; 483 | } 484 | 485 | .field-list p { 486 | margin: 0; 487 | } 488 | 489 | .field-name { 490 | -moz-hyphens: manual; 491 | -ms-hyphens: manual; 492 | -webkit-hyphens: manual; 493 | hyphens: manual; 494 | } 495 | 496 | /* -- hlist styles ---------------------------------------------------------- */ 497 | 498 | table.hlist { 499 | margin: 1em 0; 500 | } 501 | 502 | table.hlist td { 503 | vertical-align: top; 504 | } 505 | 506 | 507 | /* -- other body styles ----------------------------------------------------- */ 508 | 509 | ol.arabic { 510 | list-style: decimal; 511 | } 512 | 513 | ol.loweralpha { 514 | list-style: lower-alpha; 515 | } 516 | 517 | ol.upperalpha { 518 | list-style: upper-alpha; 519 | } 520 | 521 | ol.lowerroman { 522 | list-style: lower-roman; 523 | } 524 | 525 | ol.upperroman { 526 | list-style: upper-roman; 527 | } 528 | 529 | :not(li) > ol > li:first-child > :first-child, 530 | :not(li) > ul > li:first-child > :first-child { 531 | margin-top: 0px; 532 | } 533 | 534 | :not(li) > ol > li:last-child > :last-child, 535 | :not(li) > ul > li:last-child > :last-child { 536 | margin-bottom: 0px; 537 | } 538 | 539 | ol.simple ol p, 540 | ol.simple ul p, 541 | ul.simple ol p, 542 | ul.simple ul p { 543 | margin-top: 0; 544 | } 545 | 546 | ol.simple > li:not(:first-child) > p, 547 | ul.simple > li:not(:first-child) > p { 548 | margin-top: 0; 549 | } 550 | 551 | ol.simple p, 552 | ul.simple p { 553 | margin-bottom: 0; 554 | } 555 | 556 | dl.footnote > dt, 557 | dl.citation > dt { 558 | float: left; 559 | margin-right: 0.5em; 560 | } 561 | 562 | dl.footnote > dd, 563 | dl.citation > dd { 564 | margin-bottom: 0em; 565 | } 566 | 567 | dl.footnote > dd:after, 568 | dl.citation > dd:after { 569 | content: ""; 570 | clear: both; 571 | } 572 | 573 | dl.field-list { 574 | display: grid; 575 | grid-template-columns: fit-content(30%) auto; 576 | } 577 | 578 | dl.field-list > dt { 579 | font-weight: bold; 580 | word-break: break-word; 581 | padding-left: 0.5em; 582 | padding-right: 5px; 583 | } 584 | 585 | dl.field-list > dt:after { 586 | content: ":"; 587 | } 588 | 589 | dl.field-list > dd { 590 | padding-left: 0.5em; 591 | margin-top: 0em; 592 | margin-left: 0em; 593 | margin-bottom: 0em; 594 | } 595 | 596 | dl { 597 | margin-bottom: 15px; 598 | } 599 | 600 | dd > :first-child { 601 | margin-top: 0px; 602 | } 603 | 604 | dd ul, dd table { 605 | margin-bottom: 10px; 606 | } 607 | 608 | dd { 609 | margin-top: 3px; 610 | margin-bottom: 10px; 611 | margin-left: 30px; 612 | } 613 | 614 | dl > dd:last-child, 615 | dl > dd:last-child > :last-child { 616 | margin-bottom: 0; 617 | } 618 | 619 | dt:target, span.highlighted { 620 | background-color: #fbe54e; 621 | } 622 | 623 | rect.highlighted { 624 | fill: #fbe54e; 625 | } 626 | 627 | dl.glossary dt { 628 | font-weight: bold; 629 | font-size: 1.1em; 630 | } 631 | 632 | .optional { 633 | font-size: 1.3em; 634 | } 635 | 636 | .sig-paren { 637 | font-size: larger; 638 | } 639 | 640 | .versionmodified { 641 | font-style: italic; 642 | } 643 | 644 | .system-message { 645 | background-color: #fda; 646 | padding: 5px; 647 | border: 3px solid red; 648 | } 649 | 650 | .footnote:target { 651 | background-color: #ffa; 652 | } 653 | 654 | .line-block { 655 | display: block; 656 | margin-top: 1em; 657 | margin-bottom: 1em; 658 | } 659 | 660 | .line-block .line-block { 661 | margin-top: 0; 662 | margin-bottom: 0; 663 | margin-left: 1.5em; 664 | } 665 | 666 | .guilabel, .menuselection { 667 | font-family: sans-serif; 668 | } 669 | 670 | .accelerator { 671 | text-decoration: underline; 672 | } 673 | 674 | .classifier { 675 | font-style: oblique; 676 | } 677 | 678 | .classifier:before { 679 | font-style: normal; 680 | margin: 0.5em; 681 | content: ":"; 682 | } 683 | 684 | abbr, acronym { 685 | border-bottom: dotted 1px; 686 | cursor: help; 687 | } 688 | 689 | /* -- code displays --------------------------------------------------------- */ 690 | 691 | pre { 692 | overflow: auto; 693 | overflow-y: hidden; /* fixes display issues on Chrome browsers */ 694 | } 695 | 696 | pre, div[class*="highlight-"] { 697 | clear: both; 698 | } 699 | 700 | span.pre { 701 | -moz-hyphens: none; 702 | -ms-hyphens: none; 703 | -webkit-hyphens: none; 704 | hyphens: none; 705 | } 706 | 707 | div[class*="highlight-"] { 708 | margin: 1em 0; 709 | } 710 | 711 | td.linenos pre { 712 | border: 0; 713 | background-color: transparent; 714 | color: #aaa; 715 | } 716 | 717 | table.highlighttable { 718 | display: block; 719 | } 720 | 721 | table.highlighttable tbody { 722 | display: block; 723 | } 724 | 725 | table.highlighttable tr { 726 | display: flex; 727 | } 728 | 729 | table.highlighttable td { 730 | margin: 0; 731 | padding: 0; 732 | } 733 | 734 | table.highlighttable td.linenos { 735 | padding-right: 0.5em; 736 | } 737 | 738 | table.highlighttable td.code { 739 | flex: 1; 740 | overflow: hidden; 741 | } 742 | 743 | .highlight .hll { 744 | display: block; 745 | } 746 | 747 | div.highlight pre, 748 | table.highlighttable pre { 749 | margin: 0; 750 | } 751 | 752 | div.code-block-caption + div { 753 | margin-top: 0; 754 | } 755 | 756 | div.code-block-caption { 757 | margin-top: 1em; 758 | padding: 2px 5px; 759 | font-size: small; 760 | } 761 | 762 | div.code-block-caption code { 763 | background-color: transparent; 764 | } 765 | 766 | table.highlighttable td.linenos, 767 | span.linenos, 768 | div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */ 769 | user-select: none; 770 | } 771 | 772 | div.code-block-caption span.caption-number { 773 | padding: 0.1em 0.3em; 774 | font-style: italic; 775 | } 776 | 777 | div.code-block-caption span.caption-text { 778 | } 779 | 780 | div.literal-block-wrapper { 781 | margin: 1em 0; 782 | } 783 | 784 | code.descname { 785 | background-color: transparent; 786 | font-weight: bold; 787 | font-size: 1.2em; 788 | } 789 | 790 | code.descclassname { 791 | background-color: transparent; 792 | } 793 | 794 | code.xref, a code { 795 | background-color: transparent; 796 | font-weight: bold; 797 | } 798 | 799 | h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { 800 | background-color: transparent; 801 | } 802 | 803 | .viewcode-link { 804 | float: right; 805 | } 806 | 807 | .viewcode-back { 808 | float: right; 809 | font-family: sans-serif; 810 | } 811 | 812 | div.viewcode-block:target { 813 | margin: -1px -10px; 814 | padding: 0 10px; 815 | } 816 | 817 | /* -- math display ---------------------------------------------------------- */ 818 | 819 | img.math { 820 | vertical-align: middle; 821 | } 822 | 823 | div.body div.math p { 824 | text-align: center; 825 | } 826 | 827 | span.eqno { 828 | float: right; 829 | } 830 | 831 | span.eqno a.headerlink { 832 | position: absolute; 833 | z-index: 1; 834 | } 835 | 836 | div.math:hover a.headerlink { 837 | visibility: visible; 838 | } 839 | 840 | /* -- printout stylesheet --------------------------------------------------- */ 841 | 842 | @media print { 843 | div.document, 844 | div.documentwrapper, 845 | div.bodywrapper { 846 | margin: 0 !important; 847 | width: 100%; 848 | } 849 | 850 | div.sphinxsidebar, 851 | div.related, 852 | div.footer, 853 | #top-link { 854 | display: none; 855 | } 856 | } -------------------------------------------------------------------------------- /docs/static/css/insegel.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css?family=IBM+Plex+Sans:300,400,500"); 2 | @import url("https://fonts.googleapis.com/css?family=Inconsolata"); 3 | /* http://meyerweb.com/eric/tools/css/reset/ 4 | v2.0 | 20110126 5 | License: none (public domain) 6 | */ 7 | html, body, div, span, applet, object, iframe, 8 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 9 | a, abbr, acronym, address, big, cite, code, 10 | del, dfn, em, img, ins, kbd, q, s, samp, 11 | small, strike, strong, sub, sup, tt, var, 12 | b, u, i, center, 13 | dl, dt, dd, ol, ul, li, 14 | fieldset, form, label, legend, 15 | table, caption, tbody, tfoot, thead, tr, th, td, 16 | article, aside, canvas, details, embed, 17 | figure, figcaption, footer, header, hgroup, 18 | menu, nav, output, ruby, section, summary, 19 | time, mark, audio, video { 20 | margin: 0; 21 | padding: 0; 22 | border: 0; 23 | font-size: 100%; 24 | font: inherit; 25 | vertical-align: baseline; 26 | } 27 | 28 | /* HTML5 display-role reset for older browsers */ 29 | article, aside, details, figcaption, figure, 30 | footer, header, hgroup, menu, nav, section { 31 | display: block; 32 | } 33 | 34 | body { 35 | line-height: 1; 36 | } 37 | 38 | ol, ul { 39 | list-style: none; 40 | } 41 | 42 | blockquote, q { 43 | quotes: none; 44 | } 45 | 46 | blockquote:before, blockquote:after, 47 | q:before, q:after { 48 | content: ''; 49 | content: none; 50 | } 51 | 52 | table { 53 | border-collapse: collapse; 54 | border-spacing: 0; 55 | } 56 | 57 | body { 58 | background: #F2F2F2; 59 | font-family: "IBM Plex Sans", serif; 60 | line-height: 1.5; 61 | font-size: 18px; 62 | } 63 | @media screen and (max-width: 880px) { 64 | body { 65 | background: #F2F2F2; 66 | } 67 | } 68 | 69 | h1, h2, h3, h4, h5 { 70 | font-weight: 300; 71 | margin-bottom: 1em; 72 | margin-top: 1em; 73 | } 74 | 75 | h1 { 76 | font-size: 2em; 77 | } 78 | 79 | h2 { 80 | font-size: 1.5em; 81 | } 82 | 83 | h3 { 84 | font-size: 1.35em; 85 | } 86 | 87 | a { 88 | text-decoration: none; 89 | color: inherit; 90 | font-weight: 500; 91 | border-bottom: 2px solid transparent; 92 | transition: border-bottom 0.25s; 93 | } 94 | a.headerlink { 95 | border-bottom: 0; 96 | } 97 | 98 | a:hover:not(.headerlink) { 99 | border-bottom: 2px solid #2D2D2D; 100 | } 101 | 102 | p { 103 | margin-bottom: 1em; 104 | } 105 | 106 | em { 107 | font-style: italic; 108 | } 109 | 110 | strong { 111 | font-weight: bold; 112 | } 113 | 114 | li { 115 | display: list-item; 116 | } 117 | 118 | ol { 119 | display: block; 120 | list-style-type: decimal; 121 | padding-left: 40px; 122 | } 123 | 124 | ul { 125 | display: block; 126 | list-style-type: disc; 127 | padding-left: 25px; 128 | } 129 | 130 | ul ul { 131 | list-style-type: circle; 132 | } 133 | 134 | pre { 135 | font-family: "Inconsolata", monospace; 136 | background-color: #DADADA; 137 | color: #2D2D2D; 138 | padding: 2em; 139 | margin-bottom: 1em; 140 | } 141 | 142 | img { 143 | max-width: 100%; 144 | } 145 | 146 | table { 147 | margin: 0 0 1.5em; 148 | width: 100%; 149 | max-width: 100%; 150 | } 151 | 152 | table thead th { 153 | font-weight: bold; 154 | text-align: left; 155 | } 156 | 157 | table th, table td { 158 | padding: 0.5em; 159 | } 160 | 161 | table tbody tr:nth-of-type(odd) { 162 | background-color: #DADADA; 163 | color: #2D2D2D; 164 | } 165 | 166 | pre code { 167 | white-space: nowrap; 168 | overflow-x: auto; 169 | } 170 | 171 | code { 172 | max-width: 100%; 173 | padding: 2px; 174 | font-family: "Inconsolata", monospace; 175 | background-color: #DADADA; 176 | color: #2D2D2D; 177 | } 178 | 179 | table tbody tr:nth-of-type(odd) code { 180 | background-color: #F2F2F2; 181 | color: #2D2D2D; 182 | } 183 | 184 | #insegel-container { 185 | padding-left: 1em; 186 | padding-right: 1em; 187 | max-width: 1300px; 188 | margin-left: auto; 189 | margin-right: auto; 190 | } 191 | @media screen and (max-width: 880px) { 192 | #insegel-container { 193 | padding: 0; 194 | } 195 | } 196 | 197 | #content-container { 198 | display: flex; 199 | width: 100%; 200 | flex-direction: row-reverse; 201 | } 202 | @media screen and (max-width: 880px) { 203 | #content-container { 204 | display: block; 205 | } 206 | } 207 | 208 | #main-content-container { 209 | flex: 1; 210 | } 211 | 212 | #main-content-container, #side-menu-container { 213 | background-color: #F2F2F2; 214 | } 215 | 216 | #main-content { 217 | padding: 2em; 218 | } 219 | #main-content .figure { 220 | text-align: center; 221 | } 222 | #main-content h1:first-child { 223 | display: none; 224 | } 225 | 226 | #main-content-header { 227 | padding: 2em 2em 0 2em; 228 | } 229 | #main-content-header h1 { 230 | margin: 0; 231 | } 232 | 233 | #side-menu-container { 234 | width: 300px; 235 | margin-right: 2em; 236 | position: relative; 237 | } 238 | #side-menu-container #side-menu { 239 | padding: 2em; 240 | margin-bottom: 5em; 241 | } 242 | #side-menu-container #rtd-credit { 243 | padding: 2em; 244 | position: absolute; 245 | bottom: 0; 246 | } 247 | @media screen and (max-width: 1000px) { 248 | #side-menu-container { 249 | width: 250px; 250 | } 251 | } 252 | @media screen and (max-width: 880px) { 253 | #side-menu-container { 254 | margin-right: 0; 255 | width: 100%; 256 | display: none; 257 | } 258 | #side-menu-container #side-menu { 259 | margin-bottom: 0; 260 | } 261 | #side-menu-container #rtd-credit { 262 | position: relative; 263 | } 264 | } 265 | 266 | a.headerlink { 267 | display: none; 268 | visibility: hidden; 269 | } 270 | a.headerlink:after { 271 | visibility: visible; 272 | font: normal normal normal 14px/1 FontAwesome; 273 | font-size: inherit; 274 | text-rendering: auto; 275 | -webkit-font-smoothing: antialiased; 276 | -moz-osx-font-smoothing: grayscale; 277 | content: "\f0c1"; 278 | display: inline-block; 279 | opacity: 0.6; 280 | } 281 | 282 | h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink, dl dt:hover .headerlink, p.caption:hover .headerlink { 283 | display: inline-block; 284 | } 285 | 286 | #side-menu .local-toc ul { 287 | text-transform: uppercase; 288 | font-weight: 300; 289 | padding-left: 0px; 290 | list-style-type: none; 291 | } 292 | #side-menu .local-toc ul ul { 293 | margin-top: 1em; 294 | text-transform: none; 295 | font-family: "IBM Plex Sans", serif; 296 | } 297 | #side-menu .local-toc ul ul a { 298 | font-weight: 400; 299 | } 300 | 301 | #side-menu .caption { 302 | opacity: 0.5; 303 | font-weight: 300; 304 | list-style-type: none; 305 | margin-bottom: 0px; 306 | } 307 | #side-menu ul { 308 | margin-bottom: 1em; 309 | text-transform: none; 310 | list-style-type: none; 311 | padding-left: 0px; 312 | } 313 | 314 | #search { 315 | padding: 2em; 316 | } 317 | #search input[type=text] { 318 | width: 100%; 319 | font-weight: 300; 320 | font-size: 2em; 321 | box-sizing: border-box; 322 | border: none; 323 | background-color: #F2F2F2; 324 | color: #2D2D2D; 325 | font-family: "IBM Plex Sans", serif; 326 | } 327 | #search input[type=text]::placeholder { 328 | color: #a5a5a5; 329 | font-weight: 300; 330 | } 331 | 332 | .admonition { 333 | padding: 2em; 334 | margin-bottom: 2em; 335 | background-color: #2D2D2D; 336 | color: #EBEBEB; 337 | } 338 | .admonition .admonition-title { 339 | font-weight: 500; 340 | } 341 | .admonition.warning, .admonition.caution, .admonition.danger, .admonition.error { 342 | background-color: #CD4949; 343 | color: #2D2D2D; 344 | } 345 | .admonition.attention, .admonition.important { 346 | background-color: #49CDAC; 347 | color: #2D2D2D; 348 | } 349 | 350 | .injected { 351 | display: none; 352 | } 353 | 354 | .toctree-wrapper { 355 | margin-bottom: 1em; 356 | } 357 | .toctree-wrapper .caption-text { 358 | font-weight: 300; 359 | opacity: 0.5; 360 | } 361 | 362 | .figure { 363 | margin-bottom: 1em; 364 | } 365 | 366 | header { 367 | padding-top: 2em; 368 | display: flex; 369 | } 370 | header #logo-container { 371 | width: 300px; 372 | padding-left: 2em; 373 | display: flex; 374 | align-items: center; 375 | } 376 | @media screen and (max-width: 1000px) { 377 | header #logo-container { 378 | width: 250px; 379 | } 380 | } 381 | @media screen and (max-width: 880px) { 382 | header #logo-container { 383 | width: 100%; 384 | padding: 0; 385 | display: block; 386 | } 387 | } 388 | header #logo-container img { 389 | height: 60px; 390 | } 391 | header #project-container { 392 | padding: 0em 2em; 393 | } 394 | @media screen and (max-width: 880px) { 395 | header { 396 | text-align: center; 397 | display: block; 398 | } 399 | } 400 | 401 | footer { 402 | display: flex; 403 | justify-content: space-between; 404 | margin: 2em; 405 | } 406 | footer #footer-info { 407 | display: flex; 408 | justify-content: space-between; 409 | width: 100%; 410 | } 411 | footer a#menu-toggle { 412 | display: none; 413 | opacity: 1; 414 | font-size: 32px; 415 | cursor: pointer; 416 | } 417 | footer a#menu-toggle.toggled { 418 | color: #DADADA; 419 | } 420 | footer ul#build-details { 421 | list-style: none; 422 | display: flex; 423 | margin: 0; 424 | padding: 0; 425 | } 426 | footer ul#build-details li { 427 | margin-right: 0.25em; 428 | } 429 | footer ul#build-details li:not(:last-child):after { 430 | content: " // "; 431 | margin-left: 0; 432 | } 433 | @media screen and (max-width: 880px) { 434 | footer { 435 | align-items: center; 436 | } 437 | footer #footer-info { 438 | display: block; 439 | } 440 | footer a#menu-toggle { 441 | display: block; 442 | } 443 | } 444 | 445 | #search-results ul.search { 446 | padding-left: 0px; 447 | list-style-type: none; 448 | } 449 | #search-results ul.search li { 450 | margin-bottom: 2em; 451 | } 452 | #search-results ul.search .context { 453 | margin-top: 1em; 454 | white-space: pre-line; 455 | background-color: #DADADA; 456 | color: #2D2D2D; 457 | padding: 2em; 458 | } 459 | #search-results ul.search .context .highlighted { 460 | font-weight: 800; 461 | } 462 | 463 | dl:not(.docutils) dd { 464 | margin-left: 2em; 465 | } 466 | dl:not(.docutils) dd dl { 467 | margin-bottom: 1em; 468 | } 469 | dl:not(.docutils) dt { 470 | background: #2D2D2D; 471 | color: #EBEBEB; 472 | padding: 0.5em; 473 | padding-right: 0.75em; 474 | margin-bottom: 1em; 475 | display: inline-block; 476 | } 477 | dl:not(.docutils) dt .property { 478 | margin-right: 0.5em; 479 | } 480 | dl:not(.docutils) dt code { 481 | background: #2D2D2D; 482 | color: #EBEBEB; 483 | font-weight: bold; 484 | padding: 0px; 485 | } 486 | dl:not(.docutils) dl dt { 487 | background: #DADADA; 488 | color: #2D2D2D; 489 | border-left: 0.25em solid #2D2D2D; 490 | } 491 | dl:not(.docutils) dl dt code { 492 | background: #DADADA; 493 | color: #2D2D2D; 494 | } 495 | 496 | .c { 497 | font-style: italic; 498 | } 499 | 500 | /* Comment */ 501 | .err { 502 | border: 1px solid #FF0000; 503 | } 504 | 505 | /* Error */ 506 | .k { 507 | font-weight: bold; 508 | } 509 | 510 | /* Keyword */ 511 | .cm { 512 | font-style: italic; 513 | } 514 | 515 | /* Comment.Multiline */ 516 | .c1 { 517 | font-style: italic; 518 | } 519 | 520 | /* Comment.Single */ 521 | .cs { 522 | font-style: italic; 523 | } 524 | 525 | /* Comment.Special */ 526 | .ge { 527 | font-style: italic; 528 | } 529 | 530 | /* Generic.Emph */ 531 | .gh { 532 | font-weight: bold; 533 | } 534 | 535 | /* Generic.Heading */ 536 | .gp { 537 | font-weight: bold; 538 | } 539 | 540 | /* Generic.Prompt */ 541 | .gs { 542 | font-weight: bold; 543 | } 544 | 545 | /* Generic.Strong */ 546 | .gu { 547 | font-weight: bold; 548 | } 549 | 550 | /* Generic.Subheading */ 551 | .kc { 552 | font-weight: bold; 553 | } 554 | 555 | /* Keyword.Constant */ 556 | .kd { 557 | font-weight: bold; 558 | } 559 | 560 | /* Keyword.Declaration */ 561 | .kn { 562 | font-weight: bold; 563 | } 564 | 565 | /* Keyword.Namespace */ 566 | .kr { 567 | font-weight: bold; 568 | } 569 | 570 | /* Keyword.Reserved */ 571 | .s { 572 | font-style: italic; 573 | } 574 | 575 | /* Literal.String */ 576 | .nc { 577 | font-weight: bold; 578 | } 579 | 580 | /* Name.Class */ 581 | .ni { 582 | font-weight: bold; 583 | } 584 | 585 | /* Name.Entity */ 586 | .ne { 587 | font-weight: bold; 588 | } 589 | 590 | /* Name.Exception */ 591 | .nn { 592 | font-weight: bold; 593 | } 594 | 595 | /* Name.Namespace */ 596 | .nt { 597 | font-weight: bold; 598 | } 599 | 600 | /* Name.Tag */ 601 | .ow { 602 | font-weight: bold; 603 | } 604 | 605 | /* Operator.Word */ 606 | .sb { 607 | font-style: italic; 608 | } 609 | 610 | /* Literal.String.Backtick */ 611 | .sc { 612 | font-style: italic; 613 | } 614 | 615 | /* Literal.String.Char */ 616 | .sd { 617 | font-style: italic; 618 | } 619 | 620 | /* Literal.String.Doc */ 621 | .s2 { 622 | font-style: italic; 623 | } 624 | 625 | /* Literal.String.Double */ 626 | .se { 627 | font-weight: bold; 628 | font-style: italic; 629 | } 630 | 631 | /* Literal.String.Escape */ 632 | .sh { 633 | font-style: italic; 634 | } 635 | 636 | /* Literal.String.Heredoc */ 637 | .si { 638 | font-weight: bold; 639 | font-style: italic; 640 | } 641 | 642 | /* Literal.String.Interpol */ 643 | .sx { 644 | font-style: italic; 645 | } 646 | 647 | /* Literal.String.Other */ 648 | .sr { 649 | font-style: italic; 650 | } 651 | 652 | /* Literal.String.Regex */ 653 | .s1 { 654 | font-style: italic; 655 | } 656 | 657 | /* Literal.String.Single */ 658 | .ss { 659 | font-style: italic; 660 | } 661 | 662 | /* Literal.String.Symbol */ 663 | 664 | /*# sourceMappingURL=insegel.css.map */ 665 | -------------------------------------------------------------------------------- /docs/static/doctools.js: -------------------------------------------------------------------------------- 1 | /* 2 | * doctools.js 3 | * ~~~~~~~~~~~ 4 | * 5 | * Sphinx JavaScript utilities for all documentation. 6 | * 7 | * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. 8 | * :license: BSD, see LICENSE for details. 9 | * 10 | */ 11 | 12 | /** 13 | * select a different prefix for underscore 14 | */ 15 | $u = _.noConflict(); 16 | 17 | /** 18 | * make the code below compatible with browsers without 19 | * an installed firebug like debugger 20 | if (!window.console || !console.firebug) { 21 | var names = ["log", "debug", "info", "warn", "error", "assert", "dir", 22 | "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", 23 | "profile", "profileEnd"]; 24 | window.console = {}; 25 | for (var i = 0; i < names.length; ++i) 26 | window.console[names[i]] = function() {}; 27 | } 28 | */ 29 | 30 | /** 31 | * small helper function to urldecode strings 32 | */ 33 | jQuery.urldecode = function(x) { 34 | return decodeURIComponent(x).replace(/\+/g, ' '); 35 | }; 36 | 37 | /** 38 | * small helper function to urlencode strings 39 | */ 40 | jQuery.urlencode = encodeURIComponent; 41 | 42 | /** 43 | * This function returns the parsed url parameters of the 44 | * current request. Multiple values per key are supported, 45 | * it will always return arrays of strings for the value parts. 46 | */ 47 | jQuery.getQueryParameters = function(s) { 48 | if (typeof s === 'undefined') 49 | s = document.location.search; 50 | var parts = s.substr(s.indexOf('?') + 1).split('&'); 51 | var result = {}; 52 | for (var i = 0; i < parts.length; i++) { 53 | var tmp = parts[i].split('=', 2); 54 | var key = jQuery.urldecode(tmp[0]); 55 | var value = jQuery.urldecode(tmp[1]); 56 | if (key in result) 57 | result[key].push(value); 58 | else 59 | result[key] = [value]; 60 | } 61 | return result; 62 | }; 63 | 64 | /** 65 | * highlight a given string on a jquery object by wrapping it in 66 | * span elements with the given class name. 67 | */ 68 | jQuery.fn.highlightText = function(text, className) { 69 | function highlight(node, addItems) { 70 | if (node.nodeType === 3) { 71 | var val = node.nodeValue; 72 | var pos = val.toLowerCase().indexOf(text); 73 | if (pos >= 0 && 74 | !jQuery(node.parentNode).hasClass(className) && 75 | !jQuery(node.parentNode).hasClass("nohighlight")) { 76 | var span; 77 | var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg"); 78 | if (isInSVG) { 79 | span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); 80 | } else { 81 | span = document.createElement("span"); 82 | span.className = className; 83 | } 84 | span.appendChild(document.createTextNode(val.substr(pos, text.length))); 85 | node.parentNode.insertBefore(span, node.parentNode.insertBefore( 86 | document.createTextNode(val.substr(pos + text.length)), 87 | node.nextSibling)); 88 | node.nodeValue = val.substr(0, pos); 89 | if (isInSVG) { 90 | var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 91 | var bbox = node.parentElement.getBBox(); 92 | rect.x.baseVal.value = bbox.x; 93 | rect.y.baseVal.value = bbox.y; 94 | rect.width.baseVal.value = bbox.width; 95 | rect.height.baseVal.value = bbox.height; 96 | rect.setAttribute('class', className); 97 | addItems.push({ 98 | "parent": node.parentNode, 99 | "target": rect}); 100 | } 101 | } 102 | } 103 | else if (!jQuery(node).is("button, select, textarea")) { 104 | jQuery.each(node.childNodes, function() { 105 | highlight(this, addItems); 106 | }); 107 | } 108 | } 109 | var addItems = []; 110 | var result = this.each(function() { 111 | highlight(this, addItems); 112 | }); 113 | for (var i = 0; i < addItems.length; ++i) { 114 | jQuery(addItems[i].parent).before(addItems[i].target); 115 | } 116 | return result; 117 | }; 118 | 119 | /* 120 | * backward compatibility for jQuery.browser 121 | * This will be supported until firefox bug is fixed. 122 | */ 123 | if (!jQuery.browser) { 124 | jQuery.uaMatch = function(ua) { 125 | ua = ua.toLowerCase(); 126 | 127 | var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || 128 | /(webkit)[ \/]([\w.]+)/.exec(ua) || 129 | /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || 130 | /(msie) ([\w.]+)/.exec(ua) || 131 | ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || 132 | []; 133 | 134 | return { 135 | browser: match[ 1 ] || "", 136 | version: match[ 2 ] || "0" 137 | }; 138 | }; 139 | jQuery.browser = {}; 140 | jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true; 141 | } 142 | 143 | /** 144 | * Small JavaScript module for the documentation. 145 | */ 146 | var Documentation = { 147 | 148 | init : function() { 149 | this.fixFirefoxAnchorBug(); 150 | this.highlightSearchWords(); 151 | this.initIndexTable(); 152 | if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) { 153 | this.initOnKeyListeners(); 154 | } 155 | }, 156 | 157 | /** 158 | * i18n support 159 | */ 160 | TRANSLATIONS : {}, 161 | PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; }, 162 | LOCALE : 'unknown', 163 | 164 | // gettext and ngettext don't access this so that the functions 165 | // can safely bound to a different name (_ = Documentation.gettext) 166 | gettext : function(string) { 167 | var translated = Documentation.TRANSLATIONS[string]; 168 | if (typeof translated === 'undefined') 169 | return string; 170 | return (typeof translated === 'string') ? translated : translated[0]; 171 | }, 172 | 173 | ngettext : function(singular, plural, n) { 174 | var translated = Documentation.TRANSLATIONS[singular]; 175 | if (typeof translated === 'undefined') 176 | return (n == 1) ? singular : plural; 177 | return translated[Documentation.PLURALEXPR(n)]; 178 | }, 179 | 180 | addTranslations : function(catalog) { 181 | for (var key in catalog.messages) 182 | this.TRANSLATIONS[key] = catalog.messages[key]; 183 | this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); 184 | this.LOCALE = catalog.locale; 185 | }, 186 | 187 | /** 188 | * add context elements like header anchor links 189 | */ 190 | addContextElements : function() { 191 | $('div[id] > :header:first').each(function() { 192 | $('\u00B6'). 193 | attr('href', '#' + this.id). 194 | attr('title', _('Permalink to this headline')). 195 | appendTo(this); 196 | }); 197 | $('dt[id]').each(function() { 198 | $('\u00B6'). 199 | attr('href', '#' + this.id). 200 | attr('title', _('Permalink to this definition')). 201 | appendTo(this); 202 | }); 203 | }, 204 | 205 | /** 206 | * workaround a firefox stupidity 207 | * see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075 208 | */ 209 | fixFirefoxAnchorBug : function() { 210 | if (document.location.hash && $.browser.mozilla) 211 | window.setTimeout(function() { 212 | document.location.href += ''; 213 | }, 10); 214 | }, 215 | 216 | /** 217 | * highlight the search words provided in the url in the text 218 | */ 219 | highlightSearchWords : function() { 220 | var params = $.getQueryParameters(); 221 | var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; 222 | if (terms.length) { 223 | var body = $('div.body'); 224 | if (!body.length) { 225 | body = $('body'); 226 | } 227 | window.setTimeout(function() { 228 | $.each(terms, function() { 229 | body.highlightText(this.toLowerCase(), 'highlighted'); 230 | }); 231 | }, 10); 232 | $('') 234 | .appendTo($('#searchbox')); 235 | } 236 | }, 237 | 238 | /** 239 | * init the domain index toggle buttons 240 | */ 241 | initIndexTable : function() { 242 | var togglers = $('img.toggler').click(function() { 243 | var src = $(this).attr('src'); 244 | var idnum = $(this).attr('id').substr(7); 245 | $('tr.cg-' + idnum).toggle(); 246 | if (src.substr(-9) === 'minus.png') 247 | $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); 248 | else 249 | $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); 250 | }).css('display', ''); 251 | if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { 252 | togglers.click(); 253 | } 254 | }, 255 | 256 | /** 257 | * helper function to hide the search marks again 258 | */ 259 | hideSearchWords : function() { 260 | $('#searchbox .highlight-link').fadeOut(300); 261 | $('span.highlighted').removeClass('highlighted'); 262 | }, 263 | 264 | /** 265 | * make the url absolute 266 | */ 267 | makeURL : function(relativeURL) { 268 | return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; 269 | }, 270 | 271 | /** 272 | * get the current relative url 273 | */ 274 | getCurrentURL : function() { 275 | var path = document.location.pathname; 276 | var parts = path.split(/\//); 277 | $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { 278 | if (this === '..') 279 | parts.pop(); 280 | }); 281 | var url = parts.join('/'); 282 | return path.substring(url.lastIndexOf('/') + 1, path.length - 1); 283 | }, 284 | 285 | initOnKeyListeners: function() { 286 | $(document).keydown(function(event) { 287 | var activeElementType = document.activeElement.tagName; 288 | // don't navigate when in search box, textarea, dropdown or button 289 | if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT' 290 | && activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey 291 | && !event.shiftKey) { 292 | switch (event.keyCode) { 293 | case 37: // left 294 | var prevHref = $('link[rel="prev"]').prop('href'); 295 | if (prevHref) { 296 | window.location.href = prevHref; 297 | return false; 298 | } 299 | case 39: // right 300 | var nextHref = $('link[rel="next"]').prop('href'); 301 | if (nextHref) { 302 | window.location.href = nextHref; 303 | return false; 304 | } 305 | } 306 | } 307 | }); 308 | } 309 | }; 310 | 311 | // quick alias for translations 312 | _ = Documentation.gettext; 313 | 314 | $(document).ready(function() { 315 | Documentation.init(); 316 | }); 317 | -------------------------------------------------------------------------------- /docs/static/documentation_options.js: -------------------------------------------------------------------------------- 1 | var DOCUMENTATION_OPTIONS = { 2 | URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), 3 | VERSION: '1.0.0', 4 | LANGUAGE: 'None', 5 | COLLAPSE_INDEX: false, 6 | BUILDER: 'html', 7 | FILE_SUFFIX: '.html', 8 | LINK_SUFFIX: '.html', 9 | HAS_SOURCE: true, 10 | SOURCELINK_SUFFIX: '.txt', 11 | NAVIGATION_WITH_KEYS: false 12 | }; -------------------------------------------------------------------------------- /docs/static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/static/file.png -------------------------------------------------------------------------------- /docs/static/img/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/static/img/favicon-16x16.png -------------------------------------------------------------------------------- /docs/static/img/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/static/img/favicon-32x32.png -------------------------------------------------------------------------------- /docs/static/img/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | Vector 3 | Created using Figma 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/static/language_data.js: -------------------------------------------------------------------------------- 1 | /* 2 | * language_data.js 3 | * ~~~~~~~~~~~~~~~~ 4 | * 5 | * This script contains the language-specific data used by searchtools.js, 6 | * namely the list of stopwords, stemmer, scorer and splitter. 7 | * 8 | * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. 9 | * :license: BSD, see LICENSE for details. 10 | * 11 | */ 12 | 13 | var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"]; 14 | 15 | 16 | /* Non-minified version JS is _stemmer.js if file is provided */ 17 | /** 18 | * Porter Stemmer 19 | */ 20 | var Stemmer = function() { 21 | 22 | var step2list = { 23 | ational: 'ate', 24 | tional: 'tion', 25 | enci: 'ence', 26 | anci: 'ance', 27 | izer: 'ize', 28 | bli: 'ble', 29 | alli: 'al', 30 | entli: 'ent', 31 | eli: 'e', 32 | ousli: 'ous', 33 | ization: 'ize', 34 | ation: 'ate', 35 | ator: 'ate', 36 | alism: 'al', 37 | iveness: 'ive', 38 | fulness: 'ful', 39 | ousness: 'ous', 40 | aliti: 'al', 41 | iviti: 'ive', 42 | biliti: 'ble', 43 | logi: 'log' 44 | }; 45 | 46 | var step3list = { 47 | icate: 'ic', 48 | ative: '', 49 | alize: 'al', 50 | iciti: 'ic', 51 | ical: 'ic', 52 | ful: '', 53 | ness: '' 54 | }; 55 | 56 | var c = "[^aeiou]"; // consonant 57 | var v = "[aeiouy]"; // vowel 58 | var C = c + "[^aeiouy]*"; // consonant sequence 59 | var V = v + "[aeiou]*"; // vowel sequence 60 | 61 | var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0 62 | var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 63 | var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 64 | var s_v = "^(" + C + ")?" + v; // vowel in stem 65 | 66 | this.stemWord = function (w) { 67 | var stem; 68 | var suffix; 69 | var firstch; 70 | var origword = w; 71 | 72 | if (w.length < 3) 73 | return w; 74 | 75 | var re; 76 | var re2; 77 | var re3; 78 | var re4; 79 | 80 | firstch = w.substr(0,1); 81 | if (firstch == "y") 82 | w = firstch.toUpperCase() + w.substr(1); 83 | 84 | // Step 1a 85 | re = /^(.+?)(ss|i)es$/; 86 | re2 = /^(.+?)([^s])s$/; 87 | 88 | if (re.test(w)) 89 | w = w.replace(re,"$1$2"); 90 | else if (re2.test(w)) 91 | w = w.replace(re2,"$1$2"); 92 | 93 | // Step 1b 94 | re = /^(.+?)eed$/; 95 | re2 = /^(.+?)(ed|ing)$/; 96 | if (re.test(w)) { 97 | var fp = re.exec(w); 98 | re = new RegExp(mgr0); 99 | if (re.test(fp[1])) { 100 | re = /.$/; 101 | w = w.replace(re,""); 102 | } 103 | } 104 | else if (re2.test(w)) { 105 | var fp = re2.exec(w); 106 | stem = fp[1]; 107 | re2 = new RegExp(s_v); 108 | if (re2.test(stem)) { 109 | w = stem; 110 | re2 = /(at|bl|iz)$/; 111 | re3 = new RegExp("([^aeiouylsz])\\1$"); 112 | re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); 113 | if (re2.test(w)) 114 | w = w + "e"; 115 | else if (re3.test(w)) { 116 | re = /.$/; 117 | w = w.replace(re,""); 118 | } 119 | else if (re4.test(w)) 120 | w = w + "e"; 121 | } 122 | } 123 | 124 | // Step 1c 125 | re = /^(.+?)y$/; 126 | if (re.test(w)) { 127 | var fp = re.exec(w); 128 | stem = fp[1]; 129 | re = new RegExp(s_v); 130 | if (re.test(stem)) 131 | w = stem + "i"; 132 | } 133 | 134 | // Step 2 135 | re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; 136 | if (re.test(w)) { 137 | var fp = re.exec(w); 138 | stem = fp[1]; 139 | suffix = fp[2]; 140 | re = new RegExp(mgr0); 141 | if (re.test(stem)) 142 | w = stem + step2list[suffix]; 143 | } 144 | 145 | // Step 3 146 | re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; 147 | if (re.test(w)) { 148 | var fp = re.exec(w); 149 | stem = fp[1]; 150 | suffix = fp[2]; 151 | re = new RegExp(mgr0); 152 | if (re.test(stem)) 153 | w = stem + step3list[suffix]; 154 | } 155 | 156 | // Step 4 157 | re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; 158 | re2 = /^(.+?)(s|t)(ion)$/; 159 | if (re.test(w)) { 160 | var fp = re.exec(w); 161 | stem = fp[1]; 162 | re = new RegExp(mgr1); 163 | if (re.test(stem)) 164 | w = stem; 165 | } 166 | else if (re2.test(w)) { 167 | var fp = re2.exec(w); 168 | stem = fp[1] + fp[2]; 169 | re2 = new RegExp(mgr1); 170 | if (re2.test(stem)) 171 | w = stem; 172 | } 173 | 174 | // Step 5 175 | re = /^(.+?)e$/; 176 | if (re.test(w)) { 177 | var fp = re.exec(w); 178 | stem = fp[1]; 179 | re = new RegExp(mgr1); 180 | re2 = new RegExp(meq1); 181 | re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); 182 | if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) 183 | w = stem; 184 | } 185 | re = /ll$/; 186 | re2 = new RegExp(mgr1); 187 | if (re.test(w) && re2.test(w)) { 188 | re = /.$/; 189 | w = w.replace(re,""); 190 | } 191 | 192 | // and turn initial Y back to y 193 | if (firstch == "y") 194 | w = firstch.toLowerCase() + w.substr(1); 195 | return w; 196 | } 197 | } 198 | 199 | 200 | 201 | 202 | 203 | var splitChars = (function() { 204 | var result = {}; 205 | var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648, 206 | 1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702, 207 | 2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971, 208 | 2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345, 209 | 3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761, 210 | 3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823, 211 | 4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125, 212 | 8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695, 213 | 11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587, 214 | 43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141]; 215 | var i, j, start, end; 216 | for (i = 0; i < singles.length; i++) { 217 | result[singles[i]] = true; 218 | } 219 | var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709], 220 | [722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161], 221 | [1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568], 222 | [1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807], 223 | [1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047], 224 | [2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383], 225 | [2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450], 226 | [2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547], 227 | [2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673], 228 | [2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820], 229 | [2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946], 230 | [2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023], 231 | [3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173], 232 | [3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332], 233 | [3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481], 234 | [3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718], 235 | [3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791], 236 | [3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095], 237 | [4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205], 238 | [4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687], 239 | [4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968], 240 | [4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869], 241 | [5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102], 242 | [6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271], 243 | [6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592], 244 | [6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822], 245 | [6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167], 246 | [7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959], 247 | [7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143], 248 | [8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318], 249 | [8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483], 250 | [8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101], 251 | [10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567], 252 | [11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292], 253 | [12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444], 254 | [12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783], 255 | [12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311], 256 | [19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511], 257 | [42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774], 258 | [42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071], 259 | [43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263], 260 | [43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519], 261 | [43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647], 262 | [43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967], 263 | [44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295], 264 | [57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274], 265 | [64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007], 266 | [65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381], 267 | [65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]]; 268 | for (i = 0; i < ranges.length; i++) { 269 | start = ranges[i][0]; 270 | end = ranges[i][1]; 271 | for (j = start; j <= end; j++) { 272 | result[j] = true; 273 | } 274 | } 275 | return result; 276 | })(); 277 | 278 | function splitQuery(query) { 279 | var result = []; 280 | var start = -1; 281 | for (var i = 0; i < query.length; i++) { 282 | if (splitChars[query.charCodeAt(i)]) { 283 | if (start !== -1) { 284 | result.push(query.slice(start, i)); 285 | start = -1; 286 | } 287 | } else if (start === -1) { 288 | start = i; 289 | } 290 | } 291 | if (start !== -1) { 292 | result.push(query.slice(start)); 293 | } 294 | return result; 295 | } 296 | 297 | 298 | -------------------------------------------------------------------------------- /docs/static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/static/logo.png -------------------------------------------------------------------------------- /docs/static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/static/minus.png -------------------------------------------------------------------------------- /docs/static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kalbra/after-effects-python/bdcaf395ba2b5d4c33d1109921a30cc00bad3775/docs/static/plus.png -------------------------------------------------------------------------------- /docs/static/pygments.css: -------------------------------------------------------------------------------- 1 | pre { line-height: 125%; } 2 | td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; } 3 | span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; } 4 | td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } 5 | span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } 6 | .highlight .hll { background-color: #ffffcc } 7 | .highlight { background: #f0f0f0; } 8 | .highlight .c { color: #60a0b0; font-style: italic } /* Comment */ 9 | .highlight .err { border: 1px solid #FF0000 } /* Error */ 10 | .highlight .k { color: #007020; font-weight: bold } /* Keyword */ 11 | .highlight .o { color: #666666 } /* Operator */ 12 | .highlight .ch { color: #60a0b0; font-style: italic } /* Comment.Hashbang */ 13 | .highlight .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */ 14 | .highlight .cp { color: #007020 } /* Comment.Preproc */ 15 | .highlight .cpf { color: #60a0b0; font-style: italic } /* Comment.PreprocFile */ 16 | .highlight .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */ 17 | .highlight .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */ 18 | .highlight .gd { color: #A00000 } /* Generic.Deleted */ 19 | .highlight .ge { font-style: italic } /* Generic.Emph */ 20 | .highlight .gr { color: #FF0000 } /* Generic.Error */ 21 | .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ 22 | .highlight .gi { color: #00A000 } /* Generic.Inserted */ 23 | .highlight .go { color: #888888 } /* Generic.Output */ 24 | .highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ 25 | .highlight .gs { font-weight: bold } /* Generic.Strong */ 26 | .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ 27 | .highlight .gt { color: #0044DD } /* Generic.Traceback */ 28 | .highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */ 29 | .highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */ 30 | .highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */ 31 | .highlight .kp { color: #007020 } /* Keyword.Pseudo */ 32 | .highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */ 33 | .highlight .kt { color: #902000 } /* Keyword.Type */ 34 | .highlight .m { color: #40a070 } /* Literal.Number */ 35 | .highlight .s { color: #4070a0 } /* Literal.String */ 36 | .highlight .na { color: #4070a0 } /* Name.Attribute */ 37 | .highlight .nb { color: #007020 } /* Name.Builtin */ 38 | .highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */ 39 | .highlight .no { color: #60add5 } /* Name.Constant */ 40 | .highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ 41 | .highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */ 42 | .highlight .ne { color: #007020 } /* Name.Exception */ 43 | .highlight .nf { color: #06287e } /* Name.Function */ 44 | .highlight .nl { color: #002070; font-weight: bold } /* Name.Label */ 45 | .highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ 46 | .highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */ 47 | .highlight .nv { color: #bb60d5 } /* Name.Variable */ 48 | .highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */ 49 | .highlight .w { color: #bbbbbb } /* Text.Whitespace */ 50 | .highlight .mb { color: #40a070 } /* Literal.Number.Bin */ 51 | .highlight .mf { color: #40a070 } /* Literal.Number.Float */ 52 | .highlight .mh { color: #40a070 } /* Literal.Number.Hex */ 53 | .highlight .mi { color: #40a070 } /* Literal.Number.Integer */ 54 | .highlight .mo { color: #40a070 } /* Literal.Number.Oct */ 55 | .highlight .sa { color: #4070a0 } /* Literal.String.Affix */ 56 | .highlight .sb { color: #4070a0 } /* Literal.String.Backtick */ 57 | .highlight .sc { color: #4070a0 } /* Literal.String.Char */ 58 | .highlight .dl { color: #4070a0 } /* Literal.String.Delimiter */ 59 | .highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */ 60 | .highlight .s2 { color: #4070a0 } /* Literal.String.Double */ 61 | .highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */ 62 | .highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */ 63 | .highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */ 64 | .highlight .sx { color: #c65d09 } /* Literal.String.Other */ 65 | .highlight .sr { color: #235388 } /* Literal.String.Regex */ 66 | .highlight .s1 { color: #4070a0 } /* Literal.String.Single */ 67 | .highlight .ss { color: #517918 } /* Literal.String.Symbol */ 68 | .highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ 69 | .highlight .fm { color: #06287e } /* Name.Function.Magic */ 70 | .highlight .vc { color: #bb60d5 } /* Name.Variable.Class */ 71 | .highlight .vg { color: #bb60d5 } /* Name.Variable.Global */ 72 | .highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */ 73 | .highlight .vm { color: #bb60d5 } /* Name.Variable.Magic */ 74 | .highlight .il { color: #40a070 } /* Literal.Number.Integer.Long */ -------------------------------------------------------------------------------- /docs/static/searchtools.js: -------------------------------------------------------------------------------- 1 | /* 2 | * searchtools.js 3 | * ~~~~~~~~~~~~~~~~ 4 | * 5 | * Sphinx JavaScript utilities for the full-text search. 6 | * 7 | * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. 8 | * :license: BSD, see LICENSE for details. 9 | * 10 | */ 11 | 12 | if (!Scorer) { 13 | /** 14 | * Simple result scoring code. 15 | */ 16 | var Scorer = { 17 | // Implement the following function to further tweak the score for each result 18 | // The function takes a result array [filename, title, anchor, descr, score] 19 | // and returns the new score. 20 | /* 21 | score: function(result) { 22 | return result[4]; 23 | }, 24 | */ 25 | 26 | // query matches the full name of an object 27 | objNameMatch: 11, 28 | // or matches in the last dotted part of the object name 29 | objPartialMatch: 6, 30 | // Additive scores depending on the priority of the object 31 | objPrio: {0: 15, // used to be importantResults 32 | 1: 5, // used to be objectResults 33 | 2: -5}, // used to be unimportantResults 34 | // Used when the priority is not in the mapping. 35 | objPrioDefault: 0, 36 | 37 | // query found in title 38 | title: 15, 39 | partialTitle: 7, 40 | // query found in terms 41 | term: 5, 42 | partialTerm: 2 43 | }; 44 | } 45 | 46 | if (!splitQuery) { 47 | function splitQuery(query) { 48 | return query.split(/\s+/); 49 | } 50 | } 51 | 52 | /** 53 | * Search Module 54 | */ 55 | var Search = { 56 | 57 | _index : null, 58 | _queued_query : null, 59 | _pulse_status : -1, 60 | 61 | htmlToText : function(htmlString) { 62 | var virtualDocument = document.implementation.createHTMLDocument('virtual'); 63 | var htmlElement = $(htmlString, virtualDocument); 64 | htmlElement.find('.headerlink').remove(); 65 | docContent = htmlElement.find('[role=main]')[0]; 66 | if(docContent === undefined) { 67 | console.warn("Content block not found. Sphinx search tries to obtain it " + 68 | "via '[role=main]'. Could you check your theme or template."); 69 | return ""; 70 | } 71 | return docContent.textContent || docContent.innerText; 72 | }, 73 | 74 | init : function() { 75 | var params = $.getQueryParameters(); 76 | if (params.q) { 77 | var query = params.q[0]; 78 | $('input[name="q"]')[0].value = query; 79 | this.performSearch(query); 80 | } 81 | }, 82 | 83 | loadIndex : function(url) { 84 | $.ajax({type: "GET", url: url, data: null, 85 | dataType: "script", cache: true, 86 | complete: function(jqxhr, textstatus) { 87 | if (textstatus != "success") { 88 | document.getElementById("searchindexloader").src = url; 89 | } 90 | }}); 91 | }, 92 | 93 | setIndex : function(index) { 94 | var q; 95 | this._index = index; 96 | if ((q = this._queued_query) !== null) { 97 | this._queued_query = null; 98 | Search.query(q); 99 | } 100 | }, 101 | 102 | hasIndex : function() { 103 | return this._index !== null; 104 | }, 105 | 106 | deferQuery : function(query) { 107 | this._queued_query = query; 108 | }, 109 | 110 | stopPulse : function() { 111 | this._pulse_status = 0; 112 | }, 113 | 114 | startPulse : function() { 115 | if (this._pulse_status >= 0) 116 | return; 117 | function pulse() { 118 | var i; 119 | Search._pulse_status = (Search._pulse_status + 1) % 4; 120 | var dotString = ''; 121 | for (i = 0; i < Search._pulse_status; i++) 122 | dotString += '.'; 123 | Search.dots.text(dotString); 124 | if (Search._pulse_status > -1) 125 | window.setTimeout(pulse, 500); 126 | } 127 | pulse(); 128 | }, 129 | 130 | /** 131 | * perform a search for something (or wait until index is loaded) 132 | */ 133 | performSearch : function(query) { 134 | // create the required interface elements 135 | this.out = $('#search-results'); 136 | this.title = $('

' + _('Searching') + '

').appendTo(this.out); 137 | this.dots = $('').appendTo(this.title); 138 | this.status = $('

 

').appendTo(this.out); 139 | this.output = $('