Search found 22 matches

by runegan
December 2nd, 2016, 5:27 am
Forum: Scripts Discussion
Topic: Run an explorer windows from After effects
Replies: 7
Views: 16160

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,".
by runegan
December 2nd, 2016, 5:06 am
Forum: Scripts Discussion
Topic: Run an explorer windows from After effects
Replies: 7
Views: 16160

Re: Run an explorer windows from After effects

I usually just use a File object, which will be converted to string by this code:

Code: Select all

   if ( filePath instanceof File ) {
      filePath = filePath.fsName;
   }
Or strings that are created by accessing file.fsName somewhere else in the code.
by runegan
December 2nd, 2016, 4:39 am
Forum: Scripts Discussion
Topic: Run an explorer windows from After effects
Replies: 7
Views: 16160

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...
by runegan
November 29th, 2016, 2:44 pm
Forum: Scripts Discussion
Topic: Camera Auto-Orientation Off
Replies: 8
Views: 15953

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...
by runegan
November 29th, 2016, 1:06 pm
Forum: Scripts Discussion
Topic: Camera Auto-Orientation Off
Replies: 8
Views: 15953

Re: Camera Auto-Orientation Off

You can use the AutoOrientType object, see the docs for more info: http://docs.aenhancers.com/avlayer/#avlayer-autoorient
by runegan
November 10th, 2016, 7:54 am
Forum: Scripts Discussion
Topic: Import and Export Text Layer Advice
Replies: 6
Views: 12495

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...
by runegan
November 9th, 2016, 3:57 pm
Forum: Scripts Discussion
Topic: Import and Export Text Layer Advice
Replies: 6
Views: 12495

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...