How to write living expressions using Extendscipt?

Hello

I'm trying to write a script for after effects CC using Extendscript. I was wondering if it is possible to add living property of layers as expressions"thisComp.layer("Layer 1").transform.position" and so on.

Hoping that it is possible.

Thanks in advance

Don't know what you mean by 'Live', but adding an expression to a property is fairly simple with ExtendScript.

If you have a variable path or directly to your layer...

LAYER_OBJECT. transform.position.expression = "o = wiggle (5, 10) \rw";     The \r is a carriage return, or you can use \n for the new line. Both work on Mac. Showing that just in case you need expression multiline.

Tags: After Effects

Similar Questions

  • How to write a file using BB 10 HTML5WebWorks

    Hello

    How to write a file using Blackberry 10 HTML5WebWorks API.

    https://developer.BlackBerry.com/HTML5/API/BlackBerry.IO.file.html#.SaveFile

    The example above does not work in BB 10.

    Please guide me.

    Of course, look at line 95 of this file:

    https://github.com/BlackBerry/BB10-WebWorks-samples/BLOB/master/invoke/invoker/invocations.js

  • How to configure Outlook Express using a hotmail account by using a USB from Rogers modem to connect to internet

    I have my hotmail account set as Microsoft Outlook on the laptop using a USB from Rogers modem to connect to internet (I put in place using outlook connector).  I want to configure my hotmail account in Outlook Express (I don't think that we can have two separate accounts of Microsoft Outlook email on a laptop).  I'm absolutely baffled as the server name, incoming and outgoing mail server addresses.  By Rogers Web site, the incoming server is POP3 incoming mail server: pop.broadband.rogers.com and mail server: smtp.broadband.rogers.com that does not work.

    Thanks for your help,

    Carol

    The parameters you listed are for a Rogers.com e-mail account, not for a Hotmail account.  Please see How to add your e-mail to Microsoft Outlook Express account to the right settings.

    BTW, you can have two separate accounts of Microsoft Outlook on a laptop.  Here are two ways to do:

    • If you and your partner have separate Windows user accounts, you will automatically have separate Outlook accounts.
    • If you use the same Windows user account, create a separate profile for each of you in Control Panel > Mail .

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • How to write queries nested using the DB adapter?

    I want to write a request nested by using the help DB adapter box...

    SELECT INVOICE_ID, FILE_NAME IN BILLING_INVOICE_PDF_V where FILE_ID =)

    (SELECT MAX (FILE_ID) FROM BILLING_INVOICE_PDF_V WHERE (INVOICE_ID = '12345'))) ;

    Thank you

    RAM.

    Hi Ram,

    It's probably the semicolon at the end of the SQL statement that causes the db adapter for error; Simply enter the SQL custom without a semicolon at the end.

    SELECT INVOICE_ID, FILE_NAME IN BILLING_INVOICE_PDF_V where FILE_ID = (SELECT MAX (FILE_ID) OF BILLING_INVOICE_PDF_V WHERE INVOICE_ID = '12345')

  • How to apply the expression using script?

    I use a script and an expression to automate all the layer selected to attend the control layer. So, I've do it now in two steps, first make a layer of control using this script:

    {

    model var = app.project.activeItem;

    var slctd_layer = comp.selectedLayers;

    var new_adjustment = comp.layers.addSolid ([1,1,1], "Control", comp.width, comp.height, comp.pixelAspect, comp.duration);

    new_adjustment.adjustmentLayer = true;

    var addSlider1 = app.project.activeItem.selectedLayers [0]. Effects.addProperty ("ADBE Slider Control");

    addSlider1.name = "time";

    addSlider1.property (1) .setValueAtTime (0, 0.06);

    var addSlider2 = app.project.activeItem.selectedLayers [0]. Effects.addProperty ("ADBE Slider Control");

    addSlider2.name = "opacity";

    addSlider2.property (1) .setValueAtTime (2, 0);

    addSlider2.property (1) .setValueAtTime (2.03, 100);

    }

    Then, I select all the layer under the control and apply the expression, for example:

    delay = thisComp.layer("Controler").effect ("delay") ("Slider") * index;

    t = time + delay;

    exp = thisComp.layer("Controler").effect ("opacity")("Slider").valueAtTime (t);

    exp;

    I'm working on an animation of the tight timelines and tons of materials with tons of layer for each model now. So I think that if it is possible to combine this stage two in a script that will automate this work for me. I'm still new to scripts and none need help with it. Thank you

    Like this:

    var ease = new KeyframeEase(0,100/6);    // speed (0 for easeIn or easeOut, influence range: 0-100)
    var addSlider1 = new_adjustment.effect.addProperty("ADBE Slider Control");
    addSlider1.name = "delay";
    // 1st key: value + ease
    addSlider1.property(1).setValueAtTime(0, 0.2);
    addSlider1.property(1).setTemporalEaseAtKey(1, [ease], [ease]);
    addSlider1.property(1).setInterpolationTypeAtKey(1, KeyframeInterpolationType.LINEAR, KeyframeInterpolationType.BEZIER);
    // 2nd key: value + ease
    addSlider1.property(1).setValueAtTime(2.03, 0.03);
    addSlider1.property(1).setTemporalEaseAtKey(2, [ease], [ease]);
    addSlider1.property(1).setInterpolationTypeAtKey(2, KeyframeInterpolationType.BEZIER, KeyframeInterpolationType.LINEAR);
    

    (The use of setInterpolationTypeAtKey is not necessary, it is only there to do things similar to what you would get by doing things by hand).

    Xavier

  • How to write a procedure using collections

    How can we define the collections inside the procedure and use it

    I get an error of execution of this proc
    create or replace procedure p_collections
    
    is
    
    type calendar is varray(366) of  date;
    calendar c1;
    
    
    begin
    
    
    for i in 1 .. 100
    loop
    
    select sysdate bulk collect into c1 from dual;
    
    
    end loop;
    DBMS_OUTPUT.PUT_LINE(c1);
    
    end;
    Published by: Rahul_India on Sep 12, 2012 14:54

    Published by: Rahul_India on Sep 12, 2012 15:07

    Hello

    Rahul_India wrote:
    I found the error

    it should be
    c1 calendar;
    

    How can I print the values of 100 dates stored in the varray

    If you had 100 DATEs stored in the array, we can say:

    ... FOR  i  IN  1 .. 100
        LOOP
            dbms_output.put_line (c1 (i));
        END LOOP;
    

    Since you have only 1, which will trigger an error.

    You might be better to use the attributes of the FIRST and the LAST:

    ... FOR  i  IN  c1.FIRST .. c1.LAST
        LOOP
            dbms_output.put_line (c1 (i));
        END LOOP;
    
  • How to write expressions/rules/SQL workflow

    Hi all.

    We are recent users of CRM onDemand, we would write a few workflow rules, but can't seem to find all the information on how to do it. The help section is limited in the responses, and some of the issues here are not as specific in what we do.

    Someone has any advice on books, websites, etc. on where to find the knowledge we need on how to write workflow rules and the use of SQL and expressions in CRM on Demand?

    Thanks in advance!

    For your first case:
    1. you cannot create a workflow in r15 for activity but you can in R16

    Create new to create a workflow
    Name: Auto email send
    registration type: activity
    trigger: when the new record
    rules: put your rules by clicking the fx icon IE this is where you enter the rule by saying that the owner is different from the person who creates the activity or the delegate field is filled (another way of seeing things)
    then save the workflow

    In the section actions
    Choose the action 'create e-mail notifications '.
    In the: Section choose "Registration of the user on Relative" and "owner of the activity.

    Save it. Make sure that the activity and workflow are marked active.

    2. in the second scenario:
    How do you create an account and to automatically fill in the name of the sales of the sale - don't know
    But you can create a fill of opportunity and self with the name of the owner of the account using this validation in the field (you need not the workflow), you can use the FieldValueJoin function.

    Hope this helps - btb there's no book you can go thro the help and you will find some directions

  • How can you write a resume using windows Vista Home Basic?

    How can I write a resume using windows Vista Home Basic? I put t have microsoft word or office.

    Start menu -All Programs - Accessories - Wordpad.

  • How to write if another logic using time

    Hai All

    I have genetating a daily presence for employees, then there are three teams in the company

    0815 to 1645, 1200 to 2000 & 1715 at 0145


    So first quarter begins a.m. 0815 so I took just before an hour and after a time (0715 to 0915) means so intimate for all trips even.

    And there is a pause inbetween time travel, as of now, I coded for only the first post and works very well.


    declare
    Cursor c1 is
    Select the barcode, BARDATE, BARTIME
    Of temp_attendance
    Group of barcodes, bardate, bartime
    ORDER BY barcode, bartime.

    Start
    to r1 c1 loop
    If r1.bartime between 0631 and 0930 may
    insert into dail_att (barcode, respondent, attend_date) values
    (r1.barcode, r1.bartime, r1.bardate);
    on the other
    For r in (select empcode, empname, barcode, intimate, intrtimein, introuttime, addin, addout, outtime, dail_att attend_date) loop
    If r.intrtimein is null then
    Update dail_att set intrtimein is r1.bartime where barcode = r1.barcode and attend_date = r1.bardate and intimate is not null;.
    elsif r.intrtimein is not null and r.introuttime is null then
    Update dail_att set introuttime = r1.bartime where barcode = r1.barcode and attend_date = r1.bardate and intimate is not null and intrtimein is not null;
    elsif r.intrtimein is not null and r.introuttime is not null and r.addin is null then
    Update dail_att set addin is r1.bartime where barcode = r1.barcode and attend_date = r1.bardate and intimate is not null and that intrtimein is not null and introuttime is not null;.
    elsif r.intrtimein is not null and r.introuttime is not null and r.addin is not null and r.addout is null then
    Update dail_att set addout is r1.bartime where barcode = r1.barcode and attend_date = r1.bardate and intimate is not null and intrtimein is not null and introuttime is not null and addin is not null;.
    elsif r.intrtimein is not null and r.introuttime is not null and r.addin is not null and r.addout is not null and r.outtime is null then
    Update dail_att set outtime is r1.bartime where barcode = r1.barcode and attend_date = r1.bardate and intimate is not null and intrtimein is not null and introuttime is not null and addin is not null and addout is not null;.
    end if;
    end loop;
    end if;
    end loop;
    commit;
    end;


    When I use it once works very well and the next day when I added the next synchronization in the if clause

    If r1.bartime between 0631 and 0930 and r1.bartime between 1100 and 1300

    his does not work very well because some employees died in 1230 for interval and its addition of a new line it was not updated in the same line


    Then tell how to write some conditional for that

    Thanks in advance

    Srikkanth.M

    Hi Srikanth,

    Please use the code tags to your zip code.
    Can you specify your requirement as to what should be the output and under what conditions with some examples of data?

  • The expression using scaling

    I'm not a master of expressions, but I think I want to do something simple, but I can't understand how do. I want to have a single layer taken one-tenth the size of an animation layer put on the scale, then add in the original layer size, while the second layer is scaling up to a tenth of the speed of the initial layer.

    So I whipped across the second layer to the first and get this:

    thisComp.layer("multiplanemountains.jpg_2").transform.scale

    Now, I want to have this layer scaling to 1/10 scale of the control layer, so I added the expression to divide by 10:

    thisComp.layer ("multiplanemountains.jpg 2").transform.scale/10

    I still need to restore the original size, then that is just 1/10 greater than the control layer, so I thought I should be able to add 100, so I'm doing this:

    thisComp.layer ("multiplanemountains.jpg 2").transform.scale/10+100

    But it adds only the 100 to scale horizontally, not vertically. I tried bracketing what it off, but after said effects is a bad expression and it does not accept:

    thisComp.layer ("multiplanemountains.jpg 2"). (transform.scale/10) + 100

    I tried the bracketing on the 100 and he giving x and y values like this:

    thisComp.layer ("multiplanemountains.jpg 2").transform.scale/10+(100,100)

    He is still as the horizontal value.

    I know I should tell him to add the 100 times x and y, but I can not understand how do. Can someone help me?

    Thanks in advance!

    You have not found the array function. Maybe this will help. All properties with multiple values are arrays. A table is written inside square brackets. For example, if you write this as an expression of scale [50, 75] then the layer will evolve to 75% and 50% in X in Y. If you type .scale [0] in an expression, then that will return the X value of the scale. . Scale [1] is the value of it, and if you have a 3D layer then .scale [2] returns the z scale (it makes a difference in the position of the layer when the scale of a 3D layer)

    Let's look at your expression and set up some variables. Consider that multipleanemountains.jpg 2 is the main layer. Personally, I would rename this layer Master. Let's start by improving your syntax and simplify calculations by setting the property that you want to use as a variable.

    m = thisComp.layer("multiplanemountains.jpg_2").transform.scale;

    Now you can do your calculations on the variable "m" and it's much simpler. This is where I get into trouble with your application and your math. We will take your original theory. Divide by 10, then add 100. The correct way to do it would be to write the expression as follows:

    m/10 + [100, 100];

    Here is the result. If the main layer is 100% then the layer of the slave will be 110%, but if the original layer is 200% then the slave layer will be 120%. I don't think that's what you want. What I think you want is to multiply the main 1.1 layer so that the slave is 10% greater than the master. You who would write like this:

    m * 1.1

    Now, when the master is 100% the slave will be 110% and when the master is 200% the slave will be 220%

  • Where the photos are stored... How to write on a dvd?

    Where the photos are stored... How to write on a dvd?

    http://www.Macworld.com/article/3015458/software/how-to-share-slideshows-created-in-photos-for-mac.html

    How can I backup my photos in Photos?  Can I use a DVD?

  • How to write data in mode intertwined with TDMS C DLL 2.0?

    Hello

    How to write data in mode intertwined with TDMS C DLL 2.0?

    I use DAQmx features in Visual Studio C++ without Measurment Studio.

    This function returns the data in interlaced mode.

    How can I configure the functions of DLL C TDMS to store this data in the tdms files?

    I see that it is not possible with the PDM version 2.0 with 1.0.

    Thank you

    -TDM C Dll is not able to do

    -TDM header writer may be usable for this but is not able to be used for tdms files.

  • Does anyone know of a VI or how to write one that will stop the computers time be disabled if an application is run.

    Does anyone know of a VI or how to write one that will stop the computers clock be turned off if an application is run. The time and date can be reset normally while an application is running by clicking on the time in the lower right of the screen of the computer. I have an application that runs over several days and it is essential that the time and date of the computer not be changed. Is there an easy way of this lockout the user? Note that I am what I consider a beginner advanced in LV

    Thank you

    Chuck

    This isn't something that you can from LabVIEW, because this is an operating system operation, and it will depend on the operating system you are using. Under Windows, you can use Group Policy to control this. Please Google on "prevent changing the date and time of windows."

    Also, please try to refrain from stuffing your message in its entirety in the block of material. Keep short, but descriptive enough topic so we can understand what you're asking basically. Thank you.

  • How to write a unique number in a single Excel cell

    I'm using Labview 2013 SP1 with the Microsoft Report Builder and I can't understand how to write a number of DP to a specific cell in an Excel spreadsheet. I have no problem writing tables of numbers to specific cell ranges, formatting of cells, the writing of titles, using models, everything I need, except the possibility to write a number to a specific cell. All vi who write the numbers seems to require tables 2D for the entries. I must be missing something, but I think I crossed every vi in the palette of MRG and found nothing.

    Any help/examples were greatly appreciated.

    ... and you probably know that the best way to do it is with build table, twice.

    Note the lines is 'thick' goes from left to right.

    Bob Schor

  • How to talk with microcontroller using RS232

    Hello

    I'm working on a project, which includes a power supply and the Commission of the PRINTED circuit board. This Board is composed of a microcontroller, with realys, power supply.

    My goal is to read current, volatge and reading output relay using the ports of mictocontroller.

    It's my first project, and I don't have any experience in how to communicate with microcontroller using LV (VISA). ?

    How to read the ports?

    I have to write the program for her?

    If I, then, how can I send this program to the LV program?

    I'm a little confused. Could you please help.

    Thank you

    So in your case, your best bet is uot start with programs for example LabVIEW which is by opening LabVIEW > help > find examples.  This must fill out a ton of examples.  Once in the example finder go to hardware input and output.  I was looking at so the two following folders: series and VISA.  Depending on how you communicate to your device you should be able to find an example of program that will let you use and on your way!

    The other source of assistance that I propose is the Nicom/community where many users publish different programs for different applications - you may be able to find an example that is suitable for your application.

    I hope that this help please let us know if you need more help!

Maybe you are looking for

  • contacts after El Capitan

    When I click My Contacts icon, it displays Contacts no.. When I go to System Preferences > users and groups, and then clicking on the 'Open' button of the plug Contact, all my contacts show. How can I access my contacts through the Contacts icon on m

  • checksum

    Hello I use a unit of distributor of musashi with Rs232 for pressure controller and dosage times. I want to write the program in Labview for this. They UriPattern Protocol Default is 19200 bps. data length: 8 bit Start Bit: 1 Stop bit bits: 1 bit par

  • DeskJet 930c: avoid the aliignment page after each page

    Hello, since I changed the black ink cartridge the printer prints an alignment with full black rectangles header page after each page I need to print. Is there a way to stop this behavior unconditionally

  • How to get Windows 7 for my laptop HP which crashed with a faulty drive?

    I bought my HP laptop about 4 years ago.  Until the Seagate drive has crashed, has been a good machine.  I had a company that can recover the data.  But the HP laptop did not come from a DVD for Windows7.  Then how come HP help with a new copy of Win

  • Which files are safe remove disk d

    I need to free up space on the d drive is - it possible and what is safe to delete the program vist