Set keyframe params in a script

I'm more of a coder than a drag/dropper.  I have a simple box that I'd like make grow from its top left corner.  That part is simple with keyframes and the timeline, no big deal.  I'd like to adjust where that top left corner is though based on where the user clicks on the screen, so instead of having separate boxes or separate animations and such I'd like to simply have the onclick event of some transparent shapes move the X,Y position  of the box itself.  I can then do a play() on my animation.  I'm sure there's a way, I think the X,Y is just a left, top in CSS, just not sure how to get at it for my box.
Thanks.

Hoping to track this down and hoping someone who is deep enough into the coding will jump in and give an answer.
It seems, from looking at the JS, what I really want to be able to do is modify the top/left but also the fromValue on the timeline itself.  I'm going to have a bunch of buttons and I want the box to grow from the button that's clicked, then shrink back to the same button.  Instead of having a whole pile of keyframes and grow animations and shrink animations and labels, I want one grow animation and one shrink and a label for each, and I'd like to just change these values in the script based on which button is clicked.
Thanks.
{ id: "eid12", tween: [ "style", "${_bigbox}", "left", '176.16px', { fromValue: '310px'}], position: 500, duration: 870 },
{ id: "eid38", tween: [ "style", "${_bigbox}", "left", '310px', { fromValue: '176.16px'}], position: 1610, duration: 870 }    

