Skip to main content
Inspiring
August 23, 2018
Answered

Buffer expansion offset issue

  • August 23, 2018
  • 1 reply
  • 722 views

Hi. I'm modifying a textbox plugin and using smartfx. To simplify things I make the output the size of the entire buffer in preRender:

UnionLRect(&req.rect, &extra->output->result_rect);

UnionLRect(&req.rect, &extra->output->max_result_rect);

This works well, the problem comes if I apply a buffer-expanding effect afterwards such as blur or drop shadow. This offsets the textbox effect for some reason.

Correct:

Incorrect as a blur has been applied after the textbox, and has offset it for some reason:

Any ideas for a different method to have the output the size of the comp without this offset issue? Thanks.

This topic has been closed for replies.
Correct answer shachar carmi

i'm guessing here, but perhaps you need to set the output->origin_x and

origin_y params?

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
August 26, 2018

i'm guessing here, but perhaps you need to set the output->origin_x and

origin_y params?

Inspiring
September 1, 2018

You've saved the day again Shachar! I had no idea that an effect applied AFTER my effect could alter the output origins