Re-using expression-generated values to input into other expressions (read-out)

Hi there everyone. I was wondering if there is a way to 'capture' expression generated values and either buffer these values or re-using them directly in other expressions. I am trying to track rotations of parented layers, which are generated from the DuDuf IK expressions. Getting the rotation through a pick-whip will always return zero, of course; but as After Effects is able to physically show the expression generated value as a number, I guess it should also be able to output this number somewhere as a (buffered) digital value to be re-used somewhere again.
Anyone ideas?

Hi Dan, good to hear from you. I know, it sounds that easy. I'll try to explain this thing with a little more detail. If I can find a way to tackle this challenge, it will save me about 60 hours rendering each time this job passes my desk.
I have a standard (5 sec.) comp with four lines of text in just one font with a fixed size and everything. As explained before, I run a script that generates between 300 and 400 copies of this comp, giving each new comp a logical and unique name, ánd... replacing the contents of all text lines in every copy of the comp. Now the first line of text is easy: just a number. It's left justified and the layout is always correct. The second, third and fourth line are actually a few people's names (the whole comp is actually a crew title for participants in the Dakar rally), where every name is followed by a three-character nationality abbreviation, like USA, or GER or FRA and so on. You must understand that the comp is built up in seven independant text fields, of which each one gets its content automatically through the mentioned script from an Excel sheet. Now here is the problem:
The designer who created the layout for the titles wants to have the three-character nationality abbreviation exactly one character space BEHIND the name in every title. Ofcourse, the name (set in its own text field and AE layer) is pretty variable in length, so the position of the nationality field that comes right next to the name field, needs to be automatically adjusted in accordance with the name field length. To determine this position, the designer wrote (or adapted) an expression that samples the 'image' of the preceding name title, thus finding the rightmost white pixel (the titles are all simply white on black) and thus, with a certain offset, generating the right basic position for the following title.
Now I thought I checked thoroughly for a possibility to extract the rightmost 'bounding box line' of a title in another video layer in AE somehow, and I couldn't find it; whereas you mention this can be done. If that is really possible, it would save my day...
All I ran into was that text layers are always comp size (thisLayer.height and thisLayer.width always give 1920x1080 in an HD comp, no matter how small the text in the text layer) and therefore it seemed impossible to me (and the man who wrote the expression probably) to get any useful info concerning the characters positions and bounding boxes etc.
So: how can this be done? How can I measure directly what the position value of the rightmost pixel of a line of text is and pass that on to another layer's position? In that case I can work around the time consuming sampleImage expression.
I'm sure someone is going to send you a big bottle of wine on this one .... :-)

