Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Rendering problem json file

New Here ,
Dec 04, 2019 Dec 04, 2019

Hello! i have created an animation in which it shows how to add a widget to the screen, its part of an app we are building together.

when my friend tries to add the json file and run the animation inside the app the text that describes what should you do is missplaced badly, some elements lose their place and we dont know why.

(all anchor point are in the right place).

 

wondered if you guys can help understanding us what we might doing wrong

I use Ae 15.1 2018

TOPICS
Error or problem , How to , Import and export
4.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 04, 2019 Dec 04, 2019

Since there as many ways to set up a comp to use a JSON file as there are stars in the sky, we are going to need to see the project or at least uncropped screenshots showing the modified properties of all layers that are giving you problems to discover the error. It is most likely a workflow problem that involves leaving something out of the project.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 05, 2019 Dec 05, 2019

Hello there, this is my project I have been working on. Thats how it looks like In the application.

 

Text render problem + no backgroundText render problem + no backgroundno backgroundno backgroundText render problem + no backgroundText render problem + no background

I would be thankful if you could help me understand better what Im doing wrong.

This is how it should look like:
image.pngimage.pngimage.png
image.png
In other article I saw some one had the same problem, one fellow said he should turn off
the auto orient in the needed layers and it worked for him, but not in my case.
this is the article  -> https://github.com/airbnb/lottie-web/issues/1808

Thank you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 06, 2019 Dec 06, 2019

It looks like you have created an After Effects project that creates a video that shows how the app is supposed to work when you start clicking on the interface. The bottom screenshot of the UI shows what the app is supposed to look like 6 seconds into the demo video. I don't see any of the modified properties of the layers in that screenshot and if you have used JSON files to create the animation I also don't see that code. I also do not see any JSON files in the Project Panel. There is also no indication of a Layered AI file being imported as a comp, which would be a very good workflow for this kind of project.

Screenshot_2019-12-06 06.11.41_rDyCkm.png

A typical JSON project on the left, your Project panel is on the right.

 

It looks like the top three screenshots show a rendering problem where the background, which I assume is Layer 13 - Phone V02.ai, has not been rendered. There is also a problem with the spacing and position of the text. I am assuming that the top three screenshots are coming from the AEP project file that is using the JSON files that your friend is trying to create.

 

If that is the case, then the problem with the text layers is the implementation of the JSON files and the text layer Character Panel settings. Baseline shift, Leading, and Font Size are not controlled by JSON files. To figure out why the background is not rendering we need to see the project that is rendering the background with the modified properties of the background layer revealed. (uu will show them). We also need to see the Character Panel when a problem text layer is selected and be able to compare that to the Character Panel with the same text layer selected in the project (comp) where things are working properly.

 

I still do not have any idea where the problem lies because the workflow description lacks detail and I can't see the modified properties of the layers that are causing your problems.

 

 

 

 

 

 

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2019 Dec 07, 2019
LATEST

I opened your AEP file and the JSON file. Here are the problems that I see. There are only two expressions in the AEP file and both of them are loopOut() expressions that do what they are supposed to do. The JSON file has a bunch of values and some of them correspond to things like the height, width and frame rate of the comp. There is nothing in there that looks like the way I usually layout my JSON files. I can't do anything with your files other than look at the comp that works because I don't know how you are trying to use the JSON file. There is nothing in your AEP that looks at the JSON file.

 

If you are new to JSON files I suggest you look at this tutorial to get started. It's just one set of many good ones on using JSON. Creating a JSON file & Linking to After Effects. There are multiple parts to the tutorial.

 

I'm not even sure I would try and do something with your JSON file. There are hundreds of entries for single sets of data. This is a small sample of your JSON file:

 

{"v":"5.4.1","fr":60,"ip":0,"op":510,"w":1080,"h":1920,"nm":"Phone V02","ddd":0,"assets":[{"id":"image_0","w":1024,"h":500,"u":"images/","p":"img_0.png","e":0},{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":0,"k":60,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[738.242,1294.633,0],"ix":2},"a":{"a":0,"k":[-207.758,333.633,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[30.928,0],[0,0],[0,-30.928],[0,0],[-30.928,0],[0,0],[0,30.928],[0,0]],"o":[[0,0],[-30.928,0],[0,0],[0,30.928],[0,0],[30.928,0],[0,0],[0,-30.928]],"v":[[132.242,-185.633],[-132.242,-185.633],[-188.242,-129.633],[-188.242,129.633],[-132.242,185.633],[132.242,185.633],[188.242,129.633],[188.242,-129.633]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":5,"ix":5},"lc":1,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":8},"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":true},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false}

 

 

There are a lot more lines. It would take me days or maybe even weeks to sort all of that data out and assign it to layers using expressions.

 

This is what a JSON file that is properly formatted for easy use in After Effects would look like:

 

 

{
    "contributors": null,
    "coordinates": null,
    "created_at": "Sun Oct 22 00:03:04 +0000 2017",
    "display_text_range": [
        0,
        117
    ],
    "entities": {
        "hashtags": [],
        "symbols": [],
        "urls": [],
        "user_mentions": []
    },
    "favorite_count": 278,
    "favorited": false,
    "full_text": "The burden of proof for journalists who publish on harassment allegations is incredibly high. As it should be.",
    "geo": null,
    "id": 921889606920015873,
    "id_str": "921889606920015873",
    "in_reply_to_screen_name": null,
    "in_reply_to_status_id": null,
    "in_reply_to_status_id_str": null,
    "in_reply_to_user_id": null,
    "in_reply_to_user_id_str": null,
    "is_quote_status": false,
    "lang": "en",
    "place": {
        "attributes": {},
        "bounding_box": {
            "coordinates": [
                [
                    [
                        -76.697002,
                        39.188714
                    ],

 

 

There are more lines, but you get the idea.

 

Here's a link to the User Guide: Work with Data-driven animation - Adobe Help Center. Maybe that will help you sort out what is going on.

 

I'm still not quite sure what you mean when you say "when my friend tries to add the json file and run the animation inside the app the text that describes what should you do is misplaced badly, some elements lose their place..." How is your friend using the JSON file and what app is being used? I also wonder how you generated the JSON file. This is what a typical AEP looks like using a JSON file. I have arranged the panels so you can see all of the expressions for all of the layers:

 

Screenshot_2019-12-07 18.10.04_ksAPFs.png

I wish I could be of more help. 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines