• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to add/remove key frames in CEP panel

Community Beginner ,
Jul 23, 2021 Jul 23, 2021

Copy link to clipboard

Copied

Hi, I want to add/remove key frames of 'Position' and 'Scale' effects of a sequence at different time positions in a CEP panel. How can I do this in a CEP panel?

TOPICS
Effects and Titles , How to , SDK

Views

378

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
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jul 23, 2021 Jul 23, 2021

See the aptly-named 'playWithKeyframes' function, in the PProPanel sample. 🙂


Votes

Translate

Translate
Adobe Employee ,
Jul 23, 2021 Jul 23, 2021

Copy link to clipboard

Copied

See the aptly-named 'playWithKeyframes' function, in the PProPanel sample. 🙂


Votes

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
community guidelines
Community Beginner ,
Jul 23, 2021 Jul 23, 2021

Copy link to clipboard

Copied

playWithKeyframes function has only Gaussian blur example. But I want position and scale effect key framing example.

Votes

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
community guidelines
Adobe Employee ,
Jul 24, 2021 Jul 24, 2021

Copy link to clipboard

Copied

Look through the available clip.components.

Votes

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
community guidelines
Community Beginner ,
Aug 19, 2021 Aug 19, 2021

Copy link to clipboard

Copied

In Position component, how can I able to set it's value? Unlike other components (Scale, Opacity), it has two values.  I want to set both values individually. But I don't know how to access or set it's value. Can I able to set it's value by positionComponent.setValueAtKey()? Do I need to pass values as an array in the above function? please give me some sample code!

images_1.jpg

 

Votes

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
community guidelines
Adobe Employee ,
Aug 19, 2021 Aug 19, 2021

Copy link to clipboard

Copied

var seq = app.project.activeSequence;
if (seq) {
	var firstVideoTrack = seq.videoTracks[0];
	if (firstVideoTrack) {
		var firstClip = firstVideoTrack.clips[0];
		if (firstClip) {
			var clipComponents = firstClip.components;
			if (clipComponents) {
				var motion		= clipComponents[1]; 
				if (motion) {
					var position = motion.properties[0];
					var posValue = position.getValue();
					var newPosValue = [.6, .6];
					var setResult = position.setValue(newPosValue, true);
				}
			}
		}
	}
} 

Votes

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
community guidelines
Community Beginner ,
Aug 19, 2021 Aug 19, 2021

Copy link to clipboard

Copied

LATEST

Thank you very much for your reply. It works perfectly!

Votes

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
community guidelines