Similar Messages

  • Set file path in report scripts

    Hi All,
    Is it possible to set the file path to save the extracted data in report scripts, if so please let me know how to do it.
    We can choose the path when executing the script in script editor but how to set the file path in the script itself.
    Thanks in Advance

    You cannot set in in the report script itself.
    But rather you can set the output file and path where the output should be extracted.
    1. When you manually run from EASS console, you can specify the path and the file name
    2. When you use Maxl to run a report script, you can specify.
    Have a look at the Export Data
    Hope it helps
    Regards
    Amarnath
    ORACLE | Essbase

  • How can I set keyframes on a clip segment? (FCP 7)

    Hello!
    I am trying to set keyframes on a segment of a clip using the pen tool on time line. When I set the first keyframe, one also appears at the start of the clip and when I set the second keyframe, another appears at the end of the clip? There is a thin blue horizontal line the full length of the clip. Whatever speed change I make on the dialogue box, overrides the segment settings. I have already carried out this successfully on a different clip.
    Regards,
    DG

    I gather you're adding speed keyframes. That's the way the application works. Because variable speed changes effect the entire media, not just the marked In and Out in the timeline, keyframes are added at the beginning and end of the clip. The blue line in the Clip Keyframe graph is correct. It indicates a motion keyframe has been applied. Speed is a motion keyframe.
    What dialog box are you using? Speed segment changes are made in the timeline from the shortcut menu. Select Change Speed Segment.

  • Set DISPLAY through rc2.d script

    Hi Admins,
    I need to set the DISPLAY system level so I have created a script in /etc/rc2.d and placed the following lines
    export DISPLAY=localhost:0.0;
    /usr/openwin/bin/Xvfb :0 &
    But this doesn't seem to set the display correctly. But the x server is starting without an issue.
    When I tried to see the display as,
    # echo $DISPLAY , it shows blank.
    Help is much appreciated.
    Thanks in advance,
    Dushank

    The variables set in RC scripts wont be inherited to the shell. If you set $DISPLAY in a rc-script, it will only be set in that very specific script, and it will only exist during the life time of the script.
    To set a variable at shell level, you need to add it to a /etc/profile or the appropriate config file for your shell (i.e. .kshrc, .cshrc, .bashrc and so on).
    .7/M.
    Edited by: abrante on Apr 6, 2010 10:40 AM

  • How to get the kerning value and set it to back use script?

    hi,guys
    I come back again.
    I encountered a kerning problem.
    how to get the kerning value and set it to back use script?
    Thanks very much!

    For both cases, the filename can be found on the FILE.ReceivedFileName Context Property.  You can access this Property in a Pipeline Component or Orchestration and take any action you want, such as apply to a database.
    The value is accessed by: MyReceivedMessage(FILE.ReceivedFileName)
    In the case of a duplicate EDI Interchange, you would use the Failed Message Routing feature to capture the error message with either an Orchestration or Send Port.

  • Xsql:set-session-param

    I experience a problem with exception arising when I try to set session parameter and then to post to a page with insert-request.
    Here is exception message:
    XSQL-018: Unexpected Error Occurred processing stylesheet null
    oracle.xml.parser.v2.XMLDOMException: Node of this type cannot be added.
    at oracle.xml.parser.v2.XMLDocument.checkChildType(XMLDocument.java, Compiled Code)
    at oracle.xml.parser.v2.XMLNode.appendChild(XMLNode.java, Compiled Code)
    at oracle.xml.parser.v2.XMLDocument.appendChild(XMLDocument.java, Compiled Code)
    at oracle.xml.parser.v2.XMLNode.appendChild(XMLNode.java, Compiled Code)
    at oracle.xml.parser.v2.XMLDocument.appendChild(XMLDocument.java, Compiled Code)
    at oracle.xml.parser.v2.XMLNode.appendChild(XMLNode.java, Compiled Code)
    at oracle.xml.xsql.XSQLStylesheetProcessor.processToDocument(XSQLStylesheetProcessor.java:66)
    at oracle.xml.xsql.actions.XSQLInsertRequestHandler.handleAction(XSQLInsertRequestHandler.java:82)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java, Compiled Code)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java, Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java, Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doPost(XSQLServlet.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code)
    at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    Using 1.0.4.1 production xsql servlet.
    Code to set param:
    <xsql:set-session-param name="issuethesid" value="aaa" only-if-unset="yes"/>
    Code for the page producing error
    <?xml version="1.0"?>
    <!--?xml-stylesheet type="text/xsl" href="coastbasepost.xsl"?-->
    <page connection="coastbase" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-request-params/>
    <xsql:insert-request
    table="domain"
    transform="coastbaseinsert.xsl"/>
    <xsql:set-page-param name="CURRENTID">
    SELECT ID_SEQ.CURRVAL FROM DUAL
    </xsql:set-page-param>
    <xsql:include-param name="CURRENTID"/>
    </page>
    Works everything but insert-request.

    This error usually occurs when your transformation produces an illegal XML fragment.
    If you temporarily rename the transform attribute to transformXXX so that the inbound XSLT transformation is not performed, does the stack trace go away?

  • How to verify lockout treshold and duration set bij local GPO using script

    Hi all,
    I want to succeed in veryfying the account lockout treshold and duration by checking registry.
    However this is impossible in server 2012 r2. previously these settings where visible in the registry but now it seems that they are hide in the SAM section which is not accessible.
    WMI RSOP does not contain information as it is no group policy.
    Any alternatives?
    Kind rergards,
    AL

    Hi AL,
    >>how to verify lockout treshold and duration set bij local GPO using script
    What does this mean? Does this mean that we are using a standalone server and want to check the account lockout policy set via local GPO?  
    >>Just found that using net accounts the local gpo settings are shown not i have to find a way to strip that using powershell to be able to veriy the correct line and content
    What do we want to achieve here? As you stated, we can run net accounts
    command to check password policy and account lockout policy.  Besides, we can also run command
    gpreult/h report.html with admin privileges to collect group policy result report to check this.
    Best regards,
    Frank Shen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Question about xsql:set-page-param

    Hi!
    I have construction like this:
    <xsql:set-page-param name="ptk1" value="{@some_value}">
    where {@some_value} contains national characters. And in ptk1 I have only question marks. If I use {@some_value} directly, for example <xsql:query ...> <![CDATA select ... where field={@some_value} ]]> </xsql:query> it works fine. I have
    <?xml version="1.0" encoding="windows-1251" ?> in my xsql page.
    Is it possible to get set-page-param working with national chars?
    Thank you very much.

    You've identified a bug in how parameter values are retrieved. I've filed Bug#1920676 to get this fixed.
    Currently character set conversion is done between the servlet engine's default character set and the character set of the XSQL page template. The bug occurs because the character set conversion is being done in certain circumstances when it is not actually required.
    Will post a status update when we've identified a fix.

  • Xsql:set-page-param from multirow select into array variable

    I'd like to set an XSQL page array variable to the result of a query that returns multiple rows.
    Can I do something like this:
    <xsql:set-page-param name="users[]">
    select username from all_users
    </xsql:set-page-param>
    The documentation only mentions usage like
    <xsql:set-page-param name="users[]" value="SCOTT SYS SYSTEM"/>

    The set page param is only designed to look at the first column of the first row of its query results.
    If you supplied a PL/SQL function that would return the list of users as a space-or-comma-separated string, then you could use:
    select your_function() as user_list from dual
    and then add the treat-list-as-array="yes" attribute to achieve this.

  • How to set keyframes in cinepac codec in CS4

    In the prior Premiere program, I could choose export to Avi and choose cinepac codec and then select keyframes and set them to 1. I need this since i will be running AVI's forward and backwards.
    When I choose the export settings in CS4, I can set Cinepac codec for AVI's, but the keyframe number box is greyed out and set to 15.
    Any suggestions how to change this settings?
    Thanks,
    Hal

    Hi Guys
    thanks for the responses.
    The program we have writen is called BioGraph Infiniti. It is a biofeedback taining program (www.thoughttechnology.com). Ver 1 was written in approx 2003.
    In the program, we allow avi feedback in both directions, so for example, a flower will open and close depending upon the users physiology.
    The cinepac codec allows us to go forward and backwards in small equal steps if we set keyframes to 1. Now, I can only set it to 15. If you know of another codec that will allow this capability, ps let me know. Ideally, I would like to use Cinepac.
    thx
    Hal

  • [ASK] Set Network Address Restriction With Script

    Hi all, i have a question about set network address restriction.. if i post in wrong category i'm very sorry about it because i don't know where i supposed to post this..
    i need to set network address restriction to every user in my tree..
    the problem is there is hundreds of user that i need to set the restriction.. i think it will take a lot of time if i do it one by one..
    i created the user with script, and i want to ask whether there is a command to set network address restriction with script or maybe there is another simple way to set network address restriction..
    thanks..

    Is the restriction going to be the same for all users? Depending on what
    "script" you use, you should be able to also set the restriction at the
    same time - its just another attribute value to set.
    Peter
    eDirectory Rules!
    http://www.DreamLAN.com

  • Select Next Keyframe (in selected property) script

    I find myself constantly crafting individual keyframes manually, so being able to automatically select the next/previous keyframe on a selected property with a shortcut (assigned to a script, since there's no such functionality in After Effects, being "Select Previous/Next Keyframes" the closest thing) instead of locating the keyframe and clicking on it, would save me, and everyone, hours of pointing and clicking.
    After some research I thought It was not possible but after some more (looking at scripts like this AE ENHANCERS • View topic - Exponential Scaling and Re: How can I access the layer keyframes?) , I've started to wonder if it is scriptable.
    Hope it is clear what I'm trying to achieve;
    Basically I'd like that pressing Shift+K would take me to the next keyframe in the selected property AND select it (Shift+J for the previous one) and
    pressing Ctrl+Shift+K would select the next keyframe in the selected property without actually moving the Current Time Indicator (Ctrl+Shift+J for the previous one).
    (I think it makes sense and it is consistent with the almighty J and K shortcuts but I didn't know how to write the code or ask for this functionality. Haven't been lucky asking to fellow animators either).
    Thanks,
    Oliver

    Here here!
    SelectJumpNextKey:
    In a selected keyframe/keyframes, will select the next one in time AND jump the CTI to the time of that keyframe or, if multiple selected, the last of the selected keyframes.
    (If you don't want the time jump but only the selection, just remove the second $.global.script_doJumpToLastSelectedKey script).
    $.global.script_doSelectNextKeys || (script_doSelectNextKeys = function script_doSelectNextKeys(){  
        var comp = app.project.activeItem, props, n, p, idx, max=-Infinity;  
        if (comp instanceof CompItem){  
            props = comp.selectedProperties;  
            for (n=0; n<props.length; n++){  
                p = props[n];
                if (p.numKeys && p.selectedKeys.length>0){
                    // get index of the last selected key
                    idx = p.selectedKeys[p.selectedKeys.length-1];
                    // change to next key
                    if (idx<p.numKeys) ++idx;
                    // select only that key
                    p.selected = false;
                    p.setSelectedAtKey(idx, true);
                    // update the time
                    max=Math.max(max, p.keyTime(idx));
             // this sets the composition time (CTI) to max
             if (-Infinity<max) comp.time = max;
        return
    script_doSelectNextKeys();
    $.global.script_doJumpToLastSelectedKey || (script_doJumpToLastSelectedKey = function script_doJumpToLastSelectedKey(){   
        var comp = app.project.activeItem, props, n, p, max=-Infinity;   
        if (comp instanceof CompItem){   
            props = comp.selectedProperties;   
            for (n=0; n<props.length; n++){   
                p = props[n]; 
                if (p.numKeys && p.selectedKeys.length>0) max=Math.max(max, p.keyTime(p.selectedKeys[p.selectedKeys.length-1])); 
            if (-Infinity<max) comp.time = max; 
        return;   
    script_doJumpToLastSelectedKey();
    And this (nevermind the more than possible coding aberrations on my part) is what I originally aimed for. I think that not only it is simply amazing ("It just works") but so intuitive (specially using Shift+J/K) that should be an After Effects default.
    Your version (select keyframes under current time in the selected properties) is super great too, but it serves a whole different purpose.
    Now, for the SelectJumpPrevKey, I just have to figure how to make this bit:
    $.global.script_doJumpToFirstSelectedKey || (script_doJumpToFirstSelectedKey = function script_doJumpToFirstSelectedKey(){   
        var comp = app.project.activeItem, props, n, p, max=-Infinity;   
        if (comp instanceof CompItem){   
            props = comp.selectedProperties;   
            for (n=0; n<props.length; n++){   
                p = props[n]; 
                if (p.numKeys && p.selectedKeys.length>0) max=Math.max(max, p.keyTime(p.selectedKeys[p.selectedKeys.length-1])); 
            if (-Infinity<max) comp.time = max; 
        return;   
    script_doJumpToFirstSelectedKey();
    actually go to the first keyframe selected and not the last (which, as simple as it may seem, to me is like watching the Matrix code and pushing random buttons in russian to see what happens).
    Sorry I couldn't make your last code work and insted just stitched to scripts together! for some reason, the CTI wasn't jumping.
    Mega thanks!!
    Oliver

  • Can i do Expression to keyframes and smooth via script?

    hi guys, who know AE scripts can translate expression to linear keyframes via script(now i use app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes")) ; command) but , for Comman work i must select every time property of layer(opacity, position, scale, etc) where i have expression.... but i need translate very many layers, i always click on property with expression and then do Convert Expression to Keyframes its to long.., can i do something like this
    for (var j= 0; j<selectedLayers.length; j++) 
                       var SelLaye= selectedLayers[j];                  
                       if (SelLayer.transform.opacity.expression!=null && (SelLayer.transform.opacity.expression!=null) && (SelLayer.transform.opacity.expression!=null)) //check if layer have expression
                             SelLayer.transform.position.select=true;  //and here i need set cursor to position, expression, etc, where i have expression and translate to linear kayframes(but i dont know how)
                             app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes")) //do translation
                             SelLayer.transform.rotation.select=true;
                             app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes")) 
                             SelLayer.transform.scale.select=true;
                             app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes"))
                             //and after this also need do a smoother or something like this for decreasing linear keys for max(because app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes")) create to many keyframes)
    sorry for bad English

    Sup,
    Earlier Dan Ebberts already wrote the answer on CreativeCow:
    http://forums.creativecow.net/thread/227/13039#13041
    Можно все выбранные значения добавить в массив и потом уже дергать из оттуда, ну либо вручную прописывать в скрипте. Кому как больше нравится.
    AE has "Smoother" panel, but as far as I know you can`t access it via scripting using app.executeCommand(app.findMenuCommandId("Smoother")) or something.
    But there is a script that makes same work , called Smart Baker. You can download it here:
    http://www.creatogether.com/ctg-smart-baker

  • BPC 7.5 Web Administration / Set App Params asks for AntiXSSLib 1.5

    Hi. We have now installed BPC 7.5 in our test environment, but are facing a problem.
    According to the installation guide, we have installed Microsoft AntiCross Site Scripting Library 3.0 on our app/web-servers.
    But when trying to enter "Set Application Parameters" in the Web Administration tool, we get an error quite not expected:
    Any ideas of why it asks for v1.5, which were used by BPC 5.1?
    Server Error in '/OSoft' Application.
    Could not load file or assembly 'AntiXssLibrary, Version=1.5.0.0, Culture=neutral, PublicKeyToken=bcdc0d0c766dd6e4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.IO.FileLoadException: Could not load file or assembly 'AntiXssLibrary, Version=1.5.0.0, Culture=neutral, PublicKeyToken=bcdc0d0c766dd6e4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'AntiXssLibrary, Version=1.5.0.0, Culture=neutral, PublicKeyToken=bcdc0d0c766dd6e4' could not be loaded.
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    Stack Trace:
    [FileLoadException: Could not load file or assembly 'AntiXssLibrary, Version=1.5.0.0, Culture=neutral, PublicKeyToken=bcdc0d0c766dd6e4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       OSoft.SetAppParameters.GetList() +0
       OSoft.SetAppParameters.Page_Load(Object sender, EventArgs e) +725
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3053
    Edited by: Malin Westlund on May 5, 2010 9:23 AM

    Hi Malin,
    You are having a problem with you AntiSssLibrary.dll. Either it is not installed correctly or it is corrupted or in the wrong version.
    You can take the following steps to ensure that you have a fully functional version of  the Microsoft Anti-Cross Site Scripting Library:                                                                               
    1) Download the Microsoft Anti-Cross Site Scripting Library V1.5 from http://www.microsoft.com/downloads/details.aspx?FamilyId=EFB9C819-53FF-4F82-BFAF-E11625130C25&displaylang=en                                                                               
    2) Uninstall the current version of Microsoft Anti-Cross Site Scripting Library and remove any AntiXssLibrary.dll file from your server;                                                                               
    3) Install the version that you have downloaded from the MS website;                                                               
    4) Copy the AntiXssLibrary.dll file from C:\Program Files\Microsoft Corporation\Anti-Cross Site Scripting Library V1.5\Library\.NET 1.1\   (Make sure that you're copying from the .NET 1.1 folder, not 2.0);                                                                               
    5) Paste it under your \BPC\Websrvr\Web\bin folder and restart IIS.
    Best regards,
    Rodrigo

  • How to set up internet explorer notification script error on Imac

    Trying to set up script error notification on my Imac when using internet explorer pages - where / how do I set this up for my Imac?

    IE has not been supported by Microsoft on a Mac for years....  I have no clue what you are trying to do.
    Barry

Maybe you are looking for

  • Adding A Quit Button to the Last Slide

    Hi all, One of the most requested features on our first Breeze project was a "quit" button. The easiest way to do so in an HTML environment is to use the command javascript: window.close(); Type this into the address bar on your browser, and hit retu

  • Pricing in an order

    Hi Gurus, I have created a sales document type using standard order in SAP and when I am creating an order the pricing procedure from a different sales document is being copied automatically. Can anyone please explain why is this happening? Regards,

  • Restore database with new DB name

    I'm trying to restore a database from a hot backup with a new database name. I'm trying to use the backup control file with the SET DATABASE in the control file. That works ok, but when I run RECOVER DATABASE USING BACKUP CONTROLFILE I get errors suc

  • Same dimension twice as drill down

    Hii Is it possible to have one dimension more than once in a report as drill downs? Now I have one dimension called BRANCH, which has levels region, area and branch. I want to drill down based on region, area and branch separately. Is it possible? Pl

  • Personal Domain Login

    I signed up for a personal domain under my .Mac account and it was successful. However, when I got to the url, a login/password request box pops up. I figured that it would use the same login / password as my .mac account but it doesn't. Furthermore,