Search found 41 matches
- March 14th, 2011, 2:51 pm
- Forum: Scripts Discussion
- Topic: system.callSystem - multiple copies
- Replies: 1
- Views: 6688
system.callSystem - multiple copies
Hi, I am trying to use the system.callSystem in one of my scripts and am hitting an issue. The app that I am calling opens a new copy of the app every time call the system command, ending up with multiple copies of the app open. What I want is to switch to the app if it is already open, basically mi...
- January 3rd, 2011, 7:27 pm
- Forum: Scripts Discussion
- Topic: file Object
- Replies: 3
- Views: 8513
Re: file Object
Yep, I just put the test.txt in there as an example.
It was the "new" that I was missing.
Thanks once again Dan.
Phil
It was the "new" that I was missing.
Thanks once again Dan.
Phil
- January 3rd, 2011, 5:04 pm
- Forum: Scripts Discussion
- Topic: file Object
- Replies: 3
- Views: 8513
file Object
Hi, I have been using a dialog box to open a file and read from it. var f=File.openDialog("select a file"); var ok=f.open("r"); This works great but now I want to have the filename in a variable instead of using a dialog box. I thought it would be something like this below, var f...
- December 28th, 2010, 9:33 pm
- Forum: Scripts Discussion
- Topic: Searching for a string in an external file
- Replies: 15
- Views: 25607
Re: Searching for a string in an external file
Interestingly, while ExtendedScript crashes when it reaches the eof. AE doesn't (if the script is ran from the AE scripts menu).
So I think that all is good (for now).
Thanks.
Phil
So I think that all is good (for now).
Thanks.
Phil
- December 28th, 2010, 6:02 pm
- Forum: Scripts Discussion
- Topic: Searching for a string in an external file
- Replies: 15
- Views: 25607
Re: Searching for a string in an external file
Bummer.... although it works if it can find the string, if it cannot find the string it hangs Extended Script. This is what I have, I have also attached 2 files, one that works and one that crashes the system (because it doesn't have the match string). Any other thoughts? Thanks. Phil var QT = File....
- December 28th, 2010, 4:18 pm
- Forum: Scripts Discussion
- Topic: Searching for a string in an external file
- Replies: 15
- Views: 25607
Re: Searching for a string in an external file
Great, I have it working. I tried the utf-8 encoding and it matched the string but still hung ExtendScript. I figured it must be something after my string that was crashing it so I simply put a break in the loop after it found my string and that solved the problem. I got the same result using "...
- December 28th, 2010, 11:11 am
- Forum: Scripts Discussion
- Topic: Searching for a string in an external file
- Replies: 15
- Views: 25607
Re: Searching for a string in an external file
The info is only available in a QT ref movie. One thought I just had was this... WhenI strip the file down in textedit then my script works fine, so I'm guessing extendedScript fails while reading all the binary stuff. I just tried using the seek function to seek backwards from the eof, I was hopefu...
- December 27th, 2010, 5:23 pm
- Forum: Scripts Discussion
- Topic: Searching for a string in an external file
- Replies: 15
- Views: 25607
Re: Searching for a string in an external file
It tried the readln function and it worked great on my stripped down file but the file that still has the junk at the front still seems to crash. The file was created from QT Player, basically it's a reference movie. This is the code I cam up with. Any other ideas? var QT = File.openDialog ("Pl...
- December 27th, 2010, 5:05 pm
- Forum: Scripts Discussion
- Topic: Searching for a string in an external file
- Replies: 15
- Views: 25607
Re: Searching for a string in an external file
Thanks Llloyd, I presume I would need set up a loop to loop through the file line by line?
I'll give it a go.
Phil
I'll give it a go.
Phil
- December 27th, 2010, 4:58 pm
- Forum: Scripts Discussion
- Topic: Searching for a string in an external file
- Replies: 15
- Views: 25607
Re: Searching for a string in an external file
It's binary data so I'm unsure how I would read a line at a time, isn't a line determined by a carriage return?
I just did a test and cut most of the "jink" out of my file and ran the script and it worked so it must be a problem reading the whole file at once.
Thanks.
Phil
I just did a test and cut most of the "jink" out of my file and ran the script and it worked so it must be a problem reading the whole file at once.
Thanks.
Phil
- December 27th, 2010, 1:48 pm
- Forum: Scripts Discussion
- Topic: Searching for a string in an external file
- Replies: 15
- Views: 25607
Re: Searching for a string in an external file
Thanks Llloyd. I tried it but the match is returning NULL which I presume means it cannot find the string. Extended script also hangs after running the script. I'm wondering if it is an issue because I am loading the entire file into a variable (this file is about 60k). Does it mater that most of th...
- December 22nd, 2010, 4:44 pm
- Forum: Scripts Discussion
- Topic: Searching for a string in an external file
- Replies: 15
- Views: 25607
Searching for a string in an external file
I am trying to figure out how to search an external file for a string then display the string and everything after it until it finds an "$" I can open the file for reading and through power of the Google, I found I search for a string in the file but am at a loss on how to then display the...
- February 3rd, 2009, 11:24 am
- Forum: General Scripts Library
- Topic: AE3D EXPORT - AE scene to Maya, Max, and Lightwave
- Replies: 100
- Views: 759380
Re: AE3D EXPORT - AE scene to Maya, Max, and Lightwave
Sorted it... It was a Maya issue.
Thanks.
Phil
Thanks.
Phil
- February 3rd, 2009, 11:24 am
- Forum: Announcements
- Topic: AE3D EXPORT - AE scene to Maya, Max, and Lightwave
- Replies: 78
- Views: 279813
Re: AE3D EXPORT - AE scene to Maya, Max, and Lightwave
Sorted it... It was a Maya issue.
Thanks.
Phil
Thanks.
Phil
- February 2nd, 2009, 1:44 pm
- Forum: General Scripts Library
- Topic: AE3D EXPORT - AE scene to Maya, Max, and Lightwave
- Replies: 100
- Views: 759380
Re: AE3D EXPORT - AE scene to Maya, Max, and Lightwave
The script is great but I'm having an issue importing my camera into Maya (2009) The .ma file opens great but it says the scene is 24fps when my comp is 29.97. If I change it in Maya to 29.97, it works but the camera is slightly off when I bring it bac into AE due to Maya interpolating between keyfr...