Similar Messages

  • Using limiters.. Meters exceed levels, but volume read out stays at 0.0

    I just have a question that might be a mastering question I suppose..
    But, on occasion if I record on to a track or if I have a limiter on a track, the volume read out of the track will remain fixed at 0.0, but the levels appear as if they would be exceeding the meter and consequently clipping if they were "allowed" to clip (if, for instance, no limiter were placed on the track)..
    Is this good or bad practice? Should the decibel level be kept below the 0.0 level?

    It's solved, but not by upgrading upower (although it might be the cause because I updated that package some days ago). I don't know which package solved it, but it has to be one of these:
    [2013-10-27 10:07] [PACMAN] Running 'pacman --color auto -Sy'
    [2013-10-27 10:07] [PACMAN] synchronizing package lists
    [2013-10-27 10:07] [PACMAN] starting full system upgrade
    [2013-10-27 10:07] [PACMAN] Running 'pacman --color auto -S -u'
    [2013-10-27 10:07] [PACMAN] starting full system upgrade
    [2013-10-27 10:09] [PACMAN] upgraded ucommon (6.0.7-1 -> 6.0.7-2)
    [2013-10-27 10:09] [PACMAN] upgraded ccrtp (2.0.5-1 -> 2.0.6-1)
    [2013-10-27 10:09] [PACMAN] upgraded e2fsprogs (1.42.8-1 -> 1.42.8-2)
    [2013-10-27 10:09] [PACMAN] upgraded handbrake (0.9.9-3 -> 0.9.9-4)
    [2013-10-27 10:09] [PACMAN] upgraded libevent (2.0.21-2 -> 2.0.21-3)
    [2013-10-27 10:09] [PACMAN] upgraded libimobiledevice (1.1.5-1 -> 1.1.5-2)
    [2013-10-27 10:09] [PACMAN] upgraded liblrdf (0.5.0-1 -> 0.5.0-2)
    [2013-10-27 10:09] [PACMAN] upgraded recode (3.6-7 -> 3.6-8)
    [2013-10-27 10:10] [PACMAN] upgraded shared-mime-info (1.1-1 -> 1.2-1)
    [2013-10-27 10:10] [PACMAN] upgraded spandsp (0.0.6pre21-1 -> 0.0.6pre21-2)
    [2013-10-27 10:10] [PACMAN] upgraded speech-dispatcher (0.8-1 -> 0.8-2)
    [2013-10-27 10:10] [PACMAN] upgraded vigra (1.9.0-6 -> 1.9.0-7)
    [2013-10-27 10:10] [PACMAN] upgraded wavpack (4.60.1-2 -> 4.70.0-1)
    [2013-10-27 10:10] [PACMAN] upgraded wine (1.7.4-1 -> 1.7.5-1)
    [2013-10-27 10:10] [PACMAN] upgraded zziplib (0.13.62-1 -> 0.13.62-2)

  • How to connect external inputs into cluster elements?

    Hi all,
      I have a subvi have a cluster embeded
    I want to control the "enable" element from outside but I cannot wire the input terminal on the icron to the enable element. So how can I control the individual element of a cluster from outside?
    Solved!
    Go to Solution.

    udka wrote:
    One way is unbundle cluster, get the outside value from enable control and again bundle it with other two values. Since that is cluster, group of all those three you can connect entire cluster as terminal.
    Thanks for reply. What I want is to update one element in a cluster and keep the others elements unaffected. If I understand you correctly, you suggest to pass the cluster strcutre from outside the vi, unbundle it inside the vi, using the enable value from outside and other two elements from inside to bundle a new cluster and pass it to the vi's original cluster. Yes, this way works. But in my future development, I have a very big cluster with so many elements, I just want to update few of them and keeps the others unchanged. The way you suggested works but not that practical. Is that any simple way to do that? Thanks.

  • Create new component into other component

    I just want to insert a component into other component (2nd level), I achieve to insert component into an Ibase but only in the first level.
    I use the function CRM_IBASE_COMP_CREATE for create 1rst level components, but seems don't work If I try to put any component on the second level.
    Can anybody help? Many thanks!

    Thanks Vishant Jain,
    But seems the configuration it's ok, I can generate components (family 102) into other component (family 101) with transaction ib52.
    When I generate the first component (101), seems all ok, I can ib53 and see the result, but, when I try to generate 102 with 101 like ibase, I have the "No ibase found" message and, as expected, i can't see the ibase ralationed with 101.
    In fact, when I create the first compnonent, sap generate a new register in table comm_product but not in ibib table, and then, when a tried to assign the 2nd level component I can't assign to the 1rst level component because it isn't an ibase.
    Can anyone help?
    Thanks!

  • GB into other programs

    I often have people who want to collobrate on projects. If they have GB or Logic I know we can . Does anyone know what other programs that you can simply drag a GB or Logic file into and have them to work faily easy ?  Programs like Pro Tools , Reason , Cubase ....
    Or do know you a link I could find that info on.

    There is no such program. For other DAWs, you have to export the single tracks as audio files ("bouncing" in Logic.) Logic can also export your software instrument tracks as a midi file that you can load into other programs.

  • Generating values using Regular Expression

    Can values be generated using Regular Expreession?
    I want to generate unique string values on the fly using secified Regular Expression.
    Thanx in advance.
    Message was edited by:
    Kaustubh

    i do not know if there is something that can do it automatically but let's say you have the following regex:
    "a number of 5 digits" then "2 letters" then "a hyphen" and then "a digit"
    what you can do is something like that:
    define the vars that will allows you to pick a value for each part of the generated value
    this means you will have:
    final int[] DIGITS = new int[]{0;1;2;3;4;5;6;7;8;9};
    final char[] LETTERS = new char[]{'a', 'b', ... 'z'};
    final char HYPHEN = '-';
    once you have those vars, all you have to do is to use "Random" class to retrieve a random value from DIGITS and LETTERS
    append them all in the correct order , without forgetting to append the HYPHEN and you have your value

  • How to use the prompted value in the filter expression

    Hi
    Is it possible to use the prompted value in the filter expression?
    My requirement is that user will be prompted for a date field and I need to filter the records such that the records are displayed for the last 5 weeks from the date entered by the user.
    If somehow I know how to use the prompted value in the filter expression then this requirement is easy to be done. If this is possible, please guide me?
    If there are other ways to acheive the desired results then please suggest.
    Thanks
    -Jaz

    Edit: example added
    SQL> create table tb_test
      2  ( id number(5)
      3  , tot number(5)
      4  , mon_tot number generated always as (tot*15) virtual
      5  );
    Table created.
    SQL> insert into tb_test (id, tot) values (1, 5);
    1 row created.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1          5         75
    1 row selected.
    SQL> update tb_test
      2  set    tot = 15
      3  where  id = 1;
    1 row updated.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1         15        225
    1 row selected.

  • Using unbounded item value for rendering expression in a region

    Hi there,
    I use jheadstart 11g tp2.
    I have a question about a group in application definition module which all of the items are unbounded.
    For 3 of them I use text input lov which related to lov that is bounded to a view.
    I use the return value of the lov for filling unbounded items and I want to use that filled unbounded item for rendering expression of a region.
    my problem is after using lov I can't use the binding value of the unbound item (which filled by returning value from lov) for another part of the the group
    I have a region that should be visible and invisible based on that item
    Please let me know is there anyway for doing this or not?
    Thanks for your help
    Setareh Rajaei

    the unbound item has a variable binding in the page def, so you can refer to the value of the unbound item using the expression
    #{bindings.[groupName][itemName].inputValue}
    Steven Davelaar,
    Jheadstart Team.

  • Using for-each for input into a database adapter

    As input to a Web service I have an XSD that has parent elements and two unbounded child elements. I want to use XSLT to loop through the child elements to include them as comma separated strings for use in an IN clause in the query of the database adapter. I have the following XSLT in the input to database adapter XSL:
    <db:child_elements>
      <xsl:attribute name="xsi:nil">
        <xsl:value-of select="/inp1:path/inp1:to/inp1:child_elements/@xsi:nil"/>
      </xsl:attribute>
      <xsl:for-each select="/inp1:path/inp1:to/inp1:child_elements/inpl:child_elements">
        <xsl:value-of select="."/>
        <xsl:if test="position() != last()">
          <xsl:text>,</xsl:text>
        </xsl:if>
      </xsl:for-each>
    </db:child_elements>I am getting three error:
    1) Error: Invalid Usage of <for-each> Element
    2) Error: Invalid Usage of <if> Element
    3) Error: This node is already mapped, repeating nodes not supported : "/db:databaseAdapterInput/db:child_elements"
    Any idea of what the problem is here? Are for-each loops and if statements simply not allowed in Oracle SOA Suite? Thanks in advance!

    For SQL Server 2005+ you can use the OUTPUT clause. E.g.
    DECLARE @Source TABLE ( ID INT, Payload INT );
    DECLARE @Destination TABLE
    ID INT IDENTITY ,
    Payload INT
    DECLARE @IdentityValues TABLE ( ID INT );
    INSERT INTO @Source
    VALUES ( 1, 1 ),
    ( 2, 2 ),
    ( 3, 3 );
    INSERT INTO @Destination
    ( Payload )
    VALUES ( 0 );
    INSERT INTO @Destination
    ( Payload )
    OUTPUT INSERTED.ID
    INTO @IdentityValues
    SELECT S.Payload
    FROM @Source S;
    SELECT D.ID ,
    D.Payload
    FROM @Destination D;
    SELECT IV.ID
    FROM @IdentityValues IV;

  • Not allows to assign default value to input field using values in datastore

    Hi Masters,
    Consider that I have one input field in a form. I should assign default value to it. I should assign to it, the value which i have stored in a datastore. When i run the application, if i give default value as 123 ,then it is working fine i.e., it is showing 123 in the textfield in form , but if i give the default value as STORE@ProductId, then it is not displaying that value in the form.
    Please help me out.
    Thanks & Regards,
    Kaushik Sreeram

    Hi,
    i faced this problem and here's what i concluded:
    There's no way you can set default value for input field dynamicly, since the default value of input control is caculated only once (i think on initializing of the iView). The input control and the data store are initialized at the same time, STORE@productID is empty that time...
    If you don't need to recieve value through the input field you're trying to initialize, but just to display the value from the store - I suggest you try using another control - Expression Box. It's value is calculated continiously, just like the Label's, and you can refere to it later.
    Regards,
    Yulia

  • $ expression while creating Query using Query generator

    hello friends,
            I m using qurery generator for Approval templates. I want Quantity value of GRN at a runtime.So for that I have to write a query I got some example of that for Business partner this is done using $[$3.24] for card code in business partner.But I want to know about this $ expression with following number.
    I found this query while searching
    SELECT (T0.[CreditLine]-$[$3.24.Number]) FROM OCRD T0  INNER JOIN POR1 T1 ON T0.CardCode = T1.BaseCard WHERE T0.[CardCode] = $[$3.18]
    Plz tell me abt this $ expression frm where its come.Is it store somewhere??
    Thanks & Regards,
       Swati
    Edited by: Rui Pereira on Dec 23, 2008 4:49 PM

    Hello Swati,
    It has something to do with Format Search. Please find the attached for Format Search Introduciton. Or you may go to Forrum  [SAP Business One|SAP Business One Application; for more information, which is the right place for this question. Thanks.
    Regards, Yatsea

  • Using a variable value from when page was generated

    I have an application that can popup in separate windows multiple instances of the same Apex page. At the time of generation of the first instance, P1_key is 100. The user then opens a second instance of the same apex page with the current value of P1_key equal to say 200. If the user submits the first instance of the page, I want to use the previous value of P1_key, 100, to update that row in the database. The application wants to use the current value of P1_key, which is 200. So the user thinks he's updating record 100, but, in effect, is updating record 200. How do I get Apex to recognize the value of a variable at the time the page instance was generated, even though the current value of the variable may have changed due to a second (or third) instance of the page having been opened?

    Could I open the page in its own session possibly, in order to prevent Apex State management from always utilizing the "current" value?

  • "Message from Webpage (error) There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."

    I created a site column at the root of my site and I have publishing turned on.  I selected the Hyperlink with formatting and constraints for publishing.
    I went to my subsite and added the column.  The request was to have "Open in new tab" for their hyperlinks.  I was able to get the column to be added and yesterday we added items without a problem. 
    The problem arose when, today, a user told me that he could not edit the hyperlink.  He has modify / delete permissions on this list.
    He would edit the item, in a custom list, and click on the address "click to add a new hyperlink" and then he would get the error below after succesfully putting in the Selected URL (http://www.xxxxxx.com), Open
    Link in New Window checkbox, the Display Text, and Tooltip:
    "Message from Webpage  There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."
    We are on IE 9.0.8.1112 x86, Windows 7 SP1 Enterprise Edition x64
    The farm is running SharePoint 2010 SP2 Enterprise Edition August 2013 CU Mark 2, 14.0.7106.5002
    and I saw in another post, below with someone who had a similar problem and the IISreset fixed it, as did this problem.  I wonder if this is resolved in the latest updated CU of SharePoint, the April 2014 CU?
    Summary from this link below: Comment out, below, in AssetPickers.js
    //callbackThis.VerifyAnchorElement(HtmlElement, Config);
    perform IISReset
    This is referenced in the item below:
    http://social.technet.microsoft.com/Forums/en-US/d51a3899-e8ea-475e-89e9-770db550c06e/message-from-webpage-error-there-was-an-error-in-the-browser-while-setting?forum=sharepointgeneralprevious
    TThThis is possibly the same information that I saw, possibly from the above link as reference.
    http://seanshares.com/post/69022029652/having-problems-with-sharepoint-publishing-links-after
    Again, if I update my SharePoint 2010 farm to April 2014 CU is this going to resolve the issue I have?
    I don't mind changing the JS file, however I'd like to know / see if there is anything official regarding this instead of my having to change files.
    Thank you!
    Matt

    We had the same issue after applying the SP2 & August CU. we open the case with MSFT and get the same resolution as you mentioned.
    I blog about this issue and having the office reference.
    Later MSFT release the Hotfix for this on December 10, 2013 which i am 100% positive should be part of future CUs.
    So if you apply the April CU then you will be fine.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • I have manually inputted data into a blank spreadsheet and would like to use a form to enter data into that sheet !!! How do I do that please

    I have manually inputted data into a blank spreadsheet and would like to use a form to enter data into that sheet !!! How do I do that please

    Leigh,
    After creating your table, Tap the Tab marked "+" and select "Form" - you will be asked which table to use. (You should get into the habit of naming your tables - if the table name isn't visible, select the table and tap the Styles (Brush) Menu > Table > Turn ON table Name, then double tap on the Table to edit it.)
    Select the table you wish to to fill with a form and you will see a new form based on the header data.
    The form will allow you to add one row at a time and when you get to the last row, there is an option at the bottom of the form to add a new row using the "+" button. At the top of the form is the row header which you can rename by double tapping.
    You can also rename the form on the Tab by double tapping on the name.
    Try it out.

  • System generated value for a field and incrementing (using module pool pro)

    Hi,
    I'm getting system generated value for a field and incrementing (i.e done by coding) when i'm saving the screen or transaction (which is created using module pool programming) while modifying, saving its working fine, but when i'm going out of the screen or exit n again i start the screen (with some ztransco) the value for the field again starting from 0 so i want to start from the same value for a field where we exit or got out from the screen n incremented respectively while saving the screen,
    Thanks & Regards,
    MS
    Edited by: Rob Burbank on May 4, 2010 10:40 AM

    Search the forum for number range objects.
    Rob

Maybe you are looking for

  • Multiple rows into a single row.

    Table structure: CREATE TABLE JOB_ERROR_MESSAGE_TMP ERROR_LOG VARCHAR2(1000 BYTE) This table gets populated with multiple records (approx 20) from the log file of my application. Example of Data (12 rows below): ERROR_LOG XXXXXXXX(Error)-ORA-01756-ZZ

  • RFC RSPC_API_PROCESS_GET_JOBS - RFC_EXCEPTION  Error code: 2

    Hi All, I am very new to SAP , i am running the SAP Process chain by Control-M, when try to run the job i am getting error as shown below , can you explain m what it is , CONTROL-M/CM for SAP detected the following SAP error:      Error message: RFC

  • I have my laptop networked to my printer

    Can someone help me here, whenever I open the hp solutions center page and I put in all the information then do the test run it's giving me an error saying check the device what could be wrong?

  • EMac won't Boot - different than other problems....

    I recently salvaged an eMac G4 700mhz. Upon powering it up it sticks on the initial load screen (gray screen with just a spinning circle) I did a little research on these boards and decided to try a few things people mentioned. One - startup from OSX

  • Error in printing on windows2000

    I am getting this error while printing my reports from a client machine. I have installed developer 6i forms runtime and reports runtime on the client side while windows 2000 is the operating system. The error message I am receiving is, REP-1849 Fail