Highlighted

Expression to move / pause / repeat

New Here ,
Aug 26, 2020

Copy link to clipboard

Copied

I thought I would be able to find an example expression but I'm having trouble finding a way to have a null object move a set amount; let's say 10 pixels, then pause for 5 frames, then move 10 pixels, then pause and repeat. Kind of like how a typewriter would move in slow motion. Hope you can help.

If you need it in that static rhytm, you can also just keyframe the jump/wait phase and use

 

loopOut("offset");

 

expression.

 

*Martin

TOPICS
Expressions

Views

36

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Expression to move / pause / repeat

New Here ,
Aug 26, 2020

Copy link to clipboard

Copied

I thought I would be able to find an example expression but I'm having trouble finding a way to have a null object move a set amount; let's say 10 pixels, then pause for 5 frames, then move 10 pixels, then pause and repeat. Kind of like how a typewriter would move in slow motion. Hope you can help.

If you need it in that static rhytm, you can also just keyframe the jump/wait phase and use

 

loopOut("offset");

 

expression.

 

*Martin

TOPICS
Expressions

Views

37

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 26, 2020 0
New Here ,
Aug 26, 2020

Copy link to clipboard

Copied

I found a good example incase anyone wants to do the same thing:

 

// set freqency and distance
countFrames = time/thisComp.frameDuration;

freq = countFrames / 5;
jump = Math.round(freq);
newX = jump * -20;

// Create Array
value + [newX,0,0]

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 26, 2020 0
Guide ,
Aug 26, 2020

Copy link to clipboard

Copied

If you need it in that static rhytm, you can also just keyframe the jump/wait phase and use

 

loopOut("offset");

 

expression.

 

*Martin

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 26, 2020 0
New Here ,
Aug 26, 2020

Copy link to clipboard

Copied

Cool thanks, didn't know about that one. Looks handy.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 26, 2020 0