Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › changing content of composition with sliders

  • changing content of composition with sliders

    Posted by Pingo Brinkloev on November 23, 2012 at 11:37 am

    I’m trying to create a flip-book effect. I have one (tricky) “page” composition with animated page flip and numerous content (a movie with stills). I can control the content with freeze frame, linked to a slider.

    I can also put the “page” comp in another comp and control the content from there with a link, no problem.

    But I need to use multiple variations of this composition. As soon as I make a new “page”, the expression only works on the top layer.. (of course)

    Any way to crack this?

    – without making 1000 different pages 🙂

    Cheers!

    Dan Borufka replied 13 years, 10 months ago 4 Members · 7 Replies
  • 7 Replies
  • Dan Ebberts

    November 23, 2012 at 4:52 pm

    What is the expression that you are using?

    Dan

  • Pingo Brinkloev

    November 24, 2012 at 8:27 am

    Here. Pretty straight forward I guess.

    This is the expression on the slider effect on the master composition.

    the slider is controlling a freeze frame using time remap.

    I whish I could attach a screendump here.

    comp("book").layer("page").effect("Slider Control")("Slider")*0.01

  • Dan Ebberts

    November 24, 2012 at 5:07 pm

    I’m still not sure I completely understand what you’re trying to do, but it might be that you need to change your expression to this:

    comp(“book”).layer(thisComp.name).effect(“Slider Control”)(“Slider”)*0.01

    That’s if you’re creating new copies of the page comp (in the project bin). If you’re just duplicating the comp layer and creating instances, it won’t work.

    Dan

  • Darby Edelen

    November 24, 2012 at 10:34 pm

    It sounds like you’re using a freeze frame in the child composition to determine the frame being shown in the parent composition. If that’s the case then you’re stuck. What I’d recommend instead is allowing your child composition to play through each frame, apply time-remapping in the parent composition and use your slider expression there.

    Each instance of the child composition can be remapped independently this way, where as with the remapping/freeze frame in the child composition you’d need a separate instance for each frame (which doesn’t help you any).

    Darby Edelen

  • Pingo Brinkloev

    November 25, 2012 at 11:00 am

    Yeah, I wanted to avoid making copies of the book comp. But this will still save me the trouble of changing all the expressions in case I end up doing it this way. So thanks for that!

  • Pingo Brinkloev

    November 25, 2012 at 11:04 am

    Darby, that’s exactly what I’m trying to do. And yes, I’m stuck. Unfortunately I have an animation of the page flipping, and it’s the “content” of the book I want to change, so to speak. so I can’t just freeze it all. I wanted to keep it as simple as possible, but I might have to split the page into two comps.

  • Dan Borufka

    November 28, 2012 at 5:07 am

    Pingo, why not add another expression control on your book comp to select and animate the index of the layer/page that should be used?

    That way, you could animate a slider (let’s call this one “pageIndex”) and integrate that to your expression.

    var pageIndex = Math.round(comp("book").effect("pageIndex")("Slider").value);
    comp("book").layer(pageIndex).effect("Slider Control")("Slider")*0.01;

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