Brilliant product! Thanks a million for that. Couple of questions - can font/font size be linked to JSON doc? Definitely text layer scale be added to JSON but can font selection be driven the same way? Render queue parameters? Can external scripts be stored or triggered via JSON doc?
Brilliant product! Thanks a million for that. Couple of questions - can font/font size be linked to JSON doc? Definitely text layer scale be added to JSON but can font selection be driven the same way? Render queue parameters? Can external scripts be stored or triggered via JSON doc?
You can access and execute this code inside JSON files inside expressions, but you cannot use this to trigger general Ae scripting code that should modify your project.
Trying this out ... it keeps giving me "Error at line 497 of ~/Downloads/mamoworldjson_1_0_000/mamoworldJSON.jsx:After Effects error: File “mamoworld.json” is not a valid file type for import."
Trying this out ... it keeps giving me "Error at line 497 of ~/Downloads/mamoworldjson_1_0_000/mamoworldJSON.jsx:After Effects error: File “mamoworld.json” is not a valid file type for import."
Trying this out ... it keeps giving me "Error at line 497 of ~/Downloads/mamoworldjson_1_0_000/mamoworldJSON.jsx:After Effects error: File “mamoworld.json” is not a valid file type for import."
Seems to work in 2018 but not 2017 ... is that the issue? (Cuz "compatibility" tab above says "CC 2018, CC 2017")
Oh, yes, you are right. I just did some tests and in deed 2017 does not yet support json data import. I updated the compatibility information for mamoworldJSON now.
So im following along the tutorial and I keep getting "Error at line 4 in property 'Source Text' of layer 1 ('2000') in comp '04-Info-Box'. Unterminated string constant." whenever I try to connect Source text to json. So I'm assuming that theres a quotation missing but I haven't touched the code. Thank You!
does this error only happen after you changed the json file? If so, does the json file data consist of valid json data (does it validate here: https://jsonlint.com/ ?).
Does this only happen if the text contains special symbols (like Japanese or Arabic text)?
If you still have the issue, could you open a support ticket here
do you have any special unicode characters in your json? Does it help if you edit the file with a different text editor? I noticed some strange behavior when doing it with ExtendScript Toolkit, sometimes.
Also sounds like you should report this as a bug to Adobe:
I wanted to created a template that had the text layers named "record 01" "record 02" etc. Running the script created a Json file ok but straight away AE throws up a parsing error/ invalid JSON file and crashes. Running CS2018 btw.
The line01 part produces a name as Record 01\r even though the text laxyer is only labeled Record 01, Record 02 etc
the /r causes the crash. removing it manually allows AE to import. However as the error occurs during the script the expression part is lost and nothing is written.
thank you for reporting this. I just did a few tests and can confirm that I see the same error on CC2018, but on CC2019 it is working fine. So it seems that Adobe has fixed this json parsing issue already. Also in CC2018 the error occurs ONLY if the text of the text layer contains a newline at the end of the text.
If you need to work with CC2018 I recommend that you make sure that the text you enter does not end with a newline. If you enter "return" at the end of the text of a Ae layer, the newline is not visibile - i.e. the bounding box of the text does not show the new line you started unless you start adding any nonempty characters to this line - but it is still there and hence will end up in the json.
I wanted to created a template that had the text layers named "record 01" "record 02" etc. Running the script created a Json file ok but straight away AE throws up a parsing error/ invalid JSON file and crashes. Running CS2018 btw.
The line01 part produces a name as Record 01\r even though the text laxyer is only labeled Record 01, Record 02 etc
the /r causes the crash. removing it manually allows AE to import. However as the error occurs during the script the expression part is lost and nothing is written.
Also in CC2018 the error occurs ONLY if the text of the text layer contains a newline at the end of the text.
If you need to work with CC2018 I recommend that you make sure that the text you enter does not end with a newline. If you enter "return" at the end of the text of a Ae layer, the newline is not visibile - i.e. the bounding box of the text does not show the new line you started unless you start adding any nonempty characters to this line - but it is still there and hence will end up in the json.
Cheers,
Mathias
Can't upgrade to 2019 ATM as Work's custom program and plugins is only supported on Capitan OS, 2019 wont install on that. So stuck with 2018 for now. Thanks for the info about the return line and to avoid it with 2018.
i'm pretty new at this. Should the mamoworld json file be imported into the project before would open the panel. I get a message "please select at least one
property"
I think the 1st tutorial is missing a step on how to setup the comp to make the panel work.
there is no need to create or import the mamoworldjson file - the script does all of that for you.
Your error sounds like you didn't select the property that you want to connect to the json document. If you want to connect a text, please make sure to do not only select the text layer, but select the actual source text property of the text layer (watch closely at 1:24 in the first tutorial).
i'm pretty new at this. Should the mamoworld json file be imported into the project before would open the panel. I get a message "please select at least one
property"
I think the 1st tutorial is missing a step on how to setup the comp to make the panel work.
Je rencontre actuellement un problème après avoir bien paramétrer mon projet et testé qu'il fonctionne after me renvoie "mamoworld.json" n'est pas un fichier json valide. S'il contient une synthaxe JavaScript, changer son extension en .jsx, puis réimportez ou remplacez le métrage.
Je rencontre actuellement un problème après avoir bien paramétrer mon projet et testé qu'il fonctionne after me renvoie "mamoworld.json" n'est pas un fichier json valide. S'il contient une synthaxe JavaScript, changer son extension en .jsx, puis réimportez ou remplacez le métrage.
Je rencontre actuellement un problème, lors de l'export il ne prend pas en compte mon changement de texte du fichier Json ? Manque t'il quelque chose de mon côté ?
this sounds like a bug in the After Effects JSON feature. Does it help if you right click on the json file in your Ae project panel and choose "Reload Footage"? It might also help to purche the memory and disk cache.
Je rencontre actuellement un problème, lors de l'export il ne prend pas en compte mon changement de texte du fichier Json ? Manque t'il quelque chose de mon côté ?
this sounds like a bug in the After Effects JSON feature. Does it help if you right click on the json file in your Ae project panel and choose "Reload Footage"? It might also help to purche the memory and disk cache.
Je rencontre actuellement un problème, lors de l'export il ne prend pas en compte mon changement de texte du fichier Json ? Manque t'il quelque chose de mon côté ?
Merci,
Non je me retrouve toujours avec le même problème, j'ai vidé le cache ainsi que recharger le métrage
Sur mon visualiseur le texte est quand même le bon, seulement au rendu qu'il ne change pas
That's really strange! Please contact Adobe support, since if it shows up in the viewer but not in rendered files, it is definitely an issue at Adobe's end. Are you using the most recent version of Ae? I think there have been some JSON related bug fixes during the last updates.
this sounds like a bug in the After Effects JSON feature. Does it help if you right click on the json file in your Ae project panel and choose "Reload Footage"? It might also help to purche the memory and disk cache.
Je rencontre actuellement un problème, lors de l'export il ne prend pas en compte mon changement de texte du fichier Json ? Manque t'il quelque chose de mon côté ?
Merci,
Non je me retrouve toujours avec le même problème, j'ai vidé le cache ainsi que recharger le métrage
Sur mon visualiseur le texte est quand même le bon, seulement au rendu qu'il ne change pas
in this tread, I just found a hint that Media Encoder works better, if the json file is also a layer in the comp and not just a footage item in the project:
Does it work better, if you drag the mamoworld.json file from the project panel into your timeline? When the json file is a layer in your comp, you get a warning each time the structure of the file changes (but not if only the content changes) and maybe Media Encoder deals more properly with it.
this sounds like a bug in the After Effects JSON feature. Does it help if you right click on the json file in your Ae project panel and choose "Reload Footage"? It might also help to purche the memory and disk cache.
Je rencontre actuellement un problème, lors de l'export il ne prend pas en compte mon changement de texte du fichier Json ? Manque t'il quelque chose de mon côté ?
Merci,
Non je me retrouve toujours avec le même problème, j'ai vidé le cache ainsi que recharger le métrage
Sur mon visualiseur le texte est quand même le bon, seulement au rendu qu'il ne change pas
I included Mamoworld.json in there, at the top of all layers, then at the bottom - no luck.
I really wonder what's wrong. Same as the person commenting: it works if I only render with AE (but really not my workflow unfortunately). Are you guys able to make it work within AME?
in this tread, I just found a hint that Media Encoder works better, if the json file is also a layer in the comp and not just a footage item in the project:
Does it work better, if you drag the mamoworld.json file from the project panel into your timeline? When the json file is a layer in your comp, you get a warning each time the structure of the file changes (but not if only the content changes) and maybe Media Encoder deals more properly with it.
this sounds like a bug in the After Effects JSON feature. Does it help if you right click on the json file in your Ae project panel and choose "Reload Footage"? It might also help to purche the memory and disk cache.
Je rencontre actuellement un problème, lors de l'export il ne prend pas en compte mon changement de texte du fichier Json ? Manque t'il quelque chose de mon côté ?
Merci,
Non je me retrouve toujours avec le même problème, j'ai vidé le cache ainsi que recharger le métrage
Sur mon visualiseur le texte est quand même le bon, seulement au rendu qu'il ne change pas
if it works when rendering inside Ae but not when rendering with AME, then only the After Effects team can fix this. mamoworldJSON just automates the process for you to create the json file and the expressions, but if the json feature of Ae itself has bugs, then only Adobe can change that. Please file a bug report at https://www.adobe.com/products/wishform.html
the more people complain, the quicker Adobe will address this issue.
I included Mamoworld.json in there, at the top of all layers, then at the bottom - no luck.
I really wonder what's wrong. Same as the person commenting: it works if I only render with AE (but really not my workflow unfortunately). Are you guys able to make it work within AME?
i cannot use the linear function. When i connect the y position with the json data it automatically gives that variable below.var result = mamoworldJSONValue("temperature line.0")
In the tutorial 'var result =' doesn't exist. I used 'result' as the variable and apply the linear function but it didn't work.I tried in many other ways but i couldn't apply the linear function.Is there something that i'm missing or is it because of the update?
We had to add the "var result =
" in newer versions of mamoworldJSON, in order to stay compatible with the
new Ae expressions engine. The code for the linear expression must be a
little bit different: You need to add the "var result =" before the
linear, so the expression looks like this:
var temperature = mamoworldJSONValue("temperature line.0");
var result = linear(temperature,-10,40,250,50);
If anybody else is reading this, Dogus is talking about modifying the expression as described here:
i cannot use the linear function. When i connect the y position with the json data it automatically gives that variable below.var result = mamoworldJSONValue("temperature line.0")
In the tutorial 'var result =' doesn't exist. I used 'result' as the variable and apply the linear function but it didn't work.I tried in many other ways but i couldn't apply the linear function.Is there something that i'm missing or is it because of the update?
all that mamoworldJSON does is using the native JSON support of After Effects. So if it does not work with command line render, it is a bug or limitation of After Effects itself. I am not aware of such a limitation, but please file a bug report to the Adobe team here
all that mamoworldJSON does is using the native JSON support of After Effects. So if it does not work with command line render, it is a bug or limitation of After Effects itself. I am not aware of such a limitation, but please file a bug report to the Adobe team here
Everything works fine in the AE, but it breaks using aerender command line render. Is that a limitation with mamoworld?
after digging deeper on it, i realized the json file has to be added to the comp in order for it to work under aerender's commandline render. mamoworld is working perfectly after all. your script is awesome.
after digging deeper on it, i realized the json file has to be added to the comp in order for it to work under aerender's commandline render. mamoworld is working perfectly after all. your script is awesome.
Hi! Love what this is helping me achieve. Wondering if it can let me connect to an array - example being weather data - can we connect to [3] in an array called "daily"? Looks like below - array has 7 items, all with repeating info.
Hi! Love what this is helping me achieve. Wondering if it can let me connect to an array - example being weather data - can we connect to [3] in an array called "daily"? Looks like below - array has 7 items, all with repeating info.
"generatedBy": "mamoworldJSON",
"Temp Record": {
"01": "Record 01",
"Line01": "Record 01\r"
}
}
PS: I am rendering in CC19 using "Add to Media Encoder" if this matters.