Search found 22 matches
- December 2nd, 2016, 5:27 am
- Forum: Scripts Discussion
- Topic: Run an explorer windows from After effects
- Replies: 7
- Views: 16282
Re: Run an explorer windows from After effects
I don't work on a windows machine, but after searching a bit it seems that you will get the desired result by removing "/select,".
- December 2nd, 2016, 5:06 am
- Forum: Scripts Discussion
- Topic: Run an explorer windows from After effects
- Replies: 7
- Views: 16282
Re: Run an explorer windows from After effects
I usually just use a File object, which will be converted to string by this code:
Or strings that are created by accessing file.fsName somewhere else in the code.
Code: Select all
if ( filePath instanceof File ) {
filePath = filePath.fsName;
}
- December 2nd, 2016, 4:39 am
- Forum: Scripts Discussion
- Topic: Run an explorer windows from After effects
- Replies: 7
- Views: 16282
Re: Run an explorer windows from After effects
This is what I usually use, It should work on both windows and mac: function revealFile(filePath) { if ( filePath instanceof File ) { filePath = filePath.fsName; } var command = "open -R"; if ($.os.indexOf("Win") != -1) { command = "Explorer /select,"; } arg = "\&q...
- November 29th, 2016, 2:44 pm
- Forum: Scripts Discussion
- Topic: Camera Auto-Orientation Off
- Replies: 8
- Views: 16087
Re: Camera Auto-Orientation Off
The AutoOrientType object stores the ID for every type of value you can assign to autoOrient. Here is an example of how to use it: var myCamera = app.project.activeItem.layers.addCamera("theCamera", [0,0]); myCamera.autoOrient = AutoOrientType.NO_AUTO_ORIENT; This will set the autoOrient t...
- November 29th, 2016, 1:06 pm
- Forum: Scripts Discussion
- Topic: Camera Auto-Orientation Off
- Replies: 8
- Views: 16087
Re: Camera Auto-Orientation Off
You can use the AutoOrientType object, see the docs for more info: http://docs.aenhancers.com/avlayer/#avlayer-autoorient
- November 10th, 2016, 7:54 am
- Forum: Scripts Discussion
- Topic: Import and Export Text Layer Advice
- Replies: 6
- Views: 12608
Re: Import and Export Text Layer Advice
The problem is the line: if ( foundlines % 2 === 1 ) { Which will return true for every other line of text, this works for the timecode because they are always in a set of two, but not for the text. Since the insertCurrenttext function set currentText to null when the text gets inserted into the te...
- November 9th, 2016, 3:57 pm
- Forum: Scripts Discussion
- Topic: Import and Export Text Layer Advice
- Replies: 6
- Views: 12608
Re: Import and Export Text Layer Advice
That is definitely doable. Here is one way to do it: var currentlayer = null; var foundTimecodes = 0; var foundlines = 0; var currentText = null; var text, inPoint, outPoint, tc; while (!myFile.eof) { text = myFile.readln(); // Skip empty lines if ( lineIsEmpty(text) ) { continue...