Creating a single variable from a simple formula

Hi guys,
I'm ploughing my way through the basics of expressions, constantly running into syntax errors as I still haven't found out the logic behind it all. It is still a great mystery to me when to use spaces, [ ] { } and ( ) not to mention =.
I was trying to create a variable called "y" from a simple formula. My scripting looks like:
veloc = 3;
amplitude = -5;
decay = 0;
y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
[value[0],y[1]]
But whatever brackets and things I put around this formula, whatever spaces or newlines, somehow AE doesn't accept it. When I replace the formula for a wiggle, the fifth line is accepted, and when I replace the "Y" in the fifth line for "value" there are no errors, so obviously AE considers the formula not valid. What is the difference between the output that wiggle(,) gives and the output of this formula? How should I write this expression? Is there any website resource where the logic behind the bracket, spacing, newline, order etc. of this script language is demystified? And I mean really at basic, really baby level. I am pretty good at maths, but the programming hieroglyphs and their secret rules still don't make sense to me.
Any help is greatly, greatly appreciated.

Hi Mylenium, thanks for your fast answer. I tried both
veloc = 3;
amplitude = -5;
decay = 0;
y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
[y[1]]
and
veloc = 3;
amplitude = -5;
decay = 0;
y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
y[1]
but it's a big no-go still. I am really not getting the logic of the format. AE reports Class 'Number' has no property or method named '1', or that the outcome should be of dimension 2, not 1. Any more ideas?

