Add placeholder footage to render queue via script

When I do the below on a placeholder (import replace usage sequence) nothing happens.  Is there something wrong with my code or do placeholders not register as addable items?  If I add code to get and alert the name of the placeholder I get the name.  The code works on actual footage or comp items.  Thanks.
var selected = app.project.activeItem;
app.project.renderQueue.items.add(selected);

Figured it out.  You have to add the footage to a comp first and then add the comp to the queue.

Similar Messages

  • Strange audio issue when running render queue via script.

    The issue I'm having with AE is odd, and I'm hoping someone may be able to shed light on the matter.  I have a very simple composition that, when I render out using the GUI, everything works as expected.  The video renders fine, the audio renders fine, etc.  However, when I invoke a script that runs the .aep file, sets the render queue for the composition in question, and then renders it, only the video comes through, but no audio.  There is nothing in my script prior to the setting up of the render queue that alters any audio layers (i.e. no code shutting off audio, etc.)  Has anybody ever encountered this?  The audio file is a .wav in 44.1KHz, 16bit, stereo, and will try other formats to see if the problem might with the file itself?  Although, I don't see how that would be the case if it is rendering just fine via the GUI.
    Any help you can offer for troubleshooting would be great!  Thanks for your help and time!

    Thanks for your suggestion.  It wasn't the output module.  I created a custom template for it and ensured the audio was checked.  It was an odd fix.  I deleted the audio layer, then dragged it back to the timline.  Then, it worked.  Cost me like two hours of work for that, and I should have checked it earlier.  But I still don't know why the original wasn't working.

  • Render frame via script get me uknown messege

    hi 2 all, maybe some one know and can help me, what this Alert message mean and why it showing on 2 of my 7 working computers(all PC have after effects cs5 but why only on two this message showing?), when i try to render current frame  via my script. My script -- render current frame in png file(and in this stage after effect has bug and adding 00000 numbers to filename so i need find my rendered file and fix file name bug and import file back), so when i see this message my script don't work(AE render file, but filename incorrect and my script cant import it back to AE)
    PS for render current frame i create my own preset(by hands) for output module based on png sequence
    thx

    hi guys, i figured out , the problem in my script render part, first i have code to save current frame by
    myProj.renderQueue.item(1).outputModule(1).file = File(DesktopPath+"\\temp\\"+"_"+myLayerName); and this give me error, so i fixed this alert message by 
    myProj.renderQueue.item(1).outputModule(1).file = File(DesktopPath+"\\1111\\"+"ltp"+"_"+myLayerName+"[#####].png");
    [#####].png -- this is a key, thx to all!!

  • JSPM ERROR- cannot add JAVA patches to deploy queue via JSPM

    Hi Experts! Last two days I have deployed java patches(SP13 to SP18).......almost finished......i have to deploy 2 more components only but suddenly i got error.now i cannot add java patches to JSPM deployment queue. am getting error '/usr/sap/BWP/DVEBMGS10/j2ee/JSPM/log/log_2009_07_22_23_41_20/JSPM_MAIN_1_01.LOG.' I have checked trouble ticket log and i have followed Snote-1329945 and changed instace.properties files  as instance.runmode=normal and just restarted java via SMICM only (server reboot is not possible in my environment)
    Trouble Ticket Report----
    Java Support Package Manager for SAP NetWeaver'04s
    SID................: BWP
    Hostname...........: abcbwp02
    Install directory..: /usr/sap/BWP
    Database...........: DB2/AIX64
    Operating System...: $(/J2EE/StandardSystem/CentralInstance/J2EEEngineInstanceHost/OpSysType)
    JDK version........: 1.4.2 IBM Corporation
    JSPM version.......: 7.00.18.1.01
    System release.....: 700
    ABAP stack present.: true
    The execution ended in error.
    Cannot initialize application data.
    Error while detecting start profile for instance with ID _s.
    More information can be found in the log file /usr/sap/BWP/DVEBMGS10/j2ee/JSPM/log/log_2009_07_22_23_41_20/JSPM_MAIN_1_01.LOG.
    Use the information provided to trouble-shoot the problem. There might be an OSS note providing a solution to this problem. Search for OSS notes with the following search terms:
    com.sap.sdt.jspm.phases.PhaseTypeJSPM/com.sap.sdt.jspm.gui.JspmUiException/Cannot initialize application data/JSPM_MAIN
    JSPMPhases/Java Support Package Manager
    log_2009_07_22_23_41_20 exception:
    #1.5 #C000C0A8D28F0000000000366BD46BD400046F4D35AF2008#1248277310677#/System/Server/Upgrade/Phases/JSPM/JSPMPhases/JSPM_MAIN##com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:795)#######Thread[main,5,main]##0#0#Info#1#com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:795)#Java###Duration: .#1#0:00:10.915#
    #1.5 #C000C0A8D28F0000000000376BD46BD400046F4D35AF2008#1248277310677#/System/Server/Upgrade/Phases/JSPM/JSPMPhases/JSPM_MAIN##com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:796)#######Thread[main,5,main]##0#0#Info#1#com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:796)#Java###Phase status is .#1#error#
    Thanks.

    Hi,
    ABAP stack present.: true
    The execution ended in error.
    Cannot initialize application data.
    Error while detecting start profile for instance with ID _s.
    Looks like the problem is above 1
    Do the following. This should resolve the issues.
    1. If your dialog instance are also having the Java stack then do one thing move your profile folder to some other name and create a new profile folder with the name "profile".
    Copy only the central instance profiles Default, Instance and start profile.
    Then give a try.
    2. If you do not have the java instance in Dialog instance still do the same thing what I have described. move the current profile folder and create the new folder with the name "profile" and copy the profiles Default, Instance and start profile.
    Chances are the JSPM is reading some other profile while starting the JSPM.
    Regards,
    Ravi

  • AE appends my filename when setting up a render queue output filename via scripting

    I wrote a script that imports quicktimes and creates comps from them and adds them to the render queue. I'm running into an issue where files with certain names get appended when adding them to the queue. I believe it has something to do with the "." in the name. For example a quicktime named "filename_v25.140504.mov" is used to create a comp named "filename_v25.140504_test_01". This comp is then add to the render queue using the script below.
    var myRQItem = proj.renderQueue.items.add(renderComp);
    var myFile = new File(renderLocation.toString() + "/" + renderComp.name);
    myRQItem.outputModules[1].file = myFile;
    The filename it becomes "filename_v25.mov". It appears to be stripping everything after the last ".". This becomes a problem when I have several comps with names like: "filename_v25.140504_test_01", "filename_v25.140504_test_02", "filename_v25.140504_test_03" etc... since they all get added as "filename_v25.mov".
    Has anyone ran into this issue? Any solutions? Thanks!
    BTW I'm using CC on a mac running 10.9

    I haven't run into that particular issue, but what code are you using to create the comp based on the QuickTime file?  Can you replace the "." with a "_" when the comp is created?  If you can get ahold of the file name as a string, you could split it on the "." character then join the returned array with the "_" character. 
    --Arie

  • Render Queue error - .gif animation

    i am tryign to render an animation based on few .jpg images.
    i add it to the render queue, change only one setting - render to .gif and when it start rendering an error comes up
    "After Effects error: opening file "Advert 1_1.gif" - file is busy (delete) (-47)
    (3 :: 130)
    tryed several time and the error comes up at different stages of the rendering.
    does any one know what am i doing wrong?
    please helP! =(

    > That option is only there for reasons I don't understand
    We agree. We even took it out recently.
    We have always recommended the workflow that Rick recommended. Here's the relevant snippet from the Help document:
    "To create an animated GIF movie, first render and export a QuickTime movie from After Effects. Then import the QuickTime movie into Photoshop Extended and export the movie to animated GIF using Save For Web & Devices."

  • OSX 10.9 Maverick add a LDAP server via script

    I use applescript to add a LDAP sever on 10.8, but after the 10.9 released, I found the script cannot use any more.
    Seems is the new Mail app doesn't support LDAP sever , it is integrated to Internet Accounts
    However the SAMPLE script is still the same. (  /Library/Scripts/Mail\ Scripts/Create\ New\ LDAP\ Server.scpt )
    Does any one know how to config internet accounts via script (BASH script is OK too)?
    the new mail app does not understand
    make new ldap server with properties {name:theName, host name:theAddress, search base:theSearchBase, Çclass ldpoÈ:thePort, scope:theScope}
    any more.

    I'd first read the subject and thought this involved creating an entire LDAP server via script and thought... whoa, that's some script.    
    But you're seeking to reference a remote resource or some automated way to configure your client mail, and that's currently using LDAP, right?  If so, then Apple has shifted over to Profiles and away from LDAP and MCX and related.  Profiles would be the approach I'd follow here, either with OS X Server and its profile manager or some other MDM service.
    If you have access to the Apple WWDC13 session videos, there's a session on the Profile Manager that might be worth your time.

  • Difference between "Make Movie" & "Add to Render Queue"

    I imagine there is at least a subtle difference between selecting "Make Movie" & "Add to Render Queue".
    Can someone here explain?
    Thanks
    Rowby

    It's very, very subtle, and it doesn't really matter.
    The honest reason that they're both there is that Make Movie came first, before there was a render queue, and we just haven't gotten around to eliminating the redundancy.
    The subtle difference that persists is that the first time that you choose the Make Movie command, it will prompt you for an output name for your file, so you don't have to click to set this in the Render Queue panel.

  • "Add to Adobe Media Encoder queue" option very slow

    Hello,
    The new "add to Adobe Media Encoder queue" directly from After Effects is great, but it is sooooo much slower than encoding directly from Adobe Media Encoder.
    My comp is very simple : it's a 90 min. length video that I'm trying to convert from 24 to 25 frames. I need a MPEG2 export for DVD, so I can't use AE because there're no option to export to MPEG2 files in AE.
    AME announced 10 hours of encoding, but after 5 hours it was only at a third of completion. So I rendered the movie in DNxHD, then encoded in AME : 1 hour for the DNxHD file, and 4 hours for the MPEG2. Much faster!
    I run After Effects CC (12.1.0.168) and AME CC (7.1.0.74) on a windows 7 system with i5 processor and 8go of RAM.
    Anybody else encoutered this issue?

    Tento wrote:
    As for the higher encoding time of exporting to AME frome AE, do you have any clue ?
    Have you applied any effects to the footage in your After Effects comp? Are you using time remapping or the Time Warp effect? That will slow down the encode significantly. Also, what is the format of your source footage?
    Mind that, depending on what you're asking After Effects to render, encoding a comp via AME may not be as fast as using the Render Queue in After Effects. Feeding frames to AME via Dynamic Link incurs some memory overhead and limitations; for example After Effects can not render multiple frames simultaneously on different processors for Dynamic Link encodes.
    If I were you, I would try to solve the problems with AME transcoding your footage. You should bring the issue to the AME forum.  If you're fully committed to not using AME, I recommend using Premiere Pro, not After Effects, for this type of job.
    Regardless of all the above, I agree with Rick: you shouldn't need to transcode 24fps footage to 25fps for playback from DVD. DVD players will do that frame rate translation for you at playback time. But if your footage is not PAL dimensions (720x576), a DVD player won't necessarily convert the frame size, so transcoding at least the frame size is recommended. Bottom line: I would let your DVD authoring software (Encore?) handle the original file; it should do any conversions necessary when you set the DVD format to PAL.

  • How to copy render queue settings?

    In the render queue is there anyway to copy the render and output settings from one job to another?
    As I have 100 renders to do of 100 green screen clips. if I create different comps for each one then I have to set many parameters for each comp when I drag it into the render queue as I'm outputting to a non standard codec. And the client keeps changing their mind about compression rates so I may have to do the 100 clips several times, so would be great to just dump all 100 comps in the render queue each time they change their mind!
    Thx
    Kevin

    Or to add to what Mylenium said, To change the render settings, select all the queus, and change the render setting.  In order to change the output module, you must select all of the "Output Module" names, which will be a pain for 100 queues..  I guess setting default would be easier..
    Also, dunno if you're aware of this feature, but if you wanted to render a movie, and then rerender that into multiple formats, you first make movie, drag "Output Module" onto the project window.  Next, drag the placeholder back onto the render queue and adjust settings.

  • Apply Same Preset to Multiple Render Queue Selection

    Hi,
    I´m trying to apply the same preset to multiple render items on the queue panel.
    What´s happening is: i select multiple render items on the render queue panel of Media Encoder, then select a preset and drag and drop this preset to alter all the render items (hopefully). But no..
    With drag and drop even if i have a multiple selection the dragged preset only goes to on render item. If i select not the item name but the output name, the same thing happens.
    If i make my multiple selection and double click on the preset name it does add the preset to all the selection but it does not replace one for the other..  (so i got 2 outputs presents when wanting only one)
    Hope my explanation makes sense.
    Its this feature existent on Media Encoder or am i doing something wrong?

    Replacing an output via drag & drop only works on the output you drag the preset to, regardless of your current selection.  Also, if you apply a preset with multiple outputs selected it always adds a new output, as you mentioned.
    However, if you have multiple outputs selected and choose a different preset from the Preset popup menu in the Queue, all the outputs are changed at once which sounds like the behavior you want.  You'll only see presets for the current format in the Preset popup menu so you may need to switch the Format popup first to see the preset you want.
    I like the idea of replacing multiple outputs via drag & drop though, I'll add a feature request for this.

  • Writing commands to get specific data channels in the output report via script or automated script generation..

    In my project I have to make certain calculation and then get the data plotted in the given report template. I am using automated script for this. My script is doing all the calculations and then it not selecting and drag-dropping the selected channels on the report template. Its saving the blank report template.
    I am struggling to get the data for specific channels plotted by using the script. I need the selected channels to be plotted on this report template and then get it saved.
    Any help will be deeply appreciated. Thanks
    Solved!
    Go to Solution.

    Hi LaxG,
    Brad is absolute right. It is possible to create your whole layout via script.
    If you have loaded  the example report layout you can copy these lines to create a new line in your plot. This is the recommended object oriented way.
    call Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Add(e2DShapeLine, "anyName")
    Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.XChannel.Reference               = "[1]/Zeit"
    Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.YChannel.Reference               = "[1]/Geschwindigkeit"
    For performance reasons it's recommended to use the it like this.
    dim oLine
    set oLine = Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape
    oLine.XChannel.Reference               = "[1]/Zeit"
    oLine.YChannel.Reference               = "[1]/Geschwindigkeit"
    Like Brad mentioned it is much easier, that you have a stored template of your report with all setings and customisations already done.
    You open this layout file and have stored the names of your calculated channels. When you are doing this with a script they always have the same name and belong to the same group.
    Now you can customize the references of the line items.
    Kind Regards,
    Philipp K.
    AE | NI Germany

  • Setting format and format options in Output module settings for render queue item

    Hello,
    I am unable to set the "Format" and "Format options" for video in output module settings programatically using After effects apis.
    I referred the after effects cs3 sdk guide for the apis.
    I find apis for all other options in the "outputmodule settings " like :
    AEGP_SetEmbedOptions
    AEGP_SetOutputChannels
    AEGP_SetStretchInfo
    AEGP_SetSoundFormatInfo
    But there is no api listed for setting the options available in the "Format" tab and "Format options" tab.
    The "Format" tab and "Format options" tab is available in the dialog that opens when user clicks on the Output module settings for the render queue item.
    The format tab when clicked shows a drop down list with aff different formats. By default "Video for Windows" is set.
    The drop down list contains following format options
    Adobe Clip Notes
    Adobe Flash video
    Quicktime movie
    Video for Windows
    I need to be able to set the "Quicktime movie" option in the Format tab programmatically and then set the compression type as "Animation" in the compression settings programatically using the api functions available in AE CS3 SDK
    Please suggest the suitable api to do so.
    I need to write my own plugin to export to Quicktime movie using the after effects apis.
    I follow below steps to do so.
    1. AEGP_InsertMenuCommand and add export option to AE with my own plugin name
    2. In the command hook, select active item using AEGP_GetActiveItem
    3. Add it to render queue
    4. Set the output module settings for 0 th output module using
    suites.OutputModuleSuite1()
    5. Use different functions from suites.OutputModuleSuite1() to set the output module settings like EmbedOptions,StrechInfo etc.
    6. Till this step, I am doing it right. But I am not able to find any api for setting Format options using suites.OutputModuleSuite1()
    I also checked all other suites available for setting FormatOptions but no luck.
    Please help.
    Thanks,
    -Namita

    Hi Namita,
    I am experiencing the same problem.
    I am using AE CC SDK, and I am unable to change the outputmodule format to any of the other movie format types (mov, mpg, flv, etc.).
    It is always set to "avi"
    I even compiled and ran the Queuebert example in the SDK, and there I get the same problem: the path extension is always left on ".avi"
    Does anyone know how to change this?

  • FAQ: Why doesn't AVI appear as an export format in the Render Queue?

    [For information on rendering and exporting, see "Basics of rendering and exporting".]
    On Windows versions of After Effects, AVI appears listed with the more comprehensive name, "Video for Windows". In fact, it's the format specified by the default Output Module template. The Format Options button will reveal the AVI/VfW codecs available on your system.
    On Mac systems, AVI/Video for Windows is not available as a direct export option (except through the File > Export path, which is really not recommended). Export a lossless intermediate file from the Render Queue instead (for example, a Quicktime file). You can then use a number of converter applications (including Quicktime Pro, for example) to convert this intermediate file to an AVI file.

    Post Author: Rob Murnick
    CA Forum: .NET
    I'm starting to get the opinion that it can't be done - can't find any information explaining how, anyway.  Perhaps this is because .HTML format often uses it's own folder for storing image files, etc..., and the other formats (rpt, .pdf, .xls, .doc and .rtf) simply use a file.  The "Export Report" dialog would need to be a bit more complicated to switch between saving as a file and saving a set of files in a (potentially new) folder, so I'm just going to hide the Export button on the CrystalReportViewer control, add an external "Export" button, and roll my own dialog.

  • How to get name of the slicer via script

    Hi Gurus,
    I was wondering if we could get the name of the slicer added in IR Query section, via script ??
    That is, I have a bqy connecting to Essbase OLAP.
    Now I am adding a slicer in OLAP Section via script.
    For Ex : ActiveDocument.Sections["Query2"].Slicers.Add('Market.Gen3,Market' , 'Market.LA')
    Now,for some reason, I wanted to retrieve the name of the slicer I added and assign it to a variable. Is this possible ?? I couldn't see any option for this. Please help me out if any one has done this before ?
    Thank You,
    Aji

    Sethil,
    Use your date(let us say Date1) instead of sy-datum.
    CALL FUNCTION 'MONTH_NAMES_GET'
    EXPORTING
    LANGUAGE = SY-LANGU
    IMPORTING
    RETURN_CODE =
    TABLES
    MONTH_NAMES = itab_month
    EXCEPTIONS
    MONTH_NAMES_NOT_FOUND = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE itab_month
    WITH KEY MNR = date1+4(2).
    itab_month-LTX will contain the value you are looking for
    Good luck
    Raghava

Maybe you are looking for

  • Urgent----OC4J Hanging After every 4-5 Hours

    Respected All Oracle ADF Users, I Have Developed very large ADF (ADF BC Swing) Application i.e. One ERP Product, It Contains 300 Application Modules (Forms). I deployed this Application as EJB Session Bean on standalone OC4J which is on Fedora Core 3

  • [ME21] error message : cannot find message associated with key

    Dear all, I try to develop an Mobile application using smartSync, but when the application running (on client) got an error message : Error: 500 Location: /UPLOAD_TEST/upload_testapp/Menu.do Internal Servlet Error: javax.servlet.ServletException: can

  • Can i create automatic responses?

    Years ago...even preceding the first iphone, there were macro phrases such as "no", "yes," "on my way," or " in a meeting. Call asap". Can an iphone do this? How? Ideas?

  • Flash Install Question

    I want to upgrade my flash player, and when I start, there is the option to install or not, a MacAfee Security program. I deselect that option. When I open the file to run install, it shows that the MacAfee program is installing. Why is this, when I

  • How do I type an em dash?

    Word will autoformat hyphens into an em dash or an en dash. Can Pages do this? How?