Search found 11 matches

by Athor
February 2nd, 2010, 7:09 pm
Forum: Scripts Discussion
Topic: Reading the (text) contents of a GIF
Replies: 5
Views: 13727

Re: Reading the (text) contents of a GIF

Yea I have read over it. I have tried to read it with a bunch of different encodings but get the same result each time.
by Athor
February 1st, 2010, 8:48 pm
Forum: Scripts Discussion
Topic: Reading the (text) contents of a GIF
Replies: 5
Views: 13727

Re: Reading the (text) contents of a GIF

Thanks for testing it :D Atleast it narrows down the issue. I've been testing it a little more and if i 'seek' to a specific byte number before reading the data, I can read parts of it in. E.g. If I seek to byte 14 I get a portion of text up until it encounters white space. It seems whenever there i...
by Athor
January 31st, 2010, 9:50 pm
Forum: Scripts Discussion
Topic: Reading the (text) contents of a GIF
Replies: 5
Views: 13727

Re: Reading the (text) contents of a GIF

If i copy the data to a txt file, and remove the "GIF89aØ" at the beginning, the rest of the data reads in fine.

So I guess javascript is getting stuck on the "GIF89aØ". Any ideas?
by Athor
January 31st, 2010, 4:33 pm
Forum: Scripts Discussion
Topic: Reading the (text) contents of a GIF
Replies: 5
Views: 13727

Reading the (text) contents of a GIF

Hi guys, I am working on a script to basically insert a gif as metadata into a fx preset file. If you open Adobe bridge and browse to the After effects text presets you will see that you can click on a preset and in the preview there is an animated GIF. So I am attempting to do this for custom prese...
by Athor
January 14th, 2010, 2:59 pm
Forum: Scripts Discussion
Topic: System call not returning result
Replies: 7
Views: 12540

Re: System call not returning result

Hey Lloyd,

That command is still not returning the job id. I have managed to get it working by doing the whole write a batch file to disk and run it that way.

Thanks for the help :D
by Athor
January 13th, 2010, 8:00 pm
Forum: Scripts Discussion
Topic: System call not returning result
Replies: 7
Views: 12540

Re: System call not returning result

Celebrated too soon =(

It seems that by not using cmd.exe at the beginning the command gets cut off. The same thing happens when I paste it into the Run box, there must be a limit on characters and it gets cut half way through the path to aerender.

So back to square one I guess.
by Athor
January 13th, 2010, 7:43 pm
Forum: Scripts Discussion
Topic: System call not returning result
Replies: 7
Views: 12540

Re: System call not returning result

Well I seem to have fixed it. I removed the cmd.exe /c from the beginning of the line, just running the command from qbsub and it works. I now get the job no. returned.

Not really sure why that works but hey, I'm not complaining :p
by Athor
January 13th, 2010, 7:36 pm
Forum: Scripts Discussion
Topic: System call not returning result
Replies: 7
Views: 12540

Re: System call not returning result

I have tried that and variations of that and still get the same result. Could it be after effects has an issue with the length of the command or something? If i put a simple dir command in there it works fine.
by Athor
January 13th, 2010, 5:39 pm
Forum: Scripts Discussion
Topic: System call not returning result
Replies: 7
Views: 12540

System call not returning result

Hey guys, I have run into a bit of a problem with the system.callSystem command. I have used it before and its worked fine, but what I am trying to do now is use it to run a command to submit my after effects project to the render queue (qube). The command is: qbsub --name afterEffectsTest2 --cpus 1...
by Athor
December 6th, 2009, 11:27 pm
Forum: Scripts Discussion
Topic: Importing a file - path not valid
Replies: 11
Views: 18629

Re: Importing a file - path not valid

Well I figured it out - the result from cmd prompt seemed to put a character at the end of the file name. When I escaped the string there was a %0D at the end. So I have just used this code to get around it: escapedFile = escape(sequences[f]); importFile = escapedFile.slice(0,escapedFile.length-3); ...
by Athor
December 6th, 2009, 7:49 pm
Forum: Scripts Discussion
Topic: Importing a file - path not valid
Replies: 11
Views: 18629

Importing a file - path not valid

Alright I can finally post my problems here! (Waited about 4 months for the activation email :cry: ) I have written a file browser for the production I'm currently working on. It allows the compositors to click on the episode, sequence, shots and render version to quickly import the renders. http://...