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

Adobe After Effectsでカメラが追随してくれない / Doesn't work the Camera tracking expressions

New Here ,
Jul 25, 2019 Jul 25, 2019

Copy link to clipboard

Copied

Eng & 日本語

I have a question about Expression in After effects CC 2019.

アフターエフェクトのエクスプレッションについての質問です。

I'm going to use the tracking camera from a white uniformed girl in the view window to the black clothed woman by using the expression below but it doesn't work with it.

手前の制服の女性から奥の女性にカメラを追随させるエクスプレッションを組む時に以下のようにエクスプレッションを記載したのですがどうやら構文エラーということで反応しませんでした。

Screen Shot 2019-07-26 at 14.33.13.png

movement of camera expression

「カメラをAからBへと移動させる」

cc=effect("Slider")("TargetControl");

num=Math.floor(cc);

nxtNum=num+1;

start=effect(“Layer”)(“Target-"+num).position;

end=effect(“Layer”)(“Target-”+nxtNum).position;

if(effect(“ease”)(“Checkbox”)==0){

linear(cc,num,nxtNum,start,end)}

else{

ease(cc,num,nxtNum,start,end);}

[Explanation Of Expression]

Let’s call “Slider” of “Target Control” cc; it means Camera Control

Math.floor means cutting off after the decimal point

Setting nxtNum as num+1, it means if num is 0 nxtNum is 1

Start is the start point of Camera and end is the end point of it.and end point is the position of nxtNum.

As the nxtNum is num+1, you need to set additional Layer Control as “Target-“.

If the Checkbox of ease is not checked, the camera would move from start to end in linear speed.

If the Checkbox is checked, then the camera would move from start to end in ease speed.

[エクスプレッションの解説]

”Target Control”“Slidercc と呼ぶ。

Math.floor は小数点以下切り捨て

nxtNum は num + 1 なのでnumが0であればnxtNumは1となる

Start はカメラの始点でend は終点。終点はnxtNumの位置になる

nxtNumはnum+1なので”Target-”として余分にレイヤー制御を追加している。

If文はもしチェックボックスがオフの時はカメラの動きがlinear, 等速になり、

チェックボックスがオンの時はカメラの動きが滑らかなeaseになるとしている。

____________________________________________

I would appreciate if you could solve or tell me other way to make it work well.

エクスプレッションに詳しい方やこの文を改変してできた場合は教えていただければ幸いです。

Views

561

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
Engaged ,
Jul 26, 2019 Jul 26, 2019

Copy link to clipboard

Copied

スライダーの値を0〜100に設定したとして、

0の時は手前の女性、100の時は奥の女性ということであれば、

cc=effect("TargetControl")("Slider");

start=effect("Target-0")("Layer").position;

end=effect("Target-1")("Layer").position;

if(effect("Ease")("Checkbox")==0){

linear(cc,0,100,start,end);}

else{

ease(cc,0,100,start,end);}

で一応動作はしますがが。。イメージとは違いますか?

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
New Here ,
Jul 26, 2019 Jul 26, 2019

Copy link to clipboard

Copied

回答ありがとうございます。

書き忘れていたのですが、これからさらに画像レイヤーを追加して自動で追随させたいので、

例えば3つ目の画像レイヤーを挿入した際にレイヤー制御の Target- を増やしてスライダーの数値を増やすだけで追随するようにしたいのです。^^;

ちなみに1行目の cc=effect("Slider")("TargetControl");

のところも最初 cc=effect("TargetControl")("Slider"); としていたら構文エラーが出てしまい

() の位置を入れ替えたらエラーが消えたので何かそういったエラーなのかなと色々と組み替えてるんですが。。。

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
Engaged ,
Jul 26, 2019 Jul 26, 2019

Copy link to clipboard

Copied

LATEST

スライダーの値はポジションの値ではないのですね。

ちょっと考えてはみますが上級者さんからのアドバイスの方が早いかもしれませんw。

どなたかお助け下さい。m(_ _)m

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