Similar Messages

  • Can i create a single image from multiple images in lightroom?

    Can i create a single image from multiple images in lightroom?

    Like a panorama, a composite or focus stack? Have you tried the Lightroom forum?
    Photoshop Lightroom

  • How can I create a single order from multiple quotations?

    How can I create a single order from multiple quotations that I have created by the transaction VA21 ?
    Thanks in advance for the answers.

    hi
    Go to transaction: /nva01
    Enter order type : ZOR
    Sale org :xxxx
    Dist.channel:xx
    Division :xx
    Press enter
    Click on “Sale document” and select Create with reference
    Then enter 1st quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation1 copy to order.
    Then,
    Click on “Sale document” and select Create with reference
    Then enter 2nd quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation2 copy to order.
    Then,
    Click on “Sale document” and select Create with reference
    Then enter 3rd quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation3 copy to order.
    Now save the sale document.
    Kindly give reward points
    Edited by: WISH on Mar 19, 2008 2:25 PM

  • How can you create a local variable from a boolean control?

    I want to create a local variable from a boolean control, but it says that boolean latch actions are incompatible with local variables, but I need a way to check this boolean control in two differents loops, how can I do it?

    "Graci" schrieb im Newsbeitrag
    news:[email protected]..
    > I want to create a local variable from a boolean control, but it says
    > that boolean latch actions are incompatible with local variables, but
    > I need a way to check this boolean control in two differents loops,
    > how can I do it?
    Use global variables.
    Compare them with a constant Boolean like F or T.
    The result is true or false and then you can use it in a Cae-Loop.
    Martin

  • Issue creating a single PDF from MS Word on Mac

    Using Trial Version of Acrobat XI for Mac.  I am having issue creating a single PDF from MS Word on Mac.  Acrobat is creating multiple files splitting up randomly.  Are there any settings to select for ending up with just one PDF fil

    Sabian,
    As I mentioned before, I have used the following methods, each resulting the same, split up PDF file.
    File>Save As - Selected PDF from under the Format dropdown menu.
    File>Print>PDF - used Save As PDF
    File>Print>PDF - used Save As Adobe PDF
    With this information, I think I have tried all that you have asked me to do.  Please let me know if I could reach out to a technical consultant or someone else who can help.  Thank you.

  • How to create a single invoice from several delivers? (BAPI for VF01)

    Hi all,
    I want to create a single invoice from several delivers, just like VF01.
    I just tried BAPI_BILLINGDOC_CREATEMULTIPLE, and the problem is that this bapi creates an invoice for each deliver, and i need to create only one invoice.
    Can you tell me how to do it?

    Here you go....
            wa_vbsk_dummy-smart = 'F'.
            wa_vbsk_dummy-ernam = sy-uname.
           v_posting = 'E'.
          v_datum = sy-datum.
    IT_KOMFK willhave delivery numbers, billing doc type date etc.
    CALL FUNCTION 'RV_INVOICE_CREATE'
        EXPORTING
          invoice_date  = v_datum
          vbsk_i        = wa_vbsk
          with_posting  = v_posting
          id_no_enqueue = c_true
        IMPORTING
          vbsk_e        = wa_vbsk
        TABLES
          xkomfk        = it_xkomfk
          xkomv         = it_xkomv
          xthead        = it_xthead
          xvbfs         = it_xvbfs
          xvbpa         = it_xvbpa
          xvbrk         = it_xvbrk
          xvbrp         = it_xvbrp
          xvbss         = it_xvbss.
    Cheers
    Ravish

  • Does OBIEE has ability to create a single cube from multiple data sources?

    Hi all,
    Does OBIEE has the ability to create a single cube from multiple sources and does it has the ability to join multiple cubes?
    Looking forward to ur reply.

    Hi
    OBIEE can join multiple data sources to make a single data model, but it's not a cube in the multi-dimensional sense like Essbase or Oracle OLAP.
    To be able to join datasources together they need to have a common dimension or FK relationship depending on what the source is and what you want to do with it.
    Ed

  • Why do Single-Process shared variables create a single variable VI in my dir.

    I'm creating an application VI following the example which is created by starting a two loop Real-Time project which creates a Single-Process shared variable and a Network-Published shared variable for each variable that needs to be sent to a non-Realtime host VI. Each of the Single-Process variables shows up as a VI file with the following format: <variable library>_<variable name>.vi. The VI has one control which is the shared variable. I have a large number of variables and this creates a lot of clutter in the directory. I expected them to be rolled up into the library file. Is this expected behavior? I'm attaching a screen shot to show the behavior.
    Attachments:
    Shared Variables in Directory.JPG ‏383 KB

    Hi davidreed10,
    This is a known issue with single process variables that are saved in a
    project that has the .lvproj and .lvlib files initially saved in different
    locations, as is the case with Real-Time projects. This has been
    previously reported to our R&D department with the ID #56580, and
    is being worked on for a fix in a future release of LabVIEW.
    This should be only a problem for Single-Process variables, and not
    Network-Published variables, so if you want to keep your folder from
    getting cluttered up, changing the variable types to Network-Published
    should get you around the problem for now.
    Regards,
    Stephen S.
    National Instruments
    Applications Engineering

  • Creating a Single Report from Oracle Data Base and BI Answers

    Hi,
    I wanted to create a single report by using a BI Report where in we have project and Activity columns,now I want to add column with Program to see the results.Program data is in Oracle Database.
    Can some one help me how to create the report.
    ii.How to edit a pivot table in BI word designer.What I am doing present is creating every time a new report.
    Thx In Adv.
    From Sravan

    Hi Pivot table was a general question.Is is nothing to do with the qus 1.
    See I have a report which have a programme and Activity.So I need to get the data of Prject from Data base how to do this in BIP.....I am not using any pivot table here.

  • Creating a single pdf from multiple pdfs - linking to original pdfs

    I have been asked to create a PDF document from other, smaller PDFs. The individual PDFs, which I am using to create the larger PDF, are maintained on a shared network drive. I am using Acrobat Pro XI and dragging the files onto the thumbnail navigation pane and creating bookmarks. The result is to be a navigatable document with a table of contents. My problem is that the individual files from the network drive will change. Ideally, I would like the large document I am creating to update automaticaly when the individual files are changed. Does anyone know of a tool I can use to link in this way? I have Tech Comm Suite 4.
    Thanks,
    Mary

    Try PDFLab (freeware) at www.versiontracker.com.

  • Can not create a environment variable from a script

    Hi I need to develop a script that allows me to create and set two environment variables in my system but I can�t get it ....
    This is what I got till now ...
    #!/sbin/sh
    SEISDB_HOME=/usr/local/
    export SEISDB_HOME
    LD_LIBRARY_PATH=/usr/local/lib
    export LD_LIBRARY_PATH
    If I run this commands directly in the shell it works Ok ... but calling the sentence from a script nothing happens ....
    Thanks ....
    Edited by: Jes_79 on Sep 18, 2007 1:58 PM

    do this
    create a script file
    vi /tmp/temp
    in /tmp/temp add
    GLOBAL_VARIABLE="Hello World"; export GLOBAL_VARIABLE
    save and quit vi
    fix the permissions and run /tmp/temp from a shell prompt
    then
    echo $GLOBAL_VARIABLE
    should show as empty
    from a shell window type
    . /tmp/temp
    period space /tmp/temp
    echo $GLOBAL_VARIABLE
    for you script, do the same.
    do not type the script name, but source it (add a period and space)
    alan

  • Acrobat offers to create a single document from multiple screenshots

    Is there a way to turn this off?  I take screenshots of multiple jobs daily and I have to say "no" every time I drag those screenshots to Acrobat to create PDFs that can be stored with the jobs.  I know how to do this within Acrobat and I do not want to do this with every screenshot I create a PDF from!  If there's a way to say "remember my answer", that would make my work life so much easier!

    These mpeg2 clips do not have audio.
    I simply want to create a script that can read in the files, append to each other and then export to an .mov format.
    I want the process to be called from a command line that will open QT, run the script, read in the files, append and export.
    Thanks.
    G5 and Mac Pro Mac OS X (10.4.8) PC's and Windows
    G5 and Mac Pro Mac OS X (10.4.8) PC's and Windows

  • Is it possible to create a single picture from the many that I have taken?

    I have about 100 pictures of dogs and cats,as well people and I was not sure if adobe elements 10 could do this. Many of the pictures are from family that has passed away and I wanted to make one large photo from all of them

    Unfortunately, you have posted to the Premiere Elements Forum. You want the Photoshop Elements Forum.
    They will give you the steps, but there are many ways to create a photo-collage. Those can differ a bit, but basically you will Open a background Image (can be a New Image w/ a colored background or an existing Image), and then the ones that you wish to include. Click on the Background Layer of each of those, and drag to the background Image. The next step is for Photoshop, and might not work in PSElements, but hit Ctrl+T (Free Transform), hold down Shift to constrain the Aspect Ratio, click one corner and drag that, to decrease/increase the size. Repeat.
    Good luck,
    Hunt

  • Creating a single album from multiple tracks

    When I import a boxed set (say Billy Joel's "Nine Lives"), iTunes splits the tracks according to the artist listed on each one.  Thus, Billy's early band gets its own album listing; tracks attributed to Billy get a different album, and so forth. 
    But I want all of the tracks to be listed under a single album (or, in this case, 4 discs). 
    How do I do this?  Add "Billy Joel" to the artist category for each track?
    Thanks in advance for your help!

    I recommend this process:
    Repeat this for each track --
    Control - click on a track, then choose "Get Info".  Go to the "Info" tab on top, and check the "Part of a compilation" box in the lower right.

  • How can I create a single array from three arrays? Please Help!

    I have three arrays:
    Dates[2002-10-29 2002-10-30 2002-10-31 ...]
    OCodes[AC AD AE ...]
    LCodes[A01 A02 A03 ...]
    I would like to combine the above three arrays and write out to an array
    The new array would look like:
    NewArray[ 2002-10-29 AC A01, 2002-10-29 AC A02, 2002-10-29 AC A03,
    2002-10-29 AD A01, 2002-10-29 AD A02, 2002-10-29 AD A03,
    2002-10-29 AE A01, 2002-10-29 AE A02, 2002-10-29 AE A03 ......,
    2002-10-31 AC A01, 2002-10-31 AC A02, 2002-10-31 AC A03....,
    2002-10-31 AE A01, 2002-10-31 AE A02, 2002-10-31 AE A03...]
    Thanks in advance!

    String [ ] newArray = new String [Dates.length];
    for (int counter = 0; counter < Dates.length; ++ counter)
    StringBuffer buf = new String Buffer();
    buf.append(Dates[counter] + " ");
    buf.append(OCodes[counter] + " ");
    buf.append(LCodes[counter]);
    newArray[counter] = buf.toString(0;
    }

Maybe you are looking for

  • Can't delete photos from Iphone Photo Stream - Have tried everything Apple has instructed me

    I am soooooooo frustrated.  I just downloaded OS 5 on my Iphone 4 and bought Apple TV - and was introduced to what looked like the wonderful world of "iCloud" and Photostream.  Particularly photo stream on my screen saver on my new Apple TV.   I took

  • How do you open a multi page tif be opened in Photoshop?

    I have an embedded tif with a render, shadow layers and other channels in one tif. (Not created in Photoshop) I thought it was multilayered tif, but I think it's called a multi page tif. When I open it in Photoshop it opens the top layer/page, and no

  • Double Clicking to Open in PS4

    I'm using PS4 Extended on Windows SP3 and whenever I double click on a JPEG, TIFF or PSD file, it will open Photoshop but the file itself does not open. I've checked to make sure PS4 is the chosen program to open with both in Properties as well as in

  • Hmmm ... AOE II for mobile

    I was surfing the internet when I encountered this: http://www.ageofempires2-mobile.com/site/trailer.php?lang=en Now I saw it, and the graphics look nice. I am sure that same things can be done with J2ME (altough I am still searching for a game engin

  • How do I licence elements 12, as spaces for sn's not match

    How do I licence elements 12, as spaces for sn's does not match with the spaces on the box or in the store receipt, ( only has 6 blocks for 4 numbers each on the Adobe screen whereas the box has 30 numbers) so it always says: wrong serial number.