Jsx + UI window + Markers

I'm not a programer, but will be very useful to me to have a Jsx that makes a UI window with 10 buttons that add markers with preset texts to a selected layers.
Does anybody can help me with this ?
thanks

http://blogs.adobe.com/aftereffects/files/2012/06/After-Effects-CS6-Scripting-Guide.pdf?fi le=2012/06/After-Effects-CS6-Scripting-Guide.pdf
Go to page 102 in the CS6 Scripting Guide pdf, that chapter talks about the MarkerValue object.
As for the selected layer part:
var curComp = app.project.activeItem;
var mySelectedLayers = curComp.selectedLayers;
var mySelectedLayersTotal = mySelectedLayers.length;
for(var i=0; i<mySelectedLayersTotal; i++){
    alert(mySelectedLayers[i].index);/*CHANGE THIS CODE LINE TO YOUR APPLY MARKER CODE*/

Similar Messages

  • Execute JSX in Windows?

    execute JSX in Windows? through PHP application

    I do not know PHP scripting language at all, However I think most scripting languages have a mothod to execute or have a file execute. For exeample in javascript if I want to give the user help that is on my web site.  I create an new html file in their temp folder and execute it.  The a windows system will have an assoaction to some executable for html files to a default web browser.  So in my case what should happen is the users default browser is pass the html file my script created which redirects the browser to the help on my web server. JSX is most likely assocated with the extended script toolkit you may need to associate it to photoshop. If you know java script here is what my code looks like
    try{
       var URL = new File(Folder.temp + "/PhotoCollageToolkit.html");
       URL.open("w");
       URL.writeln('<html><HEAD><meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mouseprints.net/old/dpr/PhotoCollageToolkit.html"></HEAD></HTML>');
       URL.close();
       URL.execute();
    }catch(e){
    alert("Error, Can Not Open.");

  • See the logged content for clip markers at sequence level?

    I'm working on my first long form documentary, and I'm using a work flow a colleague recommended – although he typically works with Avid and an older version of Final Cut Pro, so there may be some areas where this work flow is broken.
    I've vascialleted a bit, as I've recently began to use Prelude to do the logging instead of Premiere Pro. Obviously logging in PL is quite a bit easier as it's set up with some handy keyboard shortcuts for doing so. Basically I'm adding clip markers to interview stringouts that contain transcriptions of what the person is saying at that point of the interview.  Now that Premiere Pro CC allows me to navigate to the clip makers the same way I could navigate to the sequence markers (Command-Shift-M for previous and Shift-M for next), it's pretty handy and it makes sense to use clip markers since they'll always be there no matter what sequence you put the source footage into.
    So, great. All makes sense right? Well...turns out I've run into a bit of a problem.
    There is the handy Markers pallete (windows>Markers) which highlights the text I captured for a specific marker, making it easy to navigate or search for a certain question or answer in a given interview. Trouble is, that only shows content at the sequence marker level. While I can navigate to a clip maker within a timeline, the Markers pallette stays blank for that clip marker. Which, is kind of a show stopper in terms of navigating the logged clip once it's in a sequence or stringout. I can still see what's in that clip marker if I hover the mouse over it and wait for a tool tip to show up, but that's not exactly optimal.
    I'm thinking about going back to logging in Premiere just to keep the sequence level markers easily searchable at the stringout level. Any feedback? I'd certainly prefer to do the logging in PL, but I'm dealing with a lot of footage here, and I need at least the stringouts to be easily searchable.
    Mind you, my colleague isn't a Premiere Pro power user, so he may have recommended a workflow that isn't exactly optimal for the tool. Any insight would be welcomed, but if there were some way for the Markers pallete to show the content of the clip marker, I'd be off and running.

    Well, I figure if I can get to both the sequence markers and clip markers with command shift M and the like, I may as well be able to see the content for said marker if content exists. My work flow here is probably a bit of an anomoly – but this is my first long form project, and it being a documentary, you can imagine that there are a lot of assets and stringouts to keep track of. Any shortcuts to getting to the logged content is a huge help throughout the entire process.

  • Set the filename in a textframe with JS in Illustrator CS2 WIN

    Hello and good morning (and sorry for my bad english),
    I found some possibilities to set the filename in a textframe. But only in applescript or for CS (WS-dateandtime v0.8 from Wolfgang Reszel)
    b There is no JS-script, which works correctly in Illu CS2 Win.
    Please, help me to get a JS-script that proper works.
    Here is the code:
    //////////////////////////////////////////////////////////// english //
    // -=> WR-DateAndTime <=-
    // A Javascript for Adobe Illustrator
    // by Wolfgang Reszel ([email protected])
    // Version 0.8 from 30.8.2004 (also should work with Illustrator CS)
    // This script inserts the actual date or the actual time to a
    // predefined position in the document.
    // To define the position, you'll have to create an textobject and
    // execute this script while the object is selected. The whole object
    // has to be selected and not words or letters. You can mark more
    // objects, if you select each object separate and execute
    // the script on it.
    // With the placeholders {DATE} and {TIME} you are able to define a
    // particular point, where the date or the time should be replaced.
    // If there is no placeholder in the textobject
    // "{FILENAME} ({DATE}, {TIME})" will be used as standard placeholders.
    // To update the date and time execute this script without any object
    // selected.
    // There are some additional placeholders:
    // {FILE} - complete document-filename with path
    // {FILEPATH} - only the documents filepath
    // {FILENAME} - the filename of the document
    // On my system this script can't see the path of the document, when
    // it was opened directly from windows Explorer (double click).
    // In Illustrator CS it is now possible to edit a DateAndTime-Object.
    // To enable the english messages and date-format change the "de"
    // into "en" in line 90.
    // Sorry for my bad english. For any corrections send an email to:
    // [email protected]
    //////////////////////////////////////////////////////////// Deutsch //
    // -=> WR-DateAndTime <=-
    // Ein Javascript fuer Adobe Illustrator
    // von Wolfgang Reszel ([email protected])
    // Version 0.8 vom 30.8.2004 (sollte auch unter Illustrator CS laufen)
    // Dieses Skript fuegt das aktuelle Datum und die aktuelle Uhrzeit an
    // eine vorher bestimmte Stelle im Dokument ein.
    // Um eine Stelle zu bestimmen, muss man ein Textobjekt erzeugen, es
    // markieren und dann dieses Skript aufrufen. Es muss das gesamte Objekt
    // ausgewaehlt sein, nicht etwa Buchstaben oder Woerter. Es lassen sich
    // nacheinander auch mehrere Objekte als Datum/Uhrzeit markieren.
    // Mit den Platzhaltern {DATE} und {TIME} (in geschweiften Klammern)
    // kann man bestimmen, wo genau im Text das Datum und die Uhrzeit
    // erscheinen soll. Sind die Platzhalter nicht vorhanden, wird
    // automatisch "{FILENAME} ({DATE} - {TIME})" verwendet.
    // Zum Aktualisieren des Datums/Uhrzeit muss man dieses Skript aufrufen
    // wenn kein Objekt ausgewaehlt ist.
    // Es gibt noch einige zusaetzliche Platzhalter:
    // {FILE} - kompletter Dateiname mit Pfad
    // {FILEPATH} - nur der Verzeichnispfad des Dokuments
    // {FILENAME} - der Dateiname des Dokuments
    // Auf meinem System kann der Pfad nicht ermittelt werden, wenn das
    // Dokument vom Windows Explorer geoeffnet wird (Doppel-Klick).
    // InÿIllustrator CSÿkann man nun ein Datum/Uhrzeit-Objekt bearbeiten.
    // Um dieses Skript mit deutschen Meldungen und Datumsformat zu
    // versehen, muss in Zeile 90 das "en" durch ein "de" ersetzt werden.
    // Verbesserungsvorschlaege an: [email protected]
    //$.bp();
    var language="de"; // "de" fuer Deutsch
    var WR="WR-DateAndT

    Hello Steve Light,
    Thanks a lot for answering me. I did it (renamed and added this two lines at new line 89 and 90 in the Script, selected Textframe and execute the jsx from Windows-Explorer) but nothing happened. Only a warning message appeared. It sayed: "You used an illustrator-12 Script " The Message is in German, I cannot to translate literally.
    No filename and no date wasn't fill in textframe.
    It's a great pity, the same Script runs in CS3 without problems. But I need it for CS2 :-(
    What can I do?
    Sorry for my bad english again.

  • Best Workflow for Multicam Sequences?

    I have a project that includes video from 2 cameras and audio from 2 audio recorders. I synced everything up using PluralEyes, then imported it back into Premiere. Then I opened the synced sequence, deleted the camera audio, nested the video, and enabled multicam. After that, I started going through and editing the multicam footage by selecting the appropriate camera by pressing 1 or 2 (or command-clicking on the appropriate camera in multicam view). My question is, now that I've synced everything up and finished my rough multicam edits, how do I mark the selections of the sequence that I would like to keep?
    For example, part of the sequence is an interview. Instead of just cutting the sequence up, I would like to first mark and label the portions of the interview that I would like to keep. That way I can easily go through and know what the interviewee is speaking about in each clip without having to play the whole thing. I understand that to do this on the original clips in the source monitor, I would need to create subclips. But how do I do it on a synced multicam sequence? Is there a way to open the sequence in the source monitor? What's the best workflow for something like this?
    I've been using Premiere for all of two days (switched from FCPX), so any help would be much appreciated. Thanks.

    I use comment markers for this sort of thing as I prefer to keep my project bins thin. To open a sequence in the source monitor, right-click on the sequence in the project window and select Open in Source Monitor. Position the play head at a point of interest and press M. Go to Window>Markers to view a list of markers and add comments. When you want to review a marked section click the corresponding marker in the marker window and the play head will advance to that point. Btw, you can do this within the timeline and in any monitor, not just the source monitor.

  • Playing a video using the Mobile Media API - JSR135

    Hello to Everybody,
    does anybody know the very exact video-format that a S60-Nokia-Phone
    suppot ? I create a video-file with the Quick Time Video Player Version 7.0.3.
    Following video-file-features :
    Content Type is 3gpp - Release 5
    Video-Format : H.263
    Data-Rate : 64 kbps
    Image-Sitze : 176 x 244 QCIF
    Image-Rate : 10 Images per second
    Key-Frame : All - 24 Images
    When I invoke the "start-method of a Player-Instance" in my MIDlet on a
    Nokia-S60-Emulator of the Nokia Prototype SDK 3.0 for J2ME I get the
    following Exception :
    java.lang.ArrayIndexOutOfBoundsException: 13
    at com.nokia.phone.sdk.concept.util.mmedia.video.v3gpp.VideoTrack.readFrame(VideoTrack.java)
    at com.sun.media.SourceThread.process(BasicSourceModule.java:664)
    at com.sun.media.util.LoopThread.run(LoopThread.java:135)
    Here the emulator is hanging...
    Now I kill the Emulator-Process and the Exception continues with...
    java.lang.InterruptedException: sleep interrupted
    at java.lang.Thread.sleep(Native Method)
    at com.nokia.phone.sdk.concept.mirrors.mma.media.player.VideoPlayer.doPrefetch(VideoPlayer.java)
    at com.nokia.phone.sdk.concept.mirrors.mma.media.player.BasicPlayer.prefetch(BasicPlayer.java)
    at com.nokia.phone.sdk.concept.mirrors.mma.media.player.BasicPlayer.start(BasicPlayer.java)
    at com.nokia.phone.sdk.concept.mirrors.mma.media.MMAManager.start(MMAManager.java)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.nokia.phone.sdk.concept.gateway.g.a(g.java)
    at com.nokia.phone.sdk.concept.gateway.g.run(g.java)
    at java.lang.Thread.run(Unknown Source)
    Can anybody reproduce this error-message or does anybody encountered this error and know the solution ?
    Maybe "QuickTime Video Player 7.0.3" is the wrong software to
    create 3gpp-Videos ? Is there anything else advisable to produce 3gpp-videos ?
    Best Regards and thanx for investigations...

    App menu > Premierepro > Keyboard Shortcuts...
    Then inside the Keyboard Shortcuts dialog, find: Application>Window>Markers and assign a shortcut. The only hard part is finding one not yet in use... you'll probably have to use shift/option/ctrl modifiers.

  • Correctly align imported AI/PDF [CS2, Win, JS]

    Hi all,
    Would really appreciate it if someone could provide some insight about this issue (ILL CS2, but I suspect later versions act the same, Windows, JS):
    I'm trying to import an existing AI into an empty layer of a new one, so that the new file will be in effect identical to the existing one. So I read the height and width of the existing file, create a new one with the same measurements and then use the createFromFile() method of the groupItems collections to import it.
    The problem is that the imported item is not aligned properly with the new file. I can see that they are identical in size, but the crop area from the original file is outside the artboard, which causes an offset when saving the new file as a PDF. The same happens if I first save the AI as a PDF and then try to import that.
    If I do exactly the same thing manually (using the Place command), the result is perfect.
    Any ideas on how to overcome this annoying problem?

    Hello Steve Light,
    Thanks a lot for answering me. I did it (renamed and added this two lines at new line 89 and 90 in the Script, selected Textframe and execute the jsx from Windows-Explorer) but nothing happened. Only a warning message appeared. It sayed: "You used an illustrator-12 Script " The Message is in German, I cannot to translate literally.
    No filename and no date wasn't fill in textframe.
    It's a great pity, the same Script runs in CS3 without problems. But I need it for CS2 :-(
    What can I do?
    Sorry for my bad english again.

  • Setting Markers in Log & Transfer window

    Hi All
    Anyone know a trick/plug-in that will enable me to set markers while I am setting my In's and Out's in the Log & Transfer Window before I 'Add Clip to Queue'? I would like to set markers indicating the interesting moments in the footage.
    cheers
    -j-

    Only notes, no markers in log and transfer.

  • "Export audio of selected range markers to separate files" icon is grayed out in Markers window. Tracks show start times but no end times, yet duration is calculated.

    I have one big wav file of segued tracks as a mixdown and inserted CD markers where I want marked tracks. "Export audio of selected range markers to separate files" icon is grayed out in Markers window. Tracks show start times but no end times, yet duration is calculated. Why can't I export these marked portions as separate files?

    the markers durations need to be configured, there is an easy way to do this using your existing markers.  click the start time of marker 2, this should change to edit mode to type in a new number, just copy the numbers cmd/ctrl+c. then click the end time of marker 1 and paste, cmd/ctrl+v.  now repeat for the rest of the markers, and on the last one enter a value for the end time or click and drag on the duration to manually extend it. once all the markers have a duration, the button should be active to export.

  • Display clip duration between markers in canvas window?

    I can do this in Avid- but can not seem to figure it out in FCP.
    There are two TC windows in each canvas window. Is there any way to set them to display the clip duration between markers?
    In other words- I would like to see the duration between and IN point and the OUT point.

    There's a command that will set the in and outs to markers; it's called "mark to markers" found in the Mark Menu. Set the playhead between any two markers and type control+a. Then the in to out duration will show up in the canvas.
    Jerry

  • Opening a dialog window from the JSX file

    I can open a new window in a normal jsx script with
    var dlgMain = new Window();
    dlgMain.show();
    But this code will give an EvalScript error when run inside a JSX file in an HTML5 extension. (What I actually need is to open a file selector window and get the full path of the file). How can I do this with an HTML5 extension?

    Solved with the following code:
                        var inFolder = File.openDialog("Select File");
                        var idPlc = charIDToTypeID("Plc ");
                        var desc1 = new ActionDescriptor();
                        var idnull = charIDToTypeID("null");
                        desc1.putPath(idnull, new File(inFolder));
                        var idFTcs = charIDToTypeID("FTcs");
                        var idQCSt = charIDToTypeID("QCSt");
                        var idQcsa = charIDToTypeID("Qcsa");
                        desc1.putEnumerated(idFTcs, idQCSt, idQcsa);
                        var idOfst = charIDToTypeID("Ofst");
                        var desc2 = new ActionDescriptor();
                        var idHrzn = charIDToTypeID("Hrzn");
                        var idPxl = charIDToTypeID("#Pxl");
                        desc2.putUnitDouble(idHrzn, idPxl, 0.000000);
                        var idVrtc = charIDToTypeID("Vrtc");
                        var idPxl = charIDToTypeID("#Pxl");
                        desc2.putUnitDouble(idVrtc, idPxl, -0.000000);
                        var idOfst = charIDToTypeID("Ofst");
                        desc1.putObject(idOfst, idOfst, desc2);
                        executeAction(idPlc, desc1, DialogModes.NO);

  • Problems with selection.fill/pathItem.fillPath -- Ps CS6, JSX, Windows

    Hi all,
    First post here
    I've started lately to play around with extended javascript (jsx) scripting on Photoshop CS6 (using 32-bit version on Windows 7 Ultimate).
    I've had much trouble with 'fill' commands.
    This one here gives me an
    Error 1200: Internal error
    Line: 5
    ->  app.activeDocument.selection.fill( myColor );
    var myColor = new SolidColor();
    app.documents.add( 100, 100, 72, "tmp", NewDocumentMode.RGB, DocumentFill.TRANSPARENT );
    app.activeDocument.selection.selectAll();
    app.activeDocument.selection.fill( myColor );
    I read somewhere that giving all the parameters to the fill method could solve it, but it gave me the same result.
    I've also tried the fillPath method from PathItem, but it gave also an internal error (1200).
    var myColor = new SolidColor();
    var docRef = app.documents.add(500, 700, 72, "Simple Line")
    var lineArray = new Array()
    lineArray[0] = new PathPointInfo
    lineArray[0].kind = PointKind.CORNERPOINT
    lineArray[0].anchor = Array(100, 100)
    lineArray[0].leftDirection = lineArray[0].anchor
    lineArray[0].rightDirection = lineArray[0].anchor
    lineArray[1] = new PathPointInfo
    lineArray[1].kind = PointKind.CORNERPOINT
    lineArray[1].anchor = Array(150, 200)
    lineArray[1].leftDirection = lineArray[1].anchor
    lineArray[1].rightDirection = lineArray[1].anchor
    lineArray[2] = new PathPointInfo
    lineArray[2].kind = PointKind.CORNERPOINT
    lineArray[2].anchor = Array(100, 200)
    lineArray[2].leftDirection = lineArray[2].anchor
    lineArray[2].rightDirection = lineArray[2].anchor
    var lineSubPathArray = new Array()
    lineSubPathArray[0] = new SubPathInfo()
    lineSubPathArray[0].operation = ShapeOperation.SHAPEXOR
    lineSubPathArray[0].closed = true
    lineSubPathArray[0].entireSubPath = lineArray
    var myPathItem = docRef.pathItems.add("A Line", lineSubPathArray)
    myPathItem.fillPath(myColor, ColorBlendMode.NORMAL, 100, true, 0.0, true, true)
    This example only works if there is not parameters at all given to fillPath (it's filling with black).
    Does anyone know how I could work around this? Is it a known bug?
    Thanks all!

    Hello Michael L Hale,
    Michael L Hale wrote:
    … But it is really not that useful to use the defalut because it doesn't work with all Photoshop methods or properties. For example
    myColor = new SolidColor();
    backgroundColor = myColor;
    will throw the same internal error message …
    understand fun?
    //MakeNewDocFillWithBGColor.jsx
    var Syntax = false;
    var docRef = app.documents.add(300, 300, 72, null, NewDocumentMode.RGB, DocumentFill.TRANSPARENT);
    var selRef = app.activeDocument.selection;
    var myAlert = null;
    try {
        myColor = new SolidColor();
        backgroundColor = myColor;
        Syntax = true;
        selRef.fill( backgroundColor, ColorBlendMode.NORMAL, 100, false );
        myAlert = "No No No";
    catch (e) {
        $.sleep (999);
        if (Syntax == false) {
            var MakeSyntax = true;       
            myColor = new SolidColor();
            backgroundColor.rgb.hexValue = myColor.rgb.hexValue;
            selRef.fill( backgroundColor, ColorBlendMode.NORMAL, 100, false );
            myAlert = "Script runs, if MakeSyntax == "+MakeSyntax;
    alert(myAlert,"Have Fun")
    greetings

  • Is there a markers window in LE7?

    I've looked in the manual and throughout the application, and for the life of me I can't find a marker window. Am I blind or is there not one in LE7? I figured-out how to make and delete them, finally... but I'm wondering about this.

    From the New Features in Logic 7.2 pdf
    Marker Functionality
    The Marker facilities of Logic Express 6 have been reinstated in Logic Express 7.1.
    Markers are very useful for tagging particular time positions or sections in a song. They
    appear as text strings in the Bar Rulers of all Logic windows that contain them.
    To create a marker:
    1 Position the mouse cursor over the lower third of the Bar Ruler at the desired song
    location.
    2 Press Option-Command and click.
    3 Type the marker name into the Marker field.
    The length of the marker is set automatically: the marker extends to the start point of
    the next marker, or to the end of the song or folder, if no ensuing markers exist.
    To delete a marker:
    m Grab it with the mouse in the Bar Ruler, and drag it down, out of the Bar Ruler. Release
    the mouse button when the cursor turns into a hand containing two arrows
    G5   Mac OS X (10.4.2)  
    G5   Mac OS X (10.4.2)  

  • How to lock IN/OUT markers in viewer window so they don't drag?

    Is there a way to lock the IN/OUT markers in ther viewer window?
    Reason why- I tend to have long clips. I mark my IN/OUT point.
    I then go back to the viewer window to scroll through the clip.
    While trying to drag the scroll bar I end up dragging the Mark OUT instead.
    It's minor- but is there a way to get the markers to lock in place- until you mark new points- instead of them staying in drag mode?

    FCP is not AVID, AVID is not FCP.
    I know you're not looing for a lecture, but its worth restating the obvious once again.
    Don't try to make FCP work like an AVID. You'll waste too much time trying to make it something its not, and to some extent this will mar your enjoyment of the new application in your arsenal. You have to try to learn to use FCP the way it was intended. The IN/OUT markers in the viewer window DO drag in FCP. This is a great thing. It gives us the flexability to edit directly in the viewer window. Something we could never do in AVID. Take a look at this old chestnut from the talented Mr Andrew Balis for some inspiration.
    And welcome to the club
    best
    Andy

  • How to get the windows username in jsx

    Hello,
    I have a JSX script in "My Documents\Adobe Scripts" to make it trusted script. I have another text file I need to read from JSX. Since the location depends on logged in user, I need to find the windows username. If anyone know how to get the windows username from jsx please reply.
    Thank you very much.
    Regards
    Nima.

    Hey,
    You can get username like this:
    var myUsername = $.getenv('username');
    You could also get My Documents folder like this:
    var myDocFolder = Folder.myDocuments;
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com/

Maybe you are looking for

  • Items with  zero stock quantity show negative stock value in Stock reports

    When running Stock reports for controlling the stock value towards the GL accounts, some items appear with zero stock quantity, but the report still shows a stock value  (negative value in my case) How can this happen, and how can I correct this situ

  • Cost of Sales Accounting

    Functional Area "0100" assigned in one General ledger Which one the requirement of 2 company, But Functiona Area should be derived from respective object ( Cost center/ Order etc)  for  one company which is located in another country. How it can be a

  • REUSE_ALV_GRID_DISPLAY --- on - APO  /SCM 4.10

    Hi , Though my requirement is simple, but not getting the desired output from 'REUSE_ALV_GRID_DISPLAY'  Function. I'm using this function for data display in Grid layout. but the default menu bar is get disturbed, though i have not set any PF-STATUS

  • Yet another EL post (I apologize in advance)

    I've tried searching the forums before asking this question, but haven't found anything to solve my problem. Initially, the issue is the same many others have: EL expressions are being ignored. So I added in the page directive, and this was the respo

  • Recto verso print result very strange

    Hi !             First of all I want describe my configuration.... We are a  town with a lan  of  more than 50 printers and 200 computer. We have an domain controler and since few month  a print server on a Windows Server 2008 R2 datacenter is . On t