Simple expression for the nested compositions

Hi all

I'm writing a simple expression to map the starting point of the effect of beam with a layer of a model. The result should be the beam from the pink square. The pink square is within a mobile model (model 'Start'). The other end of the beam is already connected in place of the violet (Comp 'end').

Here is a screenshot, you can download the project here: Microsoft OneDrive - access to files anywhere. Create docs with Office free online.

ae-beam-expression.png

Thank you!

simply use a control point dummy expression and plug it with a transformation of the layer space.

Mother = thisComp.layer ("preComp");

mPoint = mPre.effect ("Point")("Point");

mPre.toComp (mPoint)

Mylenium

Tags: After Effects

Similar Questions

  • How can I access the recipient "subordinate" in the expressions for the participant to ApprovalTask generator type "by the expression" value?

    Hello

    How can I access the recipient "subordinate" in the expressions for the participant to ApprovalTask generator type "by the expression" value?

    I can access some details of the beneficiaries of the workload, but how to access direct subordinates?

    TIA

    Leo

    Well, as I said, if you need to get a list of all rollover (for whatever logic you have), making calls to IOM to find the list of users whose Manager is the person in your composite.

    Sorry if I am wrong again.

  • Keyboard shortcuts for the video Composite and Audio Waveform

    I work in Premiere Pro CS6 on Mac OS 10.10.5. I am constantly switch between views video Composite and Audio Waveform in the Source monitor Panel. To do this, I have to use the mouse to click on the key icon, and then select one of the points just at the top of the context menu. My workflow would be so much faster if there was a keyboard shortcut.

    The official page of default keyboard shortcuts indicates no shortcut for these menu items. Mac OS system preferences > keyboard > shortcuts [shortcuts App] allows me to create shortcuts for application specific menu items, but not for context menus.

    Is there, however, a way that I can tell Premiere Pro CS6 to use a keyboard shortcut for the video Composite and Audio Waveform views?

    You can create your own... If you scroll the list link you to that, there is the Source section of monitor... which has options short keyboard available for your two wishes:

    Then, use Cmd / Alt + K to do your editing of the keyboard shorts... Scroll way down to find this section, then create a short. At the bottom, it will tell you if it comes into conflict with one another. Here I come to make Composite video, abbreviated as CC2015.2:

    By clicking on the line to the right of the effect you want to order makes these empty lines appear the "x" you will see in this view... click again and you can start typing your proposed short. If your entry on this line is already in use, will appear this very practical warning:

    So... do you some useful shorts!

    Neil

  • Regular expression for the format: 000-000 - 000000 000000

    Hi guys,.

    I need to validate the columns in a regular expression for the format of 000 000 - 000000 000000.

    For example - if the column contains a value such as "500 110 - 500044 000100" then it should return 'true' otherwise 'false. '

    Your timely help is well appreciated.

    Thanks in advance.

    Hello

    inDiscover wrote:

    Hi guys,.

    I need to validate the columns in a regular expression for the format of 000 000 - 000000 000000.

    For example - if the column contains a value such as "500 110 - 500044 000100" then it should return 'true' otherwise 'false. '

    Your timely help is well appreciated.

    Thanks in advance.

    If you want a regular expression

    REGEXP_LIKE (str

    {{' ^ {\d{3} \d{3}-\d{6} \d{6}$'

    )

    According to your needs.

    You don't need regular expressions for this.  It will be more efficient to use

    TRANSLATE (str

    '012345678'

    '999999999'

    ) = 999 999 - 999999 999999'

  • regular expression for the xml tags

    Dear smart people of the labview world.

    I have a question about how to match the names of xml text elements.

    The image that I have some xml, for example:

    Peter

    13

    and I want to match all of the names of elements, that is to say: no, son, grandson, age, regardless of any attribute have these items. There is a regular expression, I can loop, that can do this? (Something like "\<.+\> ". "") It is no good because it matches the entire xml string.) I'd really only two different expressions, one for the match start elements, e.g. and one for the correspondence of the elements, for example.

    Thanks for your help in advance!

    Paul.

    The site Of regular Expressions will be very convenient.

    They have some good tutorials on regexp with a demo of the XML tags:

    Here is a small excerpt:

    The regular expression <\i\c*\s*>matches an opening of the XML without the attributes tag corresponds to a closing tag. <\i\c*(\s+\i\c*\s*=\s*("[^"]*"|'[^']*'))*\s*>corresponds to an opening with a number any attributes. Put all together, <(\i\c*(\s+\i\c*\s*=\s*("[^"]*"|'[^']*'))*| i\c*)\s*="">corresponds to an opening with attributes or a closing tag.  (source)

    If you want advanced XML analysis I suggest JKI XML toolkit.

    Tone

  • expression for the child attribute

    Hello

    I am very new to SOA BPEL. I have a query regarding the reading of an attribute in a Switch box. Excerpt from the result of a Web service Input:

    -< ns2:DataAttribute Name = "UD_ERPROLE" >

    -ns2:ChildRow Action = "Add" >

    < ns2:ChildDataAttribute Name = "Name of the role of ERP" Type = "String" Value = "ERPAccountPayable" / >

    < / ns2:ChildRow >

    < / ns2:DataAttribute >

    Now to switch-case, I can have 3 situation:

    UD_ERPROLE is not NULL

    Action is Add

    Equal to ERPAccountPayable role name


    Here, what can be the expression for case 3 switch above?

    first a I do: bpws:getVariableData('requestDetails_OutputVariable','RequestData','/ns16:RequestData/ns16:BeneficiaryData/ns16:Beneficiary/ns16:Entity/ns16:DataAttribute/@Name')

    but it helped... any help appreciated.

    Hello

    Not sure what you mean here...

    UD_ERPROLE is not NULL

    It seems that UD_ERPROLE is a value for the Name attribute, so if you try to get the first DataAttribute where Name = "UD_ERPROLE", the expression would be...

    /NS16:RequestData/NS16:BeneficiaryData/NS16:beneficiary/NS16:entity/NS16:DataAttribute[@name = "UD_ERPROLE"] [1]

    See you soon,.

    Vlad

  • Help in regular Expression for the beaches of limitation

    Hi, I'm working on the provision of a text field is limited to dates, it's just a part of the code. I already have the validation of the dates, but I am now limiting what the user enters using a regular expression. This code works a little however, it does not limit me for example I can enter more than 2 digits, but then he limits based on the total amount allowable so for example 8 digits are allowed if I just type. I need to stop after 2 digits then have a - then 2 other numbers then one - and then followed by 4 digits. I tried to limit each section and grouping as well. Any help would be greatly appreciated. Thank you.

    It is in the format code and I am the appellant in the key sequence.

    function DateKS () {}

    var value = AFMergeChange (event);

    If (! event.willCommit) {}

    Allow only characters that match the regular expression

    Event.RC = /^([0]{0,1}[1-9]{0,1}|[_1]{0,1}[012]{0,1}) ([-] {0,1}) ([0] {0,1} [1-9] {0,1} |) [12] {0,1} [0-9] {0,1} | ([3] {0,1} [01] {0,1}) ([-] {0,1}) ([0-9] {0,4}) $/ .test (value);

    }

    }

    I decided that control for 100 and 400 was not necessary because this event does occur that all 400 years. But I'm working on it further and changed even more. Here is my code to work.

    function isLeapYear (year) {}
    year return % 4 = 0;
    }

    function checkDaysInMonth (day, month, year) {}
    daysInMonth var = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

    If (month = 2) {}
    If (isLeapYear (year)) {}
    daysInMonth [1] += 1;
    }
    }

    return daysInMonth [month - 1] > = day;
    }

    function checkDateFormat (dateStr) {}
    var errorMsg = ",
    maxYear = (new Date()) .getFullYear (),
    minYear = maxYear - 1,.
    match = dateStr.match(/^(\d{2})-(\d{2})-(\d{4})$/),
    months,
    day,
    year;

    If {(matches)
    month = parseInt (matches [1], 10);
    day = parseInt (matches [2], 10);
    year = parseInt (matches [3], 10);

    If (month < 1="" ||="" month=""> 12) {}
    errorMsg = "invalid value for the month: ' + matches [1];"
    } ElseIf (day = 0) {}
    errorMsg = "invalid value for the day:" + match [2];
    } else if (! checkDaysInMonth (day, month, year)) {}
    errorMsg = "number of days for invalid month: ' + match [2];"
    } ElseIf (year < minyear="" ||="" year=""> maxYear) {}
    errorMsg = "invalid value for the year:" + match [3] + "-must be between" + minYear + "and" + maxYear;
    }
    } else {}
    errorMsg = "invalid date format: ' + dateStr + ' \r\nPlease use format: dd-mm-yyyy ';"
    }

    return errorMsg;
    }

    function checkReceivedDate() {}
    var value = AFMergeChange (event),
    errorMsg = ";
       
    ignore control if the value is blank, because this field is not mandatory
    If (! value) {}
    return;
    }

    If {(event.willCommit)
    errorMsg = checkDateFormat (value);

    If (errorMsg) {}
    App.Alert (errorMsg, 0, 0, "error");
    Event.value = ";

    Returns false;
    }
    } else {}
    Allow only characters that match the regular expression
    Event.RC = /^(?:0) [1-9]? 1 [012]?) ? -? ( ? : 0 [1-9] ? | [12] [0-9]? 3 [01]?) ? - ? 2? 0? [0-9] {0,2} $/ .test (value);
    Event.RC = / ^ \d{0,2}-?\d{0,2}-?\d{0,4}$/.test(value);
    }

    Returns true;
    }

  • GREP expression for the last line, followed by the column break

    For all of you who read this, thank you for taking the time to help. I'm a noob to JavaScript and GREP expressions, so thank you for all your time and help with this.

    I wrote a JavaScript script to help my company format some of our work more quickly. We have pre-made models with character Styles all implemented (body, header, BodyItalic) etc.

    My script works almost perfectly to identify patterns and apply the correct character style.

    However, my expressions do not work perfectly and last line of text in the text box (linked), which has a column break, do not get to the format.

    This last line is always different depending on the document. So I can't put in the constants. They are always variable.

    My current GREP expression is. + ~ M which, theoretically, should find any character who repeated one or more times and is followed by a column break. The problem is, he finds that the last two characters on the line which are followed by a column break.

    for example

    Tribute would be tribeTE

    Eulogy would be EuloGY

    etc etc.

    As you can see, they are not always the same words and could even be a short sentence so I can't just look like some words.

    I am trying to establish why the GREP expression does not. Maybe I use GREP evil symbols? I don't know, so any help would be appreciated.

    Thank you in advance.

    Scorpio

    This column break thing seems bugy. I have no idea why only the last two characters are found. If I try to find an entire word with \w+, which does not work. I get results as weird if I try to \b\w+~M. the good news, is that InDesign is no crash, here.

    However: There is no GREP to search a specific line, so I'm looking for a columnbreak and then for the line which belongs to the aware found:

    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "~M"; 
    var found = app.activeDocument.findGrep();

    if (found.length > 0) {
    for ( var i = 0; i < found.length; i++ ) {
      var curFound = found[i];
      var curLine = curFound.lines[0]; 
      curLine.fillColor = app.activeDocument.swatches[4];
    }
    }

  • Is there a control of the expression for the opening of a string?

    Hello

    Just curious, is there a control of the expression that allows a user to enter a string that could be read by the expression?  I don't see on the submenu Sub "> Effects options for expressions", but thought I would see if anyone has any ideas how to proceed without having to reference an external text file.

    Thank you for your time and help!

    -Laz

    Yes, it's possible, of course, and to make things even less intrusive, I couldn't access comment a layer attribute rather than rename them the current layer.

    But in my situation I am desirous of an AE to select artist in a closed set of channels.  I don't want to enter their own data for fear that there is something wrong with the formatting, etc.  I'd rather have a drop down of sorts for the selection.  Thus, creating null items in the project Panel, naming them with unique names, then dragging in the model and by applying an expression control 'Control of the layer' layer in quesiton, AE artist can choose one of these layers, and then my script can read the value of the control layer name.

  • Displays the dates of diff using PL/SQL expression for the item "display only"?

    Hello
    I have a single display element -: P2_FROM_Date. If his game, Fri, sat or Sun I want to put the date of the last Monday date. If its Mon, Mar or sea, it must be this date of Monday.

    Ex: Today is Friday and last Monday was 18.
    So yesterday, today, tomorrow and Sunday, the date appear as June 18, 2012.
    Since Monday to Wednesday, the date has to be the next that is Monday, June 24, 2012

    I tried under 'Source' from the element using PL/SQL expression and the body of the PL/SQL function. Does not

    Can anyone help?

    Thanks and greetings
    Umer

    1. you must set 'used source' "Always".
    2 If you use a PLSQL function as source type body should set a 'RETURN' statement like this:

    declare
    lv_date number;
    begin
    select to_char(sysdate,'D') into lv_date from dual;
    if lv_date=2 then
      return to_char(sysdate-1);
    end if;
    end;
    

    Published by: mario1977 on June 27, 2012 11:44

  • simple question for the first time the user: someone please be a hero

    Forgive the restorative nature of this question but the FM help files are surprisingly usless for the first time and users.

    I did successfully a rectangle graphic.  Now, I want to put some text in the rectangle.  I see that I can't just click on and type.  Apparently I have to, I don't know, do a "framework" of text or something?  I don't see why this is so complicated or why the help docs do not begin at the obvious base.

    Please throw me a bone and wander if this.  I use 9 FM, but I am sure that the version is not serious.

    Thank you!

    There are two possibilities to place text on a chart.

    One is to use the "text tool" in which you can type a string of text whenever you click on the slider.  You can format the string, but you cannot apply a character tag or a paragraph tag. And you can't put a carriage return make several lines; to do this, you need to add the additional lines of text.

    The line of text tool is the letter 'A' that appears in the icons when you consider > toolbars > toolbar graphics.

    Second method is to create a text frame, and then type in it. You can apply paragraph tags, tags of characters, use of CRs and so on in a text frame.

    Text frame tool is the small square with several lines in, just above the "A" icon in the Graphics toolbar.

  • regexp_substr: a regular expression for the separate comma operator of witn of string literals IN

    The following regular expression separates simple values separated by commas (SELECT regexp_substr (: pCsv,'[^,] +', 1, level) FROM DUAL CONNECT BY regexp_substr (: pCsv, ' [^,] +', 1, level) IS NOT NULL); Exampple: 300100033146068, 300100033146071, 300100033146079 returns 300100033146068 300100033146071 300100033146079

    This works very well if we use the regex with SQL IN operator select * from mytable where t.mycolumn IN (SELECT regexp_substr (: pCsv,'[^,] +', 1, level) FROM DUAL CONNECT BY regexp_substr (: pCsv, ' [^,] +', 1, level) IS NOT NULL);

    But this query does not work if the comma-separated value is a single literal string 'one', 'two', 'three '.

    Thanks for your reply. my request was mainly on regexp_substr.  Need to request was simple: any table with a column of varchar type can be used. Next time I'll give you an example.

    All ways working answer for my question is is SELECT regexp_substr (: pCsv,'[^, "] +', 1, level) FROM DUAL CONNECT BY regexp_substr (: pCsv, ' [^,"] +', 1, level) IS NOT NULL

  • Using an expression for the curves effect

    Hi guys,.

    I'm looking to use the wiggle expression red to the level of the curves effect to twinkle my normal colouring to the high red video.  However, I can not activate the expression field of the curves effect in the same way I can for others.  Is it because the curves work differently, and if so, what would be the best way to get the effect I'm aiming?

    Custom controls are usually inaccessible to the expressions, because there is no foolproof way of knowing how their internal data are formatted. It's just a big black hole and only the people who program tools know what is happening inside. However, your wiggle opacity should work. If it isn't, you can also use the effect mix melted between your original and a double with the applied curves for example. Or you make a wiggle right opacity with two duplicates in the first place. Depends on what you are looking for desire, as anturally, all the different methods result in different treatment, especially in 32bpc mode...

    Mylenium

  • Channel Express for the B2B and ARM

    Hello

    Can I use the same pair of expressways (exp - e and exp - c) for remote access business-to-business and mobile?

    Or do I need to use a pair for B2B and another for ARM?

    The warnings?

    Kind regards

    Christos

    The same pair of Core Expressway and Edge can be used for Business-to-Business and access to remote Mobile.

  • Regular expression for the characters of perticular?

    Hello

    I use jdev 11.1.1.7

    I need to validate the input field

    1 length should be 10 characters (alpha neumeric)

    2 first 9 characters are numbers or alphabets. for example: 0123ac456

    3. last character only alpahbet and those are ("A' 'B' 'C', 'H' 'J', 'K', 'L'"S""T""V""X".)

    I write like this: ^ [0-9a - z ABCHJKLSTVX] {10,10} $

    But we must all alphabet in the last takes not mentioned the letters...

    any body can help me...

    Kind regards

    User.

    Try the following reg exp.

    ' ^ [0 - 9a - zA - z] {9,9} [ABCHJKLSTVX] {1,1} $".

    Timo

Maybe you are looking for