618550
680
Verklein
Vergroot
Pagina terug
1/761
Pagina verder
674
Expressions and automation
Last updated 11/30/2015
function average(a, b)
{
return (a + b) / 2;
}
average(position, thisComp.layer(1).position);
Note: You must define each function fully within each expression in which it is used. There is no global library of functions
that you can add to.
If you want to save an expression for use in another project, you should add comments to the expression. (See Add
comments to an expression.) You should also use variables so that you can change a value in one place rather than
having to change it in several places.
For example, this expression has a multiline comment at the beginning that explains what the expression does and a
short comment after a variable is declared and initialized that tells what the variable is for:
/* This expression on a Source Text property reports the name
of a layer and the value of its Opacity property. */
var myLayerIndex = 1; // layer to inspect, initialized to 1, for top layer
thisComp.layer(myLayerIndex).name + ": \rOpacity = " +
thisComp.layer(myLayerIndex).opacity.value
You can save an animation preset that includes an expression and reuse it in other projects, as long as the expression
does not refer to properties that don’t exist in the other projects. When you save a preset in which a property has an
expression but no keyframes, only the expression is saved. If the property has one or more keyframes, the saved preset
contains the expression along with all keyframe values.
You can copy an expression from a layer property, with or without the keyframes for the property.
To copy an expression and keyframes from one property to other properties, select the source layer property in the
Timeline panel, copy the layer property, select the target layer properties, and paste.
To copy an expression from one property to other properties without copying keyframes, select the source property,
choose Edit > Copy Expression Only, select the target properties, and paste.
Copying an expression without keyframes is useful when you want to simultaneously copy multiple expressions and
paste them onto one or more new layers, or when you want to copy one expression and paste it onto more than one layer.
Note: As with pasting keyframes and other items, you can often paste the item into the target layer and rely on After Effects
to determine which property should be the target of the paste operation. For example, this works for copying Position
properties from one layer to another, but you must select the target property yourself if you are pasting an expression from
a Position property into a Scale property.
Paul Tuersley provides the pt_ExpressEdit script for managing and editing expressions.
Expression Controls effects
Use an Expression Controls effect to add a control that you can use to manipulate the values of one or many properties
by linking the property to the control using expressions. A single control can affect several properties at once.
The names for the Expression Control effects indicate what type of property control they provide: Angle Control,
Checkbox Control, Color Control, Layer Control, Point Control, Slider Control. After Effects CS5.5 and later includes
a 3D Point Control, as well.
680

Hulp nodig? Stel uw vraag in het forum

Spelregels

Misbruik melden

Gebruikershandleiding.com neemt misbruik van zijn services uitermate serieus. U kunt hieronder aangeven waarom deze vraag ongepast is. Wij controleren de vraag en zonodig wordt deze verwijderd.

Product:

Bijvoorbeeld antisemitische inhoud, racistische inhoud, of materiaal dat gewelddadige fysieke handelingen tot gevolg kan hebben.

Bijvoorbeeld een creditcardnummer, een persoonlijk identificatienummer, of een geheim adres. E-mailadressen en volledige namen worden niet als privégegevens beschouwd.

Spelregels forum

Om tot zinvolle vragen te komen hanteren wij de volgende spelregels:

Belangrijk! Als er een antwoord wordt gegeven op uw vraag, dan is het voor de gever van het antwoord nuttig om te weten als u er wel (of niet) mee geholpen bent! Wij vragen u dus ook te reageren op een antwoord.

Belangrijk! Antwoorden worden ook per e-mail naar abonnees gestuurd. Laat uw emailadres achter op deze site, zodat u op de hoogte blijft. U krijgt dan ook andere vragen en antwoorden te zien.

Abonneren

Abonneer u voor het ontvangen van emails voor uw Adobe After Effects CC - 2015 bij:


U ontvangt een email met instructies om u voor één of beide opties in te schrijven.


Ontvang uw handleiding per email

Vul uw emailadres in en ontvang de handleiding van Adobe After Effects CC - 2015 in de taal/talen: Engels als bijlage per email.

De handleiding is 25,13 mb groot.

 

U ontvangt de handleiding per email binnen enkele minuten. Als u geen email heeft ontvangen, dan heeft u waarschijnlijk een verkeerd emailadres ingevuld of is uw mailbox te vol. Daarnaast kan het zijn dat uw internetprovider een maximum heeft aan de grootte per email. Omdat hier een handleiding wordt meegestuurd, kan het voorkomen dat de email groter is dan toegestaan bij uw provider.

Andere handleiding(en) van Adobe After Effects CC - 2015

Adobe After Effects CC - 2015 Gebruiksaanwijzing - Deutsch - 845 pagina's


Uw handleiding is per email verstuurd. Controleer uw email

Als u niet binnen een kwartier uw email met handleiding ontvangen heeft, kan het zijn dat u een verkeerd emailadres heeft ingevuld of dat uw emailprovider een maximum grootte per email heeft ingesteld die kleiner is dan de grootte van de handleiding.

Er is een email naar u verstuurd om uw inschrijving definitief te maken.

Controleer uw email en volg de aanwijzingen op om uw inschrijving definitief te maken

U heeft geen emailadres opgegeven

Als u de handleiding per email wilt ontvangen, vul dan een geldig emailadres in.

Uw vraag is op deze pagina toegevoegd

Wilt u een email ontvangen bij een antwoord en/of nieuwe vragen? Vul dan hier uw emailadres in.



Info