# Template After effect

**URL:** <https://casparcgforum.org/t/template-after-effect/4176>\
**Category:** General\
**Tags:** guide, template, howto, html, development\
**Created:** [April 28, 2021, 7:11pm UTC](https://casparcgforum.org/t/template-after-effect/4176 "2021-04-28T19:11:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicholas.ichkitidze](https://casparcgforum.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nicholas.ichkitidze](https://casparcgforum.org/u/nicholas.ichkitidze)\
**Post date:** [April 28, 2021, 7:11pm UTC](https://casparcgforum.org/t/template-after-effect/4176/1 "2021-04-28T19:11:27Z")

</div>

Dear All

Can I create a lower third template in Adobe After Effect and manage it from Caspar? Any links, Doc, tutorials, ideas?

thanks a lot

---

<div class="post-metadata">

**Author:** ![Heine\_F](https://casparcgforum.org/user_avatar/casparcgforum.org/heine_f/32/1204_2.png) [@Heine\_F](https://casparcgforum.org/u/Heine_F)\
**Post date:** [April 28, 2021, 8:26pm UTC](https://casparcgforum.org/t/template-after-effect/4176/2 "2021-04-28T20:26:50Z")

</div>

Yes, you can export a timeline with the plugin bodymovin(free) - The plugin exports files to be used by a player called lottie, and that can be embeded in a html template and controlled with javascript/casparcg -  
I made a demo template in another post, there is also the ae file.  
Its not everything in After effects that works in the plugin, like particles - but you can always export it as a png sequence reimport and then export that with bodymovin. There are other ways to do the controlling javascript, just search the forum after bodymovin or lottie

> [@Bodymovin?](https://casparcgforum.org/t/bodymovin/2260/11):
>
> I’ ve made a quick little basic demo lower third - you can download the template and the ae project here: [template and ae project](https://drive.google.com/drive/folders/1WJy34FKvflJDWPGiCNVe-ZbXUmaVxMPG?usp=sharing) Here a short and by no means fulfilling how to: In AE name the dynamic text layers: .f0 .f1 or .name .title or whatever you like, just remember the “.” in front. (it will be a class in the code later) Then make some cool graphic! Select the composition in bodymovin extension - in setting - unmark “glyphs” (you can use glyphs if you want them embeded, but you …

You can get the plugin here: [Adobe Exchange](https://exchange.adobe.com/creativecloud.details.12557.bodymovin.html#)  
Lottie and after effects:  
[Lottie Docs](https://airbnb.io/lottie/#/after-effects)

I hope that helps!

---

<div class="post-metadata">

**Author:** ![nicholas.ichkitidze](https://casparcgforum.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nicholas.ichkitidze](https://casparcgforum.org/u/nicholas.ichkitidze)\
**Post date:** [May 31, 2021, 8:19am UTC](https://casparcgforum.org/t/template-after-effect/4176/3 "2021-05-31T08:19:43Z")

</div>

Hello Heine\_F

I can manipulate on your lower third template from Html using CasparCG invoke method.  
but  
I have troubles exporting composition from AE using bodymovin extension in a proper way. could you please guide me how to achieve this?

below, this is screenshot of your template which work fine with CasparCG for me. I mean how to export like this files from AE using bodymovin?  
thanks in advance

 ![bodymob](https://casparcgforum.org/uploads/default/original/2X/4/4e7fa85b61bbe7f0a97f9c9d2a4efe634c790bef.png)

---

<div class="post-metadata">

**Author:** ![didikunz](https://casparcgforum.org/user_avatar/casparcgforum.org/didikunz/32/7_2.png) [@didikunz](https://casparcgforum.org/u/didikunz)\
**Post date:** [May 31, 2021, 9:19am UTC](https://casparcgforum.org/t/template-after-effect/4176/4 "2021-05-31T09:19:23Z")

</div>

I am not sure, if you understand the workflow here: What you export from After Effects (using BodyMovin) is only the data.json file. The rest needs to be built by you, that is not been generated. I currently work on a tool to automate this process, but it does not run yet.

---

<div class="post-metadata">

**Author:** ![Heine\_F](https://casparcgforum.org/user_avatar/casparcgforum.org/heine_f/32/1204_2.png) [@Heine\_F](https://casparcgforum.org/u/Heine_F)\
**Post date:** [June 2, 2021, 3:00pm UTC](https://casparcgforum.org/t/template-after-effect/4176/5 "2021-06-02T15:00:02Z")

</div>

hi Nicholas - Didi wrote the answer - only the json file, and if there is any images in your comp it will generate a Images folder.

You can use the js files in the template for your own export from AE - replace the data.json with your export from bodymovin(name it: data.json). In the index.js file, you can change the In & out of play,stop and update.

Place the font you want to use in the folder, type the font name with filename(ttf,otf etc.) in the export dialog box and it should work.

Below is the code you will need to change in the index.js file:

```auto
var animSettings = {
    "play": {
        "in": 0,
        "out": 25
    },
    "update": {
        "in": 30,
        "out": 45

    },
   
    "stop": {
        "in": 50,
        "out": 66
    }
}

```

---

<div class="post-metadata">

**Author:** ![nicholas.ichkitidze](https://casparcgforum.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nicholas.ichkitidze](https://casparcgforum.org/u/nicholas.ichkitidze)\
**Post date:** [June 5, 2021, 8:06am UTC](https://casparcgforum.org/t/template-after-effect/4176/6 "2021-06-05T08:06:40Z")

</div>

Really thanks a lot Heine\_F.  
Now I understand behavior of bodymovin!. but I can not find solution for this issue.

for example from above code, how to can I play section “update” only with loop and further at any time how to stop current iteration at the end of “update” and than play “stop”?

thanks again

---

<div class="post-metadata">

**Author:** ![Heine\_F](https://casparcgforum.org/user_avatar/casparcgforum.org/heine_f/32/1204_2.png) [@Heine\_F](https://casparcgforum.org/u/Heine_F)\
**Post date:** [February 25, 2022, 9:07am UTC](https://casparcgforum.org/t/template-after-effect/4176/7 "2022-02-25T09:07:57Z")

</div>

Hi Nicholas, sorry for the late replay. Did you find a solution?

---

<div class="post-metadata">

**Author:** ![didikunz](https://casparcgforum.org/user_avatar/casparcgforum.org/didikunz/32/7_2.png) [@didikunz](https://casparcgforum.org/u/didikunz)\
**Post date:** [February 25, 2022, 10:25am UTC](https://casparcgforum.org/t/template-after-effect/4176/8 "2022-02-25T10:25:25Z")

</div>

If I remember right, there is some kind of position event, that you can subscribe to. If the loop reaches the out frame (45) go and play the “stop” section. Of course in the stop command, that is called by Caspar you need to set a boolean, that signals the position event handler, that you want to skip out.
