// Comments can produce error

Moderators: Disciple, zlovatt

Post Reply
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

The following behavior has been experienced on a Mac (10.5) with AE CS4.

It seems that not adding a newline after a comment (e.g. "// my comment") produces an error ("No closing brace found").
In other words a // comment must not terminate the expression field.

For example, this simple opacity expression will not work:

Code: Select all

random(100); // this is a comment
but this one will:

Code: Select all

random(100); // this is comment

(note the additional newline)

Using "/* this is a comment */" commenting style works in both cases.
Post Reply