2 Replies Latest reply: Nov 22, 2008 2:12 PM by david van brink RSS

    Layer Param Checkout -- interrupts

    david van brink Community Member
      http://omino.com/misc/layerCheckoutOddity.jpg

      I'm doing a dead-simple effect plugin. Takes a source layer, and renders a grid from it, with time steps. All simple!

      But I sometimes end up with "dead cells" in my grid. I think this happens when starting and stopping rendering, like maybe the layers beneath get the Halt signal, but my effect chugs on heedless.

      And then the rendered frame is in the cache, believed rendered.

      Is there a recipe to avoid this?
      Ohhh check for PF_ABORT before any layer checkout maybe?

      Thanks!
        • 1. Re: Layer Param Checkout -- interrupts
          shachar carmi Community Member
          hmmm.....
          that's weird.
          perhaps I'm asking the obvious, but did you set the PF_OutFlag_WIDE_TIME_INPUT flag?

          if that's not the case then i can only think of one other thing that resembles this problem.
          when i used the iterate function, i stored intermediate results with the input pixel. i figured that every iteration I'm handed a new value anyway, so what the heck. right?
          wrong.
          the result was a subtle rendering error at occasional pixels, that would change randomly even if i refresh the same frame.

          is it possible that you're writing into a read only cache, or making AE hand you checked out frames into an already occupied cache?
          could it be that you're not releasing the checked frame before checking a new one?

          I hope this helps.
          if not, perhaps post the parts of the code that you think may cause the problem.
          • 2. Re: Layer Param Checkout -- interrupts
            david van brink Community Member
            :)

            PF_OutFlag_WIDE_TIME_INPUT was it.

            And it's sitting right there in my notes from another plugin, too, "Be sure to set PF_OutFlag_WIDE_TIME_INPUT when doing layer checkouts!" heh.

            Thanks Shachar.