Access which comp gets replaced using PostRenderAction.IMPORT_AND_REPLACE_USAGE?

Quick breakdown:
I'm setting up a script to prepare AE scripts for a film pipeline. What I want to do is render the output as an image sequence, then import the image sequence and render it out to a preview mov for our dailies process.
I've built and installed templates on all relevant machines, but I'm having problems using the Post Render Actions in the script.
When "Import and Replace Footage" is selected as a post render action, it defaults to replacing "this comp". What I need it to do is replace the placeholder I'm creating in the script instead. Here's what I have so far:
    // Main Output Module
   var MLtemplate = "Main_Output";
   // Main Render Settings
   var MLsettings = "Main_Output";
   // Preview Output Module
   var MPtemplate = "Main_Preview";
   // Preivew Render Settings
   var MPsettings = "Best Settings";
   // Setting variable to highlighted item/comp
   var activeItem = app.project.activeItem;
   if (activeItem != null && activeItem instanceof CompItem) {
      // Adding the active item to the render queue and applying the specified templates to the output module
      var theRender = app.project.renderQueue.items.add(activeItem);
  theRender.applyTemplate(MLsettings);
      theRender.outputModules[1].applyTemplate(MLtemplate);
      theRender.outputModules[1].postRenderAction = PostRenderAction.IMPORT_AND_REPLACE_USAGE;
      // Adding a placeholder to be replaced by the footage from theRender's output.
      var depRender = app.project.importPlaceholder("renderPreview",activeItem.width,activeItem.height,activeIt em.frameRate,activeItem.duration);
      depRender.source = theRender.outputModules[1].file;
      // Arbitrarily guessing at the argument for specifying the target of theRender's "Import and Replace Usage".
      // this currently isn't working.
      theRender.outputModules[1].postRenderAction.target = "renderPreview";
   } else {
      alert("Select the comp you want to render first");
Any thoughts?

The postRenderAction isn't an object or a method, it's an enumerated value used a constant. In other words, it's just a pure number value, in this case equal to 3213 for IMPORT_AND_REPLACE_USAGE. It doesn't have any methods or properties, it's just a number that represents which of the four possible actions the function should take after completion.
As far as I can tell there's no way to do what you want using only IMPORT_AND_REPLACE_USAGE. But perhaps you can use the IMPORT action instead and then have the script look for and replace the appropriate comps after it's done rendering?
Refer to page 111 of the CS6 scripting guide: http://download.macromedia.com/pub/developer/aftereffects/scripting/After-Effects-CS6-Scri pting-Guide.pdf

Similar Messages

  • Getting replacement - using SuperDuper

    Hi, I'm getting a replacement MBP and wanted to make an exact replica of my computer (hard drive) so that when I get the replacement, my new computer will have all my current files and settings on it.
    I've read the instructions for SuperDuper but just want to make sure I do it right since my data will be gone when I give this one up. So can anyone please tell me step by step to make my replacement "become" the computer I'm using now? Thanks a lot! I appreciate all your help.

    Just use Copy All Data from: MacIntosh HD to "Backup Drive"
    One of the final steps is making the backup volumn bootable (done automatically).
    One word of wisdom ... when you are ready to do the back-up, log-out and then log back in but hold down the shift key while logging back in... this will by-pass any startup item you (or another program may have put in place). These could cause SuperDuper to stop unexpectedly.
    After the backup is complete, you can then test the back up by restarting your computer .. hold down the Option key while booting. You should see two drives: your original MBP drive, and the backup drive. Choose the backup drive. If it boots, and all looks good then you are good to go!
    Message was edited by: Faulty486

  • I have a mid2009 MacBook Pro for which I have been using a USB WD HD for Time Machine.  I'd like to get a wireless HD  and start a new Time Machine backup for this Mac and retire the 5  year old WD drive.  Can I start over?

    I have a mid2009 MacBook Pro running Mavericks for which I have been using a USB WD HD for Time Machine.  I'd like to get a wireless HD  and start a new Time Machine backup for this Mac and retire the 5  year old WD drive.  Can I start over?

    no archive/ backup is perfect, HD clones can be set to make incremental additions, same as time machine however, though they are more time involved in doing so.
    See the + and - of all data backup/ archives below and "spread it around".... or the "dont put your eggs all in one basket" philosophy.
    Peace
    Data Storage Platforms; their Drawbacks & Advantages
    #1. Time Machine / Time Capsule
    Drawbacks:
    1. Time Machine is not bootable, if your internal drive fails, you cannot access files or boot from TM directly from the dead computer.
    2. Time machine is controlled by complex software, and while you can delve into the TM backup database for specific file(s) extraction, this is not ideal or desirable.
    3. Time machine can and does have the potential for many error codes in which data corruption can occur and your important backup files may not be saved correctly, at all, or even damaged. This extra link of failure in placing software between your data and its recovery is a point of risk and failure. A HD clone is not subject to these errors.
    4. Time machine mirrors your internal HD, in which cases of data corruption, this corruption can immediately spread to the backup as the two are linked. TM is perpetually connected (or often) to your computer, and corruption spread to corruption, without isolation, which TM lacks (usually), migrating errors or corruption is either automatic or extremely easy to unwittingly do.
    5. Time Machine does not keep endless copies of changed or deleted data, and you are often not notified when it deletes them; likewise you may accidently delete files off your computer and this accident is mirrored on TM.
    6. Restoring from TM is quite time intensive.
    7. TM is a backup and not a data archive, and therefore by definition a low-level security of vital/important data.
    8. TM working premise is a “black box” backup of OS, APPS, settings, and vital data that nearly 100% of users never verify until an emergency hits or their computers internal SSD or HD that is corrupt or dead and this is an extremely bad working premise on vital data.
    9. Given that data created and stored is growing exponentially, the fact that TM operates as a “store-it-all” backup nexus makes TM inherently incapable to easily backup massive amounts of data, nor is doing so a good idea.
    10. TM working premise is a backup of a users system and active working data, and NOT massive amounts of static data, yet most users never take this into consideration, making TM a high-risk locus of data “bloat”.
    11. In the case of Time Capsule, wifi data storage is a less than ideal premise given possible wireless data corruption.
    12. TM like all HD-based data is subject to ferromagnetic and mechanical failure.
    13. *Level-1 security of your vital data.
    Advantages:
    1. TM is very easy to use either in automatic mode or in 1-click backups.
    2. TM is a perfect novice level simplex backup single-layer security save against internal HD failure or corruption.
    3. TM can easily provide a seamless no-gap policy of active data that is often not easily capable in HD clones or HD archives (only if the user is lazy is making data saves).
    #2. HD archives
    Drawbacks:
    1. Like all HD-based data is subject to ferromagnetic and mechanical failure.
    2. Unless the user ritually copies working active data to HD external archives, then there is a time-gap of potential missing data; as such users must be proactive in archiving data that is being worked on or recently saved or created.
    Advantages:
    1. Fills the gap left in a week or 2-week-old HD clone, as an example.
    2. Simplex no-software data storage that is isolated and autonomous from the computer (in most cases).
    3. HD archives are the best idealized storage source for storing huge and multi-terabytes of data.
    4. Best-idealized 1st platform redundancy for data protection.
    5. *Perfect primary tier and level-2 security of your vital data.
    #3. HD clones (see below for full advantages / drawbacks)
    Drawbacks:
    1. HD clones can be incrementally updated to hourly or daily, however this is time consuming and HD clones are, often, a week or more old, in which case data between today and the most fresh HD clone can and would be lost (however this gap is filled by use of HD archives listed above or by a TM backup).
    2. Like all HD-based data is subject to ferromagnetic and mechanical failure.
    Advantages:
    1. HD clones are the best, quickest way to get back to 100% full operation in mere seconds.
    2. Once a HD clone is created, the creation software (Carbon Copy Cloner or SuperDuper) is no longer needed whatsoever, and unlike TM, which requires complex software for its operational transference of data, a HD clone is its own bootable entity.
    3. HD clones are unconnected and isolated from recent corruption.
    4. HD clones allow a “portable copy” of your computer that you can likewise connect to another same Mac and have all your APPS and data at hand, which is extremely useful.
    5. Rather than, as many users do, thinking of a HD clone as a “complimentary backup” to the use of TM, a HD clone is superior to TM both in ease of returning to 100% quickly, and its autonomous nature; while each has its place, TM can and does fill the gap in, say, a 2 week old clone. As an analogy, the HD clone itself is the brick wall of protection, whereas TM can be thought of as the mortar, which will fill any cracks in data on a week, 2-week, or 1-month old HD clone.
    6. Best-idealized 2nd platform redundancy for data protection, and 1st level for system restore of your computers internal HD. (Time machine being 2nd level for system restore of the computer’s internal HD).
    7. *Level-2 security of your vital data.
    HD cloning software options:
    1. SuperDuper HD cloning software APP (free)
    2. Carbon Copy Cloner APP (will copy the recovery partition as well)
    3. Disk utility HD bootable clone.
    #4. Online archives
    Drawbacks:
    1. Subject to server failure or due to non-payment of your hosting account, it can be suspended.
    2. Subject, due to lack of security on your part, to being attacked and hacked/erased.
    Advantages:
    1. In case of house fire, etc. your data is safe.
    2. In travels, and propagating files to friends and likewise, a mere link by email is all that is needed and no large media needs to be sent across the net.
    3. Online archives are the perfect and best-idealized 3rd platform redundancy for data protection.
    4. Supremely useful in data isolation from backups and local archives in being online and offsite for long-distance security in isolation.
    5. *Level-1.5 security of your vital data.
    #5. DVD professional archival media
    Drawbacks:
    1. DVD single-layer disks are limited to 4.7Gigabytes of data.
    2. DVD media are, given rough handling, prone to scratches and light-degradation if not stored correctly.
    Advantages:
    1. Archival DVD professional blank media is rated for in excess of 100+ years.
    2. DVD is not subject to mechanical breakdown.
    3. DVD archival media is not subject to ferromagnetic degradation.
    4. DVD archival media correctly sleeved and stored is currently a supreme storage method of archiving vital data.
    5. DVD media is once written and therefore free of data corruption if the write is correct.
    6. DVD media is the perfect ideal for “freezing” and isolating old copies of data for reference in case newer generations of data become corrupted and an older copy is needed to revert to.
    7. Best-idealized 4th platform redundancy for data protection.
    8. *Level-3 (highest) security of your vital data. 
    [*Level-4 data security under development as once-written metallic plates and synthetic sapphire and likewise ultra-long-term data storage]
    #6. Cloud based storage
    Drawbacks:
    1. Cloud storage can only be quasi-possessed.
    2. No genuine true security and privacy of data.
    3. Should never be considered for vital data storage or especially long-term.
    4. *Level-0 security of your vital data. 
    Advantages:
    1. Quick, easy and cheap storage location for simplex files for transfer to keep on hand and yet off the computer.
    2. Easy source for small-file data sharing.

  • HT1941 I have inadvertently changed a file permission setting. When opening Aperture I get the following; Aperture cannot access this library. To use this library make sure it's file permissions are set correctly. I am an old dude new to Mac OS. What up?

    I have inadvertently changed a file permission setting. When opening Aperture I get the following; "Aperture cannot access this library. To use this library make sure it's file permissions are set correctly". I am an old dude new to Mac OS. Looked in settings but have no idea how to allow file sharing to myself. I have been using Aperture actively for 6 weeks. I'm the only one using this Mac. What up?

    Back up all data now.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. You can demote it back to standard status when this step has been completed.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:20 ~ $_ ; chmod -R -N ~ $_ 2> /dev/null
    Be sure to select the whole line by triple-clicking anywhere in it. You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. If you don’t have a login password, you’ll need to set one before you can run the command.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar. A text window opens.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • I am trying to reset my 4s iphone to the original settings and erase all my content. It is asking for a passcode which i have not used before. How/where do I get the passcode?

    I am trying to reset my 4s iphone to the original settings and erase all my content. It is asking for a passcode which i have not used before. How/where do I get the passcode?

    It needs the restrictions passcode. You or someone with physical access to the phone had to set it. It can not set itself.

  • Powershell using start-process OR Invoke-Item to access directory are getting warning permissions popup.

    I am new in PS so please forgive me for any idiocy I speak. I have a File Server in Windows 2012 R2, a couple days ago I added one domain user to local administrator group in this File Server. For any folder that I try to access I am getting the Warning message
    saying: "You don't currently have permissions to access this folder. Click Continue to permanently get access to this folder." When I click "Continue" the Windows grants to me the rights permissions, ok it is perfect but I have to do it
    for any folder in my file server.
    So, let's to I tried so far..
    I know I can use Set-acl to set the permissions to the user but for this likely I will need change almost the whole permissions structure.
    Actually I am trying use Invoke-Item and Start-Process to simulate the folder access and ofcourse the Warning permissions popup came up. What I am thinking about and can't realize is make each time the Warning permissions popup come up by using Invoke-Item
    or Start-Process whatever the Powershell automaticaly clicks on the "Continue" button.
    Any one can help me with, please?

    Hi Michel,
    you can circumvent the ACL System by enabling Backup and Restore privileges (when running locally). There's a
    great Module for that.
    However, for a more pragmatic approach, shouldn't access-permissions be handled using Domain Groups? If you want a File Server Admin, why not create a single group named "Data Administrators", set it to full control for all directories (that'll
    take changing the permissions once, which will probably take some time) and add that user to this group.
    That way, if you later want to have another user administrate the folder structure, all you need to do is change group membership. Furthermore it avoids having to add local administrative privileges for a function that doesn't really require them (least
    privilege best practice).
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • My apple tv 2 says I can't stream music from my iTunes library on my iMac without settng up iTunes Match. I don't want to set up iTunes match. How can I get back to the pre-Match system which let me just use home sharing to stream music from computer to A

    When I click on the Music tab on my Apple TV 2, a message tells me I have to set up iTunes Match to stream music from my iTunes library on my iMac. I don't want to set up and pay for iTunes Match. How can I get back to the pre-Match system which let me just use home sharing to stream music from computer to Aple TV

    Ditto.
    You need to look for your itunes library under Computers and select it, then music.
    Music column is for web based content not local content, just to confuse everyone.
    AC

  • How do I get AVG to scan my Yahoo.mail? AVG currently scans "Outlook" (which I don't use) but can't figure out how to switch that to AVG. Thanks

    Running Firefox 3.5 using AVG Free and Yahoo mail - need to know how to get AVG to scan Yahoo mail and not Outlook (which I do not use).

    Try asking at the AVG forum, that isn't a Firefox support issue.
    http://forums.avg.com/ww-en/avg-free-forum

  • Since I installed Nero 2104 I get an error message when I try to start iTunes: registry settings changed probably due to other cd/dvd burning program please reinstall iTunes, which I've done using repair option but the problem persists...?

    Since I installed Nero 2014 I get an error message when I start iTunes that registry settings for importing and burning cds/dvds have changed probably due to other burning software installed please reinstall iTunes, which I've done using 'repair' option, but the problem persists. I have been able to import cds to iTunes since I installed Nero, but it won't anymore. Does anyone recognize this problem and have a solution? Thanks for any help. Using Windows 7.

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes
    If you're still getting the error message (especially when you plug in the Touch), I'd check for a device filter confusion on the PC. (They can affect the connection of USB devices to a PC, as well as burning and importing CDs.) For that one, see:
    iTunes for Windows: Troubleshooting CD issues caused by device filters

  • Following a software update, I can no longer access/authorise music purchased via iTunes from my old Apple ID, which I have not used for 8  years, and no longer have password.  Any ideas how I can re-access/recover that music?

    Following a software update, I can no longer access/authorise music purchased via iTunes from my old Apple ID, which I have not used for 8  years, and no longer have password.  Any ideas how I can re-access/recover that music?

    Apple ID FAQs  >  http://support.apple.com/kb/HT5622

  • HT204053 I am not able to update my apps because every time I am doing this, it is asking for a password which I have never used and the person who used it is in no more contact. how can i get my id instead of his??

    I am not able to update my apps because every time I am doing this, it is asking for a password which I have never used and the person who used it is in no more contact. how can i get my id instead of his??

    Apps can only be updated using the same Apple ID and password they were originally purchased with.

  • Which table i can use to get standard price of previous periods ?

    Hello, all.
        Which table i can use to get standard price of previous periods ? Example, current period is 2008/11, i want to get the standard price of period 2008/05 .
    Thanks.
    Xinzhou.

    Look in MBEW and MBEWH.
    Regards

  • HT1937 How can I get to use my phone?  Much of it appears to be set up but when I try and make a call it tells me I have not been given access to this service

    How can I get to use my phone?  When I try and dial out it says:  'You have not been given access to this service'

    Have you chacked with your carrier.  The message you are getting seems to relate to a carrier issue and not something to do with the phone itself

  • HT201364 i am try to use my itunes which i have not used in a while trying to do all the upgrade. i have an older macbook but i cant download anything. so is apple saying that i will not be able to connect my iphone to macbook ever unless i get a new lapt

    i am try to use my itunes which i have not used in a while trying to do all the upgrades. i have an older macbook but i cant download anything. so is apple saying that i will not be able to connect my iphone to macbook ever unless i get a new laptop?

    Your MacBook is compatible with Mac OS X 10.6.8, which is the minimum required to install the current version of iTunes and sync devices running iOS 7. It doesn't need to be compatible with Lion, Mountain Lion, or Mavericks.
    (101906)

  • Which table field is used for getting Release quantity

    Hi friends,
    please tell me which table and field used to get "Release Quantity" also i want "Cumulative GR by release" table and field please do reply if u know.
    Thanks
    Yogesh

    Hi,
    RSEVENTCHAIN       Event
    Chain Processing Event Table
    RSEVENTHEAD        Header
    for the event chain
    RSEVENTHEADT        Header
    for the event chain
    RSPCCHAIN     Process
    chain details
    RSPCCHAINATTR      
    Attributes for a Process Chain
    RSPCCHAINEVENTS      Multiple
    Events with Process Chains
    RSPCCHAINT      Texts
    for Chain
    RSPCCOMMANDLOG     System
    Command Execution Logs (Process Chains)
    RSPCLOGCHAIN      
    Cross-Table Log ID / Chain ID
    RSPCLOGS
    Application Logs for the Process Chains
    RSPCPROCESSLOG     Logs for
    the Chain Runs
    RSPCRUNVARIABLES      
    Variables for Process Chains for Runtime
    RSPC_MONITOR     Monitor
    individual process chains
    Regards
    Ashwin

Maybe you are looking for

  • Problem with Hyperlinks - Creating Interactive PDF from an In-design Book

    Im working on producing a Interactive PDF from an In-design Book which consists of 9 Indesign Documents. The problem I am having is with Navigation when I export the pdf When I export out to 'Interactive' pdf the hyperlinks DONT link to other documen

  • Visual Voice Mail not working with Telcel

    I have 2 cell phones with Telcel in Mexico, one iPhone 4 (company) and an iPhone 5S (personal) On the company phone, Visual Voice mail works perfectly. But for almost a year I've been trying to get Telcel to fix it on my iPhone 5S with absolutely no

  • How to change account name for iCloud on ipad

    Hi, Recently needed to change my apple I.d.  It seems to have messed up my iCloud account.  When I go to update the iCloud info in my settings on my iPad, it shows the previous apple I.d. As the iCloud account name...  But, there doesn't appear to be

  • THROUGH HTTP CAN WE SEND FLAT FILE IN  PI7.3?

    Hi Experts, We have an requirement that Through HTTP can we send flat file in PI7.3.(For EX:source side HTTP and Target side is IDOC or PROXY) Can any one please suggest me how can I proceed for that? Please let me know if there is any Documents or B

  • Y R Logic sounds in iTunes ?

    I had to clean/wipe my OSX HD1 because of problems and re-installed Logic 8.    And after using it for a week or so, I noticed that iTunes was getting all these strange song pieces kinda at the end of my iTunes list.  some were  half a second to 2 ~5