Search found 22 matches
- May 30th, 2010, 5:07 pm
- Forum: Scripts Discussion
- Topic: Creating a new file
- Replies: 8
- Views: 22615
Re: Creating a new file
I was not aware of the carriage return value "\r" I always used the "\n" value for new line. Do you know the difference or are they the same.
- May 30th, 2010, 9:32 am
- Forum: Scripts Discussion
- Topic: Creating a new file
- Replies: 8
- Views: 22615
Re: Creating a new file
OOOh Snap!! worked again...thanks a lot the problem was within the write call in the file.open("w") I was trying to call it the way it is represented in the scripting reference without quotes. The open command is actually what creates the file if it doesn't exist. Why they don't include ex...
- May 29th, 2010, 10:02 pm
- Forum: Scripts Discussion
- Topic: Script UI adding additional buttons
- Replies: 5
- Views: 19613
Re: Script UI adding additional buttons
Probably something like that...learning as I go...I just wish there was something more comprehensive like the mel script command reference or the unreal scripting wiki...
- May 29th, 2010, 1:31 pm
- Forum: Scripts Discussion
- Topic: Script UI adding additional buttons
- Replies: 5
- Views: 19613
Re: Script UI adding additional buttons
Amazing thanks man... had to alter some of the script to get it working but thats probably due to my inexperience or understanding of what you wrote....but I definitely have a handle on the whole multiple button thing I am sure this is really generic but this is what I ended up with. function NAMETW...
- May 29th, 2010, 12:27 pm
- Forum: Scripts Discussion
- Topic: Creating a new file
- Replies: 8
- Views: 22615
Re: Creating a new file
Yep tried that....doesn't work.... I think you can't use regular backslashes either...has to be either double \\ or invert / to work I think the code you gave me just creates the object....but I found something file.open() that says if you use the write command and no file exists then it creates it ...
- May 28th, 2010, 11:55 am
- Forum: Scripts Discussion
- Topic: Creating a new file
- Replies: 8
- Views: 22615
Creating a new file
Was wondering how I would go about creating a new file through AE script....Like something generic like a text file? I know I declare the object var myFile = ("c:\\newFile\\MyFile.txt"); Calling this I can successfully change, copy, rename, delete the file if it exists....but how do I crea...
- May 28th, 2010, 11:52 am
- Forum: Scripts Discussion
- Topic: Script UI adding additional buttons
- Replies: 5
- Views: 19613
Script UI adding additional buttons
So I am trying to learn this myself and using the examples in the script reference I am using this snippet of code in the ScriptUI panels folder to generate a dockable panel with a button. function createUI(thisObj) { var myPanel = thisObj ; myPanel.add("button", [10, 10, 100, 30], "T...
- May 28th, 2010, 11:33 am
- Forum: Scripts Discussion
- Topic: ScriptUI Panels/dockable palette won't show controls
- Replies: 2
- Views: 11713
Re: ScriptUI Panels/dockable palette won't show controls
did you ever solve this? I am altering the demo pallette script to do a script launcher and I get the same....I can get one button to load based off of what I have read from the scripting guide but I can't get two buttons on the panel. I wish someone would answer this for us
- May 20th, 2010, 6:14 pm
- Forum: Scripts Discussion
- Topic: file list array
- Replies: 2
- Views: 9381
Re: file list array
This worked... I am using it like this MyFolder= new Folder("//isilon/data/departments/comp/AE_Scripts/Startup/Prefs/"); MyFile = MyFolder.getFiles("*.jsx"); MyScript = MyFile[0]; MyScript.copy("C:\\Program Files (x86)\\Adobe\\Adobe After Effects CS4\\Support Files\\Scripts\...
- May 20th, 2010, 6:14 pm
- Forum: Scripts Discussion
- Topic: Returning a value from a wildcard
- Replies: 4
- Views: 11681
Re: Returning a value from a wildcard
Yeah that fixed two things for me ...the wildcard and the returning an array of files inside a folder....I just parsed out the one I wanted. This is a deployment script that will copy a preferences script from the server to the artists local machine so all AE artists upon opening the program will ha...
- May 20th, 2010, 2:50 pm
- Forum: Scripts Discussion
- Topic: Returning a value from a wildcard
- Replies: 4
- Views: 11681
Re: Returning a value from a wildcard
Thank you so much and for your other replies ...worked great
- May 19th, 2010, 5:07 pm
- Forum: Scripts Discussion
- Topic: Returning a value from a wildcard
- Replies: 4
- Views: 11681
Returning a value from a wildcard
I would like to look inside a directory and return the value of that directory using a wild card
I.E.
Myfile = new File("c:\\User\\*.jsx");
Is there any way to get something similar to this to return the actual name of whatever file is in the folder specified?
I.E.
Myfile = new File("c:\\User\\*.jsx");
Is there any way to get something similar to this to return the actual name of whatever file is in the folder specified?
- May 19th, 2010, 5:00 pm
- Forum: Scripts Discussion
- Topic: file list array
- Replies: 2
- Views: 9381
file list array
How do I query a directory and return a list array for the files in that directory?
- May 11th, 2010, 1:19 am
- Forum: Scripts Discussion
- Topic: Copying a file from a remote or server location
- Replies: 2
- Views: 9121
Re: Copying a file from a remote or server location
Ok ...so another one down. for those of you interested. When you declare an instance of the file object you want to copy you also need to state the file name in the target path to where you will be copying the file to ... for instance MyFile = File.("//Servername/data/MyFile.txt"); MyFile....
- April 27th, 2010, 9:59 am
- Forum: Scripts Discussion
- Topic: Copying a file from a remote or server location
- Replies: 2
- Views: 9121
Copying a file from a remote or server location
I would like to copy a file from a server share to the local drive. I can already copy a file from drive to drive and folder to folder locally. In the java script toolkit it makes reference to the path like this If a path name starts with two slashes (or backslashes on Windows), the first element re...