Daniel Crooks
Forum Replies Created
-
Daniel Crooks
April 28, 2011 at 6:01 am in reply to: strange syntax error with bracket character onlythanks Dan, really appreciate it !
-
Daniel Crooks
April 28, 2011 at 4:42 am in reply to: strange syntax error with bracket character onlysorry, my bad. I copied the code from the email not the cow site… doh.
the (/\(/) worked !!! (even if it does look like ascii art !)thanks, Dan
but I’m still not sure why the regular expression couldn’t handle the “(” when it could handle everything else ?
-
Daniel Crooks
April 28, 2011 at 12:47 am in reply to: strange syntax error with bracket character onlystill no joy !
I thought perhaps there was some kind of escape needed but no, even with the \ in there I still get the syntax error, swap out the ( for an other character and it works… bizarre !?
-
Daniel Crooks
April 28, 2011 at 12:20 am in reply to: strange syntax error with bracket character onlyDan,
thanks for checking, I can confirm the closing bracket works but try searching for an opening bracket… “(” like this…lineData =”67890()-=”;
if (lineData.search(“(“) != -1) alert (“yay”) else alert (“boo”);I get “unable to execute script at line 2. Syntax error”
???
cheers../daniel
-
hi Jamie
I’d be very keen to hear if you crack the problem
I’m struggling with something similar.
I want to convert the orientation values of an AE camera back into traditional “pan & tilt” values.cheers../Daniel
-
Daniel Crooks
December 17, 2010 at 10:41 am in reply to: text file export script with strange end of line characterand finally… just in case anyone searches there way here in the future, the resolution to the problem was
myfile.lineFeed = “windows”
don’t know why it didn’t work first time round, maybe i forgot to save between edits, but anyway it works a treat.many props to Dan Ebberts and Paul Tuersley
cheers../daniel
-
Daniel Crooks
December 15, 2010 at 6:57 am in reply to: text file export script with strange end of line characterhi Dan
unfortunately I don’t have the script with me right now, but the external file writing code I borrowed from Paul’s AEtoC4D script which is here:
https://www.btinternet.com/~paul.tuersley/scripts/pt_AEtoC4D_v1.4.zip
that script is also what I have been using to test your suggestions so i figure it’s a safe bet to work with.cheers../daniel
-
Daniel Crooks
December 15, 2010 at 4:52 am in reply to: text file export script with strange end of line characterstill no luck with “CP1252” …
-
Daniel Crooks
December 15, 2010 at 4:03 am in reply to: text file export script with strange end of line characterhi Dan, thanks for the reply.
I tried the “Unix” linefeed but no luck, (also tried lowercase “unix” ) but the non-character is still being inserted into one very long line of text. The one thing I did notice from a “correct” file created in Notepad is that it has a Unicode (UTF-8) encoding. I tried to save as one of text files in textedit with this encoding but it didn’t make any difference either…
one last note, though I’m generating the file from AE on a Mac it only needs to be readable on a PC.cheers../daniel
-
for anyone who has searched there way here, this from Mylenium over at the adobe forums… bummer.
“You simply can’t. Network path resolution is completely different between both operating systems which relates to how the generally mount external resources within their normal file tree (Mac) vs. as independent virtual devices (PC). Nothing you can change or influence. You could use specific Mac emulation software on the PC end, though, and exclusively run the server in Mac mode. The emulation would then take care to remap file paths in a Mac-friendly way which would take care of your issue, presumably.
Mylenium”