Expression to replace the image according to the text of the layer.

Hello, I wanted to ask you is it possible to replace the image in the function composition text text layer. That is the text layer contains code # 34 and expression indicates what kind of image should be placed according to conditions in expression of image.

Sincerely, Deimantas

Hello

Expressions can not add/replace images.

All images must be here somewhere, in the form of layers in the model or in a precomp, but not only as items in the project Panel.

Then you can play with the opacity of these layers, with an expression of opacity to each of them:

textLayer = (pickwhip the text layer that transports information);

If (textLayer.sourceText == thisLayer.name) 100

0 otherwise;

The condition can be something different, for example "if (textLayer.sourceText is thisLayer.index"), etc, etc.

Not clear what should be this condition in your case.

Xavier.

Tags: After Effects

Similar Questions

  • Replace the layer of the history feature.

    Here is a little thing that I've been missing - the ability to replace a layer, with the stage of history active easily.

    As an example lets say you have an adjustment layer, which have recently changed you. Compared with the initial snapshot, the one created when you open the file, and you say: "hit on what I this session looks like complete garbage, I want to quickly replace a layer of the snapshot. A control-click and choose "Replace the layer of history" would be a quick way to do it. Of course, this will work with any layer.

    Of course, I am aware that it is a workaround where you can create a new document from any snapshot, then drag it to replace and delete the old layer - but this method click would be highly appreciated.

    Thank you, enjoying your love and support.

    xxx

    Hmm, an interesting idea.

    There will be some limitations: the depth, color and layer organization mode (at least close to the target layer) must match between States in history.   And I think he needs a little more the UI to make it understandable.

    That we will add to the wish list.

  • Replace the layer source footage with After Effects Composition

    Hello!

    I have a question about the workflow of dynamic linking between Premiere Pro and After Effects. As common for most editing workflows, I started by import and organize my source footage. I then cut the entire project using the original footage. Now, as he comes to effects and final optimizations, I noticed that there are several items that I need to work in After Effects.

    I know (and use) the function 'Replace with After Effects Composition', but this only works for an item in the Assembly. I have dozens of clips from same source footage and would simply replace the master-clip with a composition. In this way, I can do the AE-job once that overall the clip and the whole project remains perfectly organized.

    As I read elsewhere, there is no characteristic that makes this replacement directly. Trying to "Replace Footage" with one generates an AE-project error. After Effects render and replace the images with the rendered results (as advised in a similar topic) is no option, given that I'd lose dynamic links in this way. My question is: Y at - it another way or the workaround to replace my source footage of the layer with an After Effects composition?

    Thanks in advance for the help and advice!
    Best regards

    What you can get in the way you want.  Your best option is to export a new clip of the AE and use it to a replace operation in the tray.

    In the future, as a Pseudo-solution you can put the 'AE' in their own, dedicated footage clips and change using these sequences, as if they were real clips.  This would allow you to keep the dynamic link in place.

  • A Script to find and replace the layer names

    Is there scripts to find and replace the names of layers?

    There is an excellent script available for Photoshop that allows you not only to replace words in layer names, but also insert words as prefixes, Suffixes and sequential numbers.

    The version of the illustrator of this script allows only sequential numbering: it does not offer search and replace words.

    Ideally, it would be great if there were something that could find multiple and replaces in a go:

    (for example

    You have layers like this car, the dog, the bat

    You enter: because (Option1), dog (Option2), Bat (Option3)

    Your layers become then: option 1, option 2, Option3).

    )

    Big_SmiLe, which is a very good start! Step 1 of learning how to Script is indeed, by adjusting an existing simple script to make things more complicated. (And usually then "break something", which is also a necessary part of the process.)

    You are right your comment, it comes to repetitive things. For one or two different articles that wouldn't be a problem, but in the longer lists you are soon lost.

    As usual to work with lists of search - replace is to build a table:

    var layernames = [
    [ 'FHairBowlBoy *Hair', 'Hairboy1' ],
    [ 'FHairCurlyafroBoy *Hair', 'Hairboy2' ],
    [ 'FHairSpikyBoy *Hair', 'Hairboy3' ],
    ];
    

    The general idea is to loop through all the names, check if the current layer name is "layernames [i] [0]" (the left column) and if so, rename it "layernames [i] [1]" (the right column). If you know how to write a loop in Javascript, then you can implement this immediately.

    However...

    A more advanced method to do this didn't need even loop on all layernames - instead you can immediately 'get' the correct name by layer! It's magic! Almost!

    The trick is to use a Javascript object rather than a table. JavaScript objects are nothing special; "Layers" of Illustrator are an array of objects, and each object 'sex' has a 'name' property, which you can read and set the value. What I do here, is to create a new object, where the part 'name' is the name of the original layer and its value is the name of the new layer. All you need to check each layer is if there is a "object.originalLayerName" property and if so, assign its value to this layer name.

    It looks a bit like the table above, except that (1) you use {.} instead of [..] to create an object and (2) you add pairs "name: value" instead of 'value' only (in fact, the 'name' of a value in a table is simply her number).

    So here's what it looks like:

    // JavaScript Document
    var doc = app.activeDocument;
    // name indexed object
    var layernames = {
     'FHairBowlBoy *Hair':'Hairboy1',
     'FHairCurlyafroBoy *Hair':'Hairboy2',
     'FHairSpikyBoy *Hair':'Hairboy3'
    };
    // loop through all layers
    for (var i = 0; i < doc.layers.length; i++)
    {
     //Set up Variable to access layer name
     var currentLayer = app.activeDocument.layers[i];
     if (layernames[currentLayer.name])
     {
      currentLayer.name = layernames[currentLayer.name];
     }
    }
    

    Enjoy!

  • Duration of the layer adapts MainComp duration

    Hi guys,.

    I have this problem...

    I created a few videos with a progressbar... I created a comp with progressbar, with 10-minute...

    Now, I'm importing progressbar comp in the main computer, but I need, the time is automatically adjusted with the duration of the main computer, or better an audiosample...

    Is there a way to script to accomplish?

    Kind regards

    Michele

    You can also use the in and out point of an audio layer in the expression that I gave you. It would not cut your comp to the length of the audio layer but it would give you a progress bar that would scale up as the played audio layer. Try this by naming your audio layer "audio" and applying this preset (CC or later). It was a good idea that I built an animation preset to add to my library of more than 200 that I use all the time. Dropbox - progress to audio.ffx bar

    Just save the preset in your user presets folder and then find in the Panel effects and settings preset or click Browse for the preset from the Animation > menu to apply predefined Animation. This preset will give you a new shape layer at the bottom of a model of HD that is filled with a gradient and which can develop into the top of the left during audio playback. He does not cut the model at the right length of length but it will do the job.

    This is the expression:

    l = thisComp.layer("audio").outPoint - thisComp.layer("audio").inPoint;

    t = time - inPoint.

    x = Math.ceil (linear (t, l, 0, 0, 101))

    y = value [1];

    [x, y]

    The solution you gave my friend Mathias would work very well on an animated demo, but she also wouldn't give you a fully automated solution, which truncates your comp to the length of your audio or your video layers.

    You can also use the term in the expression instead of the layer and point to l. it would give you a progress bar which began to evolve with at the point of the layer and has continued to evolve until the end of the composition.

    l = thisComp.duration - inPoint.

    t = time - inPoint.

    x = Math.ceil (linear (t, l, 0, 0, 101))

    y = value [1];

    [x, y]

    There are many ways to achieve this with just an expression, but none of these will give you a fully automated way of creating a model with an audio layer and a progress bar that corresponds to the duration of the layer audio or video in the model. That takes a script.

  • Replace the header Image in Theme20

    Hello

    How can I replace the HeaderBg.jpg(which is a Header background Image) of Theme20 to any WorkspaceImage in userInterfaces-> Templates or Page templates.

    Tried these:
    < style type = "text/css" >
    .t20RegionHeader {background - image: url(#WORKSPACE_IMAGES#header_test.jpg) ;}
    < / style >

    Also tried to replace the url of the image to the image of workspace in the CSS, but not worked.

    Thank you
    Kumar

    >
    tried to associate the image of the application, but without success
    >
    Steps to assign the image to some application in your workspace
    (1) select The Applications database tab of The Application Builder
    (2) select your application from those listed
    3) click shared components
    (4) choose Images
    (5) create button press
    (* 6) select the application from the drop-down list *.
    (7) upload the image (crush him if it is downloaded before, or remove and then re - download it again)

    >
    Can you send me the complete tag in which the url of this background is incorporated.
    >
    1) go to shared components
    (2) select models
    (3) scroll down until you get to the selection of templates with references > 0 (this means that it is referenced by your pages) in my case (according to the chosen theme), I pressed the link of No. Tabs - right Sidebar (optional / based on a table)
    (4) in the Body section, you will find code like this

    
    
    #SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#
    #REGION_POSITION_02##BOX_BODY##REGION_POSITION_03#

    and inside the div with id = logo insert the following parameter

     style="height:150px;background:url('#APP_IMAGES#MYHEADERBG.png') repeat-x;" 
    

    If it helps, please mark it as useful
    If it solves the problem, please mark it as correct

    Best regards

  • Hi, I recently bought an iPhone 5s. Now, according to the sources, the new "5se" would probably replace the ' 5s ' in the near future. I'm afraid that I won't get it more updated and after sales support for my 5 seconds (if any problem is found). Is this

    Hi, I recently bought an iPhone 5s. Now, according to the sources, the new "5se" would probably replace the ' 5s ' in the near future. I'm afraid that I won't get it more updated and after sales support for my 5 seconds (if any problem is found). Is this possible? Apple will provide an upgrade for free or minimum package 5se 5 seconds it's users?

    The terms of the terms of USE on this forum we cannot speculate on what Apple may or may not do. That being said, there is no priority for what you ask. There is no way of knowing how long your device will be able to continue to upgrade to new versions of iOS. As long as he is able to run the new versions of iOS, it is fully supported. This is the level of iOS, not the hardware that is important here.

    See you soon,.

    GB

  • I have the network wireless with an extreme airport using my base station that dessert 4 Airport expresses. I want to replace the base station with a time capsule from apple.  Are there specific instructions other that connect the new time capsule

    I have a wired to the internet using my base station for 4 expresses the hard extreme airport.  I want to replace the base station with a time capsule.

    It is also easy to replace the existing base station and adding the name of the network and the password?

    You should be able to transfer your configuration of your current access point to new, and then you would just set up the internal drive, try to look at these articles:

    ith-new http://www.TechRepublic.com/article/apples-Airport-extreme-out-with-the-old-in-w.

    -one-airport-extreme-or-time-capsule-to-http://www.iclarified.com/31189/How-to-Transfer-Your-configuration-settings-fromanother

  • replace the uniqueness and leave those in expressions

    Hello

    I'm looking for beautiful and elegant solution to my problem. Let's say I have a string "e + exp (e)". I want to replace all 'e' by '1', except for "exp". I tried to use regular expressions, but I failed an hour later... The solution should be able to resolve things like replace "a" to "r (a)" without changing the rand. Basically, I need to replace the uniqueness without replacing those words or phrases.

    Any ideas?

    No time for elegance now, just brute force.  I would touch the string with spaces at each end to remove end cases and then look for the character surrounded by non-alphabetiques characters.

  • 2605dn: mirrors image 2605dn - replace the drum unit? How

    Hi I have HP Color Laserjet 2605dn. Recently, I replaced the black ink cartridge. However, now when I print, I feel in black or color, it reflects the part of the image on the page. I calibrated and cleaned and ran reports of the printer. It prints fine, but when I print from my browser or application it reflects the image on the page. Please see attached.

    How can I fix?

    Will I need a new drum? If so, where can I buy it and how to replace it?

    As I said in my first answer, is the black toner cartridge.  You got a bad.

  • an imaging drum replaces the individual color cartridges

    Noticed that an imaging drum is available for laser all-in-one HP M177fw. Question: an imaging drum replace toner cartridges (4) or the drum is a requirement for a separate equipment?

    Imaging drum is separated from the toner cartridges.  document here can help determine if you need to replace the drum for Printer Color Laserjet M177fw.

  • Outlook Express 6 is the e-mail client 'default' in Works 8.5, can remove this icon and or replaced by Outlook 2003 or the 'other' no matter what version of outlook?

    Hi all

    I have an old Dell Dimension 2400 desktop running Windows XP Pro. It has Microsoft Works 8.5, which contains a reference to Outlook Express 6 icon, so that it can be launched from inside Works 8.5.

    I use NO Outlook Express 6, because I have Outlook 2003 AND Outlook 2007, can I use on it instead, if I want to - which I am not at the moment.

    Anyone in this community know if it is possible to remove the icon from Outlook Express 6 to Works 8.5.

    (and possibly 'replace' the icon with one for Outlook 2003 so that THIS 2003 version opens instead?)

    There is no icon in Add/Remove programs for Outlook Express, or y at - it one in the "all programs" list. Is it possible to uninstall Outlook Express Windows XP completely somehow so that it does not Works 8.5 launch when a user clicks on its ' icon?

    This version of Outlook Express does not work anyway (I tried to set up accounts in there, but they do not work even with the correct details) so it's wasting space on this little hard drive.

    I want to be able to implement this old pc - that works fine as long as I accept his ' limits (Intel Celeron 2.4 Ghz single core cpu, 2 GB of Ram, 80 GB HDD)-for the nephews and my 11 years old 7yr to use it safely for the duties of the school, (I have a copy of the Encyclopedia Britannica 2006) , basic base 'games for kids' Web site, when they come to visit. My nephews have not much experience pc anyway and have no interest in the emails.

    There is no other applications on it (which were not ' provided with Window XP Pro") for the moment, outside Works 8.5 and Windows Live nephews will have access to.

    Norton Internet Security 2012, Norton Utilities, Norton go back 4.2 and control Parental Norton will be also created on this pc with Admin access only.

    Otherwise, anyone here know of any 'other' app is similar to 8.5 Works that have the same characteristics of the task/project based - but without email - that I could use instead, which would continue to operate on an old XP pc?

    I would greatly appreciate any ideas or advice from someone who wants to give it.

    Thank you!

    Bob

    I can probably only partially help because I've never used Outlook or works.
     
    Outlook Express is a part of XP, so it cannot be deleted, and probably, it takes less space than Norton.
     
    Control Panel | Add/Remove programs. Add/Remove Windows components. Find Outlook Express and uncheck the box.
     
    Control Panel | Add/Remove programs. Set Program Access and Defaults. Custom + down arrow | Select the option for Outlook 2003.
     
    Start with that and see where you are.
     
    Microsoft Office Outlook forums can be found here.
    http://answers.Microsoft.com/en-us/Office/Forum/Outlook?tab=all

  • Replace the Windows 8 of HPs recovery image with windows 8.1

    Hello

    Is after going through the upgrade process to windows 8.1 on my HP Envy X 2, now possible to replace the recovery image by default on my partition recovery with one for version 8.1?  I don't want to have to re - update if I do a "refresh your PC without affecting your files' or 'remove all and reinstall Windows.

    Is it possible and supported by HP to change the recovery image in the recovery partition?

    If so, is there any procedure for support to do?

    Concerning

    Anthony

    Sorry, but no.... the Windows 8 by default on the HP Recovery partition recovery image is the only one available. It's the image of origin provided by HP and there is no procedure or the option to change or replace this image with a newer version.

    Please see HP Forun thread titled "8.1 recovery disks" for more information on this topic. My suggestion is to use Windows "Backup of System Image" utility to create a picture of the partition Windows 8.1 as it is currently, on an external hard drive. If your computer develops questions or you need to replace the hard drive, all you have to do is to "restore" the image on the computer. Please see Windows 8.1 Tip: use System Image backup for instructions on creating and restoring a 'Windows - System Image backup.'

    If you have any other questions, feel free to ask.

    Please click the White Star of KUDOS to show your appreciation

  • Replace the text box with Image through breakpoints

    Hello

    I'm looking to replace the text boxes and icons with images and want to know if I can do this on several break points at the same time without having to go and manually change each breakpoint.

    My site is here: Movement of Boulder

    In the Services section of the wider breakpoint, you can see the images that I want, but if you minimize the browser window, you will see the images and the text that he was supposed to replace. Is it possible to replace all the text boxes with the images you want?

    Hello griffinb,

    If you delete a breakpoint text areas, they will be removed from all.

    After you have placed your image just right-click on it and select the option ' copy the style and position > to other breakpoints.

    Let me know if you have any problems getting there.

    Kind regards

    Ankush

  • Replace the image in a model created in After Effects

    I created a model intro to After Effects that has little text and the animation of a masked image. If I import this model ASP in Premiere Pro, I can easily replace the text, but I can't find a way to replace the image too.

    Is this possible? How?

    If I understand what you're asking, yes it is possible. I place the image in a sequence, use the corners effect to adjust the shape of the frame, remove in the middle of the image, place the image behind and used the corners on the photo to match the frame.

Maybe you are looking for