Highlighted

Super new to animation

New Here ,
Aug 11, 2020

Copy link to clipboard

Copied

I would like the purple record (highlighted in blue) to start rotating as soon as the tonearm's (highlighted in green) animation is done ( the last diamond is where the tonearm animation finishes.) I have the purple recording rotating but i couldn't get it to start only when the tonre arm has finished popping up. I've tried using -

thisComp.layer("Iconic pop up animation Tonearm Outlines").transform.position.valueAtTime(time-1)

 

i've also tried to use valueattime() 

 

but to no avail. Any help would be greatly appreciated!Screen Shot 2020-08-11 at 7.40.15 PM.png

Adobe Community Professional
Correct answer by Roland Kahlenberg | Adobe Community Professional

Drop the Expression below into the disc's Transform>Rotation property.

targetLayer = thisComp.layer("Shape Layer 1");
targetLayerProp = targetLayer.transform.position;
maxKey = targetLayerProp.numKeys;
maxKeyTime = targetLayerProp.key(maxKey).time;
rotationSpeed = 25;
if (time < maxKeyTime)
{
value + (maxKeyTime*rotationSpeed)
} else
{
ease(time,value+maxKeyTime*rotationSpeed,value+time*rotationSpeed)
}

 

-----------------------------------------

I'm in a bit of a rush. Let me know if you need an explanation and I'll drop by later.

TOPICS
Expressions, FAQ, How to, Performance

Views

56

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

Super new to animation

New Here ,
Aug 11, 2020

Copy link to clipboard

Copied

I would like the purple record (highlighted in blue) to start rotating as soon as the tonearm's (highlighted in green) animation is done ( the last diamond is where the tonearm animation finishes.) I have the purple recording rotating but i couldn't get it to start only when the tonre arm has finished popping up. I've tried using -

thisComp.layer("Iconic pop up animation Tonearm Outlines").transform.position.valueAtTime(time-1)

 

i've also tried to use valueattime() 

 

but to no avail. Any help would be greatly appreciated!Screen Shot 2020-08-11 at 7.40.15 PM.png

Adobe Community Professional
Correct answer by Roland Kahlenberg | Adobe Community Professional

Drop the Expression below into the disc's Transform>Rotation property.

targetLayer = thisComp.layer("Shape Layer 1");
targetLayerProp = targetLayer.transform.position;
maxKey = targetLayerProp.numKeys;
maxKeyTime = targetLayerProp.key(maxKey).time;
rotationSpeed = 25;
if (time < maxKeyTime)
{
value + (maxKeyTime*rotationSpeed)
} else
{
ease(time,value+maxKeyTime*rotationSpeed,value+time*rotationSpeed)
}

 

-----------------------------------------

I'm in a bit of a rush. Let me know if you need an explanation and I'll drop by later.

TOPICS
Expressions, FAQ, How to, Performance

Views

57

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 11, 2020 0
Adobe Community Professional ,
Aug 11, 2020

Copy link to clipboard

Copied

Drop the Expression below into the disc's Transform>Rotation property.

targetLayer = thisComp.layer("Shape Layer 1");
targetLayerProp = targetLayer.transform.position;
maxKey = targetLayerProp.numKeys;
maxKeyTime = targetLayerProp.key(maxKey).time;
rotationSpeed = 25;
if (time < maxKeyTime)
{
value + (maxKeyTime*rotationSpeed)
} else
{
ease(time,value+maxKeyTime*rotationSpeed,value+time*rotationSpeed)
}

 

-----------------------------------------

I'm in a bit of a rush. Let me know if you need an explanation and I'll drop by later.

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 11, 2020 0