Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Clone startTime and outPoint from one to other layer with script or expression?

  • Clone startTime and outPoint from one to other layer with script or expression?

    Posted by Aleksandrs Valters on January 20, 2010 at 7:08 pm

    Clone startTime and outPoint from one to other layer with script or expression?

    Hello It’s me again. I’m stuck in new string of code..
    Any ideas will be helpful!

    Layers in “A-Composition” must change its startTime and outPoint.
    startTime and outPoint they must take from layers in “B-Composition”.

    “B-Composition” “A-Composition”
    comp_layer_a_source_01 >>>>> layer_b_final_01
    comp_layer_a_source_02 >>>>> layer_b_final_02
    comp_layer_a_source_03 >>>>> layer_b_final_03

    comp_layer_a_source_99 >>>>> layer_b_final_99
    layer_bbb_src_01>>>>>>>>layer_bbb_01
    layer_bbb_src_02>>>>>>>>layer_bbb_02

    Aleksandrs Valters replied 16 years, 6 months ago 1 Member · 1 Reply
  • 1 Reply
  • Aleksandrs Valters

    January 22, 2010 at 12:20 pm

    That was easy. sorry. Sometimes just need to sleep well before work! =)

    var x=app.project.item(2).layer(1).startTime;
    var c=app.project.item(2).layer(1).outPoint;
    app.project.item(1).layer(1).startTime=x;
    app.project.item(1).layer(1).outPoint=c;

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy