Skip to main content
亮太中57270486
Participating Frequently
Sep 16, 2019 12:00 PM UTC
Question

エクスプレッションでキーフレーム制御

エクスプレッションを用いて画像のことがやりたいです。知ってる方いらっしゃいましたら、ご教授ください。

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    Community Expert
    Sep 20, 2019 9:05 AM UTC

    スクリーンショットのようにキーフレームを打った状態であれば、下記のエクスプレッションでも対応できます。
    キーフレームの位置は、どこでも可。

     

    var i=timeRemap.nearestKey(time);
    var n=0;
    if (time >= i.time){
    	n=i.index
    } else {
    	n=i.index-1;
    }
    key(n)
    Translate
    Community Expert
    Sep 18, 2019 10:17 AM UTC

    例えば、下記はどうでしょう。

    キーフレームは停止した状態なので、タイムリマップのキーフレームの総数に合うように、
    位置の値を全て入力してください。
    (0フレームと最終フレームも入力)

     

    <9月20日更新> 5行目を書き換えました。

     

    var x=new Array(900,900,1600,800);	//X位置の値
    var y=new Array(500,300,300,300);	//Y位置の値
    var i=timeRemap.nearestKey(time);
    var keyid=0;
    if (time >= i.time){
    	keyid=i.index-1
    } else {
    	keyid=i.index-2;
    }
    [x[keyid] , y[keyid]]

     

    Translate
    Community Expert
    Sep 20, 2019 4:01 AM UTC

    エクスプレッションを修正しました

    Translate
    Tomas Sinkunas
    Legend
    Sep 16, 2019 1:10 PM UTC

    Can you upload a bigger image and post a comment from that image in here, so one can translate it into a language he understands?

    Translate
    亮太中57270486
    Participating Frequently
    Sep 17, 2019 2:00 AM UTC
    sorry,please wait
    Translate