ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

how to convert an expression to a plugin or script.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kutluhan Aykut
how to convert an expression to a plugin or script.
on Dec 23, 2016 at 1:38:24 pm

Hi,

I have some expressions that are applied to position and rotation values.
The give random position and rotation at the start of a clip.

How can i convert them to st like plugin or a drag drop to apply to multiple layers in future projects
I know copyy expression and pate them o all layers but it is not a crossproject solution.

Heres the code.. copied with coppy expressions only..

Adobe After Effects 8.0 Keyframe Data

Transform Y Rotation
Expression Data
moveFrames = 125;
seedRandom(1,true);
endRotat = transform.xRotation;
startRotat = random(1000);
ease(time,inPoint,inPoint+framesToTime(moveFrames),startRotat,endRotat)
End of Expression Data

Transform Position
Expression Data
moveFrames = 125;
seedRandom(index,true);
startPos = [transform.position[0],transform.position[1],transform.position[2]];
endPos = random([transform.position[0]-1000,transform.position[1]-1000,-30000],[transform.position[0]+1000,transform.position[0]+1000,-30000]);
ease(time,inPoint,inPoint+framesToTime(moveFrames),endPos,startPos)
End of Expression Data

Transform X Rotation
Expression Data
moveFrames = 125;
seedRandom(1,true);
endRotat = transform.xRotation;
startRotat = random(1000);
ease(time,inPoint,inPoint+framesToTime(moveFrames),startRotat,endRotat)
End of Expression Data

Transform Rotation
Expression Data
moveFrames = 125;
seedRandom(1,true);
endRotat = transform.xRotation;
startRotat = random(1000);
ease(time,inPoint,inPoint+framesToTime(moveFrames),startRotat,endRotat)
End of Expression Data


End of Keyframe Data


REGARDS


Return to posts index

Dan Ebberts
Re: how to convert an expression to a plugin or script.
on Dec 23, 2016 at 2:07:26 pm

You could save them as a preset.

Dan



Return to posts index

Kutluhan Aykut
Re: how to convert an expression to a plugin or script.
on Dec 23, 2016 at 4:00:08 pm

thx


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]