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

#include Doesn't work in AE CS4

New Here ,
Mar 13, 2009 Mar 13, 2009
Anyone have a work around for the "#include" javascript in CS4. Used an external file to drive some text in my comp in CS3, but the same script doesn't work in CS4. I even downloaded a comp from the Graymachine.com website to check and it didn't work either.

I'm on a MAC, by the way.
TOPICS
Expressions
4.1K
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
LEGEND ,
Mar 16, 2009 Mar 16, 2009
No idea, but since this is an unofficial "hack" anyway, you cannot blame anyone. This feature may have been removed. As a minor, look whether your permissions for scripts in the prefs are set to read and write files...

Mylenium
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 ,
Mar 24, 2009 Mar 24, 2009
I use Scripts Panels, so the javascript selection is checked already to read and write files. Although, I can appreciate the start with the obvious first.
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
Mar 28, 2009 Mar 28, 2009
instead of #include you can try to use the $.evalFile(path of your file).
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
Guest
May 04, 2009 May 04, 2009

Sebastian, that took care of the problem for me. Text files are now accessed and text is replaced. Thanks for the tip!

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 ,
Jun 17, 2009 Jun 17, 2009

Does anyone know if you can link to an excel spreadsheet?  I've got an expression setup to read from a text file but would love to link to a spreadsheet.

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 ,
Jun 17, 2009 Jun 17, 2009
LATEST

The problem is that whatever is in the file has to be valid JavaScript syntax. I think it would be tricky to get that to work with a bunch of spreadsheet data.

Dan

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