How to get the path of the checkpoint of the layer file?

Hi all:

the layer has that one video file, is there a way to get the full path of the file? I read the SDK from the AE file, but I can't find the way to get the path of the layer file.le ITEMSUITE8 AEGP_GetTypeName/AEGP_GetItemName/AEGP_GetItemComment, but don't have AEGP_GetItemFilePath.any suggestion will be thankful!

I think that you need to access the memory behind the handle first:

AEGP_MemHandle pathH;

A_UTF16Char * filePath;

ERR (suites. FootageSuite5()-> AEGP_GetFootagePath (footageH, 0, AEGP_FOOTAGE_MAIN_FILE_INDEX, & pathH));

ERR (suites. MemorySuite1()-> AEGP_LockMemHandle (file_pathH,reinterpret_cast (& filePath)));

now the path must be accessible via filePath!

ERR (suites. MemorySuite1()-> AEGP_UnlockMemHandle (pathH));

ERR (suites. MemorySuite1()-> AEGP_FreeMemHandle (pathH));

Tags: After Effects

Similar Questions

  • How to get the mov files to play on ms media player

    Hello how is what we all mov files by our cameras when we're doing videos, that I can up load on youtube very well, but my Media Player will not play. Please don't tell me about codecs unless you include the link to get the mov files. Thank you

    Right-click on the mov file and point to open with, click Windows movie maker,

    Rotation is on the top / center and Save is on the top / right.

  • How to get the bak files?

    Original title: Bak files.

    How to retrieve the bak files. They were e-mail messages that went somehow in the trash. I got the files, but they have bak next to them. Nothing I do will open to them. Thank you

    Microsoft MSDN can help, try this link.

    http://social.msdn.Microsoft.com/search/en-us?query=opening%20BAK%20Files&emptyWatermark=true&AC=5

  • How to get the current file name and & or path

    How can I get the current path or the file name?

    I have really found the answers in the net. This.Path or app.path have been proposed, but I couldn't make it work.

    Thanks in advance for your answer!

    LiveCycle Designer ARE 8.2.1.3144.1.471865

    Hello

    event.target.path.toString ();  will give the full path, including the file name.

    event.target.documentFileName.toString ();  will give the file name only.

    Good luck

    Niall

  • How to get the gif file hosted by using the Http connection?

    Hello

    I have an application that downloads animation gif from a server by using the http connection. Here is the code I use to download the image.

    try {
    
                httpConnection = (HttpConnection) Connector.open(url, Connector.READ_WRITE);            httpConnection.setRequestMethod(HttpConnection.GET);
    
                if (httpConnection.getResponseCode() == HttpConnection.HTTP_OK) {                DataInputStream dS = httpConnection.openDataInputStream();
    
                    byte[] data = new byte[dS.available()];                dS.read(data);
    
                    gifImage = (GIFEncodedImage) EncodedImage.createEncodedImage(data, 0,data.length);
    
                } else {                throw new Exception("ResponseCode:" + httpConnection.getResponseCode());            }        } catch (Exception e) {                        gifImage = null;            e.printStackTrace();        }
    

    the problem with this code is, when the gif file is 1175 bytes above, it does not load the gif.

    example:-If the gif on the server is 1500 bytes, this code retrieves only 1175 bytes.

    I think that the rest of the bytes are sent in a different package. But how to get them.

    can someone please provide a code for buffering the inputstream?

    any help is appreciated.

    Dieye

    Hmm, nobody seems to know how to do, it seems. Here's how I did it.

                httpConnection = (HttpConnection) Connector.open(url, Connector.READ_WRITE);
                httpConnection.setRequestMethod(HttpConnection.GET);
    
                int responseCode = httpConnection.getResponseCode();
                if (responseCode == HttpConnection.HTTP_OK) {
                    inputStream = httpConnection.openInputStream();
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    
                    byte[] buffer = new byte[256];
                    int len = 0, imageSize = 0;
    
                    while (-1 != (len = inputStream.read(buffer))) {
                        byteArrayOutputStream.write(buffer);
                        imageSize += len;
                    }
    
                    byteArrayOutputStream.flush();
                    byte[] imageData = byteArrayOutputStream.toByteArray();
                    byteArrayOutputStream.close();
    
                    gifImage = (GIFEncodedImage) EncodedImage.createEncodedImage(imageData, 0, imageSize);
    
  • How to get the mobileprovision file for air for ios

    I created a small application. I want to publish this .ipa file when I try to publish the ide flash asking the .moblieprovision file. How can I get this file. Is it need to BUY.

    That may have changed with CS6, but in the past, you had to buy an Apple Developer iOS development plan (they have a Mac development as well).  Visit the website of apple to http://developer.apple.com .

  • How to get the CSV file, RTF model output DATA

    Hi, Jorge

    Thanks for your help.

    as in the link you gave the model RTF can have the type of output CSV DATA but in the preview, I see only html, powerpoint, pdf, html, excel.

    How to see the result in SCV, DATA format using my RTF model do I have to do a specific design for these outputs.

    Thnaks in advance

    This is because it has been preconfigured with these outputs.
    Edit and add types of outputs more simply go to:

    1. change your report
    2. click on 'Display list' (upper right corner)
    3. click on the "output formats" (corresponding to your page layout) and
    4. check the formats (add) additional output you want your report to have.

    see you soon

    Jorge

  • How to get the jar file without knowing his name and any class on the inside?

    Hello, everyone!

    I would like to know if there is a way to get a reference programmatically in the original container without knowing his name and any class it contains. I mean by "initial pot" the pot that was called in the prompt, like this:
    java -jar jarfile.jar
    or in another way, in a graphics system. To be honest, what I really want is to get a reference to the manifest of the jar, but I know that if I can get a reference to the jar I can get a reference to its manifest file. Or if you know a way to get the manifest directly, it would also be useful. So, is there a way to do this?

    Thank you.

    Marcos

    Ah, so you want to find the calling class and get its source code.

    I managed to get the class calling on occasion, but this is probably a somewhat fragile solution. You must extend SecurityManager because getClassContext() is a protected method.

        private static class CallerFetch extends SecurityManager {
    
            public Class getCallerClass() {
                return getClassContext()[3];
            }
        }
        private static CallerFetch callerFetch =
                new CallerFetch();
    
        /**
         * Find the class of the code which called the
         * method that invokes this method.
         * @return The class of the caller's caller
         */
        public static Class getCallerClass() {
            return callerFetch.getCallerClass();
        }
    
  • How to get the $HTML_TOP file / apps

    Guy

    In fact, we work on the i-recruitment Module and must change in the form of CV according to my customer need, to change, go file resumes from as object directory mentioned to obtain and update the summary format.

    So kindly help me how to join this directory because HTML_TOP is not mentioned in the batch file that auto move in particular folder.

    Thank you

    Hello

    So kindly help me how to join this directory because HTML_TOP is not mentioned in the batch file that auto move in particular folder.

    You are not sure if I understand you correctly, but what are you referring to the $OA_HTML directory? If so, connect to the source file the application as a user applmgr env, node-level application and issue of "echo $OA_HTML" or "echo $COMMON_TOP/html.

    Thank you
    Hussein

  • How to get the external file linking in as3

    I want to open files outside different format (*.mp4, *.wmv, *.pdf, * .ppt,.doc etc.) on the click event, I try that for *.wmv but I received an error.

    --------------------------------------------------------------------------------

    package {}

    to import flash.display.SimpleButton;

    import flash.events.MouseEvent;

    import flash.net.navigateToURL;

    import flash.net.URLRequest;

    public class button click extends SimpleButton {}

    public void clickbutton() {}

    this.addEventListener (MouseEvent.CLICK, clickF);

    }

    private void clickF(e:MouseEvent):void {}

    var nc:NetConnection = new NetConnection();

    NC. Connect (null);

    var ns:NetStream = new NetStream (nc);

    videoPlayer.attachNetStream (ns);

    var listener: Object = new Object();

    listener.onMetaData = function(evt:Object):void {};

    NS.client = listener;

    NS. Play ("video_test.wmv");

    }

    }

    }

    --------------------------------------------------------------------------------

    Please tell me the correct code

    you don't need the swf file.

    you create a projection file (.exe).

    If you know users will have default settings to open the types of files and programs, you can use fscommand to open them (as long as they files are located in a subdirectory of fscommand).

    you will need to use an executable support, too: http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy

  • How to get the indesign files subfolder

    Hi experts

    How can I tell the script what I get is the subfolders but not sub sub folder or sub sub sub... folder files.

    my script like this:

    function GetFiles (theFolder) {}
    var = [] files,
    fileList = theFolder.getFiles (),
    i, file;

    for (i = 0; i < fileList.length; i ++) {}
    file = list of files [i];
    If {(instanceof file folder)
    files = files.concat (GetFiles (file));
    }
    ElseIf (file instanceof file & & file.name.match(/\.indd$/i)) {}
    files.push (file);
    }
    }

    return files;
    }

    How can it change?

    Thank you

    Respect of

    John

    Hi John,.

    Try this code...

    The Final PDF files stored in the desktop / folder PDF

    //======================================================================================
    var gScriptName = "Batch export INDD-files to PDF"; // Name of the script
    var gScriptVersion = "1.0"; // Version
    var gSet = GetSettings();
    var flag=0,files = [];
    var fileLs=[];
    CreateDialog();
    //===================================== FUNCTIONS  ======================================
    function CreateDialog() {
    var pdfPresetsList =app.pdfExportPresets.everyItem().name;
    var win = new Window("dialog", gScriptName + " - " + gScriptVersion);
    win.p = win.add("panel", undefined, "");
    win.p.alignChildren = "right";
    win.p.alignment = "fill";
    
    win.p.g = win.p.add("group");
    win.p.g.st = win.p.g.add("statictext", undefined, "PDF-presets:");
    win.p.g.ddl = win.p.g.add("dropdownlist", undefined, pdfPresetsList);
    win.p.g.ddl.selection = gSet.selectedPdfPresetIndex;
    win.p.g.ddl.preferredSize.width = 220;
    win.buttons = win.add("group");
    win.buttons.orientation = "row";
    win.buttons.alignment = "center";
    win.buttons.ok = win.buttons.add("button", undefined, "OK", {name:"ok" });
    win.buttons.cancel = win.buttons.add("button", undefined, "Cancel", {name:"cancel"});
    var showDialog = win.show();
    if (showDialog == 1) {
      gSet.selectedPdfPresetIndex = win.p.g.ddl.selection.index;
      app.insertLabel("Kas_" + gScriptName + gScriptVersion, gSet.toSource());
      Main();
    }
    }
    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------
    function Main() {
    var folder = Folder.selectDialog("Select a folder with InDesign files to export");
    if (folder == null) exit();
    var files = GetFiles(folder);
    var pdfFolder = new Folder(Folder.desktop+ "/" + "PDF");
    if (files.length == 0) {
      alert("No files to open.", gScriptName + " - " + gScriptVersion);
      exit();
    }
    if(!pdfFolder.exists)pdfFolder.create();
    //VerifyFolder(pdfFolder);
    var pdfPresets =app.pdfExportPresets.everyItem().getElements();
    var selectedPdfPreset = pdfPresets[gSet.selectedPdfPresetIndex];
    var count = 1;
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    // Progress bar -----------------------------------------------------------------------------------
    var progressWin = new Window ("window", gScriptName + " - " + gScriptVersion);
    var progressBar = progressWin.add ("progressbar", [12, 12, 350, 24], 0, files.length);
    var progressTxt = progressWin.add("statictext", undefined, "Starting exporting files");
    progressTxt.bounds = [0, 0, 340, 20];
    progressTxt.alignment = "left";
    progressWin.show();
    // Progress bar -----------------------------------------------------------------------------------
    for (var i = 0; i < files.length; i++) {
      var currentFile = files[i];
    
      try {
       var doc = app.open(currentFile, false);
       var docName = doc.name;
       // Progress bar -----------------------------------------------------------------------------------
       progressBar.value = count;
       progressTxt.text = String("Exporting file - " + docName + " (" + count + " of " + files.length + ")");
       // Progress bar -----------------------------------------------------------------------------------
       var file = new File(pdfFolder + "/" + GetFileName(docName) + ".pdf");
       if (file.exists) {
        var increment = 1;
        while (file.exists) {
         file = new File(pdfFolder + "/" + GetFileName(docName) + "(" + increment++ + ").pdf");
        }
       }
    
       doc.exportFile(ExportFormat.pdfType, file, false, selectedPdfPreset);
       doc.close(SaveOptions.NO);
       count++;
      }
      catch(e) {}
    }
    // Progress bar -----------------------------------------------------------------------------------
    progressWin.close();
    // Progress bar -----------------------------------------------------------------------------------
    alert("Done.", gScriptName + " - " + gScriptVersion);
    }
    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------
    function VerifyFolder(folder) {
    if (!folder.exists) {
      var folder = new Folder(folder.absoluteURI);
      var array1 = new Array();
      while (!folder.exists) {
       array1.push(folder);
       folder = new Folder(folder.path);
      }
      var array2 = new Array();
      while (array1.length > 0) {
       folder = array1.pop();
       if (folder.create()) {
        array2.push(folder);
       } else {
        while (array2.length > 0) {
         array2.pop.remove();
        }
        throw "Folder creation failed";
       }
      }
    }
    }
    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------
    function GetFiles(theFolder) {
        var file,filesub;
            fileList = theFolder.getFiles();
        for (i = 0; i < fileList.length; i++) {
            file = fileList[i];
            if(file.name==".DS_Store") continue;
            if (file instanceof Folder) {
              fileLs = file.getFiles();
              alert(fileLs.length);
                for (j = 0; j < fileLs.length; j++) {
                    filesub = fileLs[j];
                    if (filesub instanceof File && filesub.name.match(/\.indd$/i)) {
                       files.push(filesub);
                    }
                }
            }
          else if (file instanceof File && file.name.match(/\.indd$/i)) {
           files.push(file);
          }
        }
        return files;
        }
    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------
    function GetFileName(fileName) {
    var string = "";
    var result = fileName.lastIndexOf(".");
    if (result == -1) {
      string = fileName;
    }
    else {
      string = fileName.substr(0, result);
    }
    return string;
    }
    //---------------------------------------------------------------------------------------- ----------------------------------------------------------------
    function GetSettings() {
    var set = eval(app.extractLabel("Kas_" + gScriptName + gScriptVersion));
    if (set == undefined) {
      set = { selectedPdfPresetIndex : 0 };
    }
    return set;
    }
    
  • How to get the layer number/id?

    I tried searching the forums, but found only inDesign (code 8)

    So the question is: How can I get layer number (defined by its name, or current layer)?

    Thanks in advance.

    If there is no game layer, you can use something like this.

    That will tell you how many layers with the name 1, and then select the last one.

    layerOne var = [];
    var doc = activeDocument;

    for (var a = 0;<>
    If (doc.layers [a] .name == '1') layerOne.push (a);
    }
    Alert ("the number of layer on =" + layerOne.length + "layer numbers =" + layerOne.toString ());
    activeDocument.activeLayer = doc.layers [parseInt(layerOne[layerOne.length-1])]; Select the last layer 1

  • Lightroom for mobile: how to get the DNG file

    Hello

    Does anyone know how to download a file DNG from iPhone to PC?

    Thank you

    Lightroom Mobile synchronizes with a desktop version of Lightroom.

    When shooting with the camera in Lightroom, the images are synchronized on your Adobe account:

    www.Lightroom.adobe.com

    When you open a catalog on a Mac/PC, you can synchronize only one catalog. To do this, turn on sync:

    Now your images will be transferred to your computer.

  • How to get the log file for the .sql file?

    Friends,

    OS: RHEL AS 3
    DB: 9iR2

    I have a file as sql...
    @/u02/scripts/olback.sql
    exit;
    the olback.sql is to have the user manage backup scripts.
    I saved the code above as weeklybkp.sql
    I have weeklybkp.sh that I call the sql above.
    When I type the olback.sql in the sqlplus manually... I can able to see the result.
    now after the automation... I have to see the output of the script above in a log file.
    How can I save the output of the script above in a log file?

    Thank you

    Slight change in your .sql file.
    coil /u02/weeklybkp.log
    ............ (Here begins your code)
    ............
    ............ (Here ends your code)
    spool off

  • How to get the Subvi (the virtual path is in .exe) reference in Run Time System

    Hello world

    The problem is how to get the reference of the Sub - VI in run time system, when the Subvi is in .exe after construction.

    More details:

    Top of page vi called the Subvi dynamically, so that the Subvi is always included, and the source object is the application.exe.

    After the above configuration, the Sub - VI will be the application.exe. For example, the path of Subvi est...\application.exe\SubVI.vi

    So, how to get the reference of the Subvi in Run Time System?

    I can't do it when you use 'open reference VI' with le...\application.exe\SubVI.vi path in the run time system.

    In fact, I can create a file to include the Subvi, rather than build the Subvi in application.exe, then I can get the convenintly reference. But this isn't my favourate average.

    Thank you

    chenyin

    That is the problem. Call a Subvi dynamic means users could change, but it is also very attractive.

    The dynamic call should be used in a user control, but some parade can avoid problems.

    It depends on why you use dynamic calls...-online 2 main ways:

    -Dynamic call are used to maintain a scalable framework for the code without acting on the executable file-online a single VI distribution managed by the administrator/developer

    -Dynamic call are used to provide a collection of "external" characteristic that could be enriched by the administrator/developer. For example, you provide your customers a set of selectable custom signal filters in the executable.

    In 2 cases, you are only able to assess the skills of the users to know if there is a risk of damage, if there is a change.

    So to stay only master a parade might be to provide dynamic VI without a schema, but with the problem of maintenance, since no in-place editing and more attention to manage distribution.

    Another way is to hide the actual distribution to user-online call dynamic VI but it without name as *.vi but others (a repellent name as system of OS name ) or simply without extension in order to attract not user... but that's debatable...

    Another more difficult but more secure method is to create a consistency check before your routine (version, user, modified date,...)

Maybe you are looking for

  • Satellite P300 - slow laptop with 100% CPU usage

    Hello I ve bought a P300 Satellite a week ago.The problem is that my laptop is very slow. When I run Vista it takes 3-4 minutes.When I open WMP it takes 30 to 40 seconds, and when I play a movie she shocked all the time.The CPU is at 100% constantly.

  • HP Officejet 4635 e: ERROR of SCANNING

    When I try to scan to my computer, the printer and my laptop comes up with an error. My laptop says that something there is no shortcut to scan on my device and to uninstall the printer and reinstall? Really? When I first hooked the printer until it

  • Problems of MS16-065

    After you have installed the MS16-065 update, our services are unable to communicate. There seems to be a problem with the decryption. One of the suggested solutions was to enable TLS 1.1 and TLS 1.2, what has worked in the case of the .net 4.5 appli

  • How to add titles on a CD - R

    I have a CD with 18 minutes of recording on it and Windows Media Player will not let me add tracks of the remaining space. Is there a way to do this?

  • Windows failed to load because lack of hal

    Vista Windows reinstall recovery on computer WINDOWS DOES NOT LOAD BECAUSE LACK OF HAL