Add a Render Effect [SOLVED]

On 06/02/2017 at 23:17, xxxxxxxx wrote:

Hello,guys.

I have a question:

How to add a Render Effect into a current Render Setting via python? For example,add a NormalPass Effect.

Thank you for any help!

On 07/02/2017 at 07:10, xxxxxxxx wrote:

Hi kjya2008, thanks for writing us.

With reference to your support request, adding a Render Effect in the current Render Setting is as straightforward as much as adding a VideoPost to the current RenderData.
Actually the steps to carry out are:

  1. Retrieve the current RenderData (GetActiveRenderData())
  2. Allocate the new VideoPost instance related to the specified effect by specifying its ID
  3. Insert the allocated instance in the RenderData (InsertVideoPostLast(...))
  4. Enable an event add (EventAdd())

Best, Riccardo

On 07/02/2017 at 16:50, xxxxxxxx wrote:

Hi,knickknack.

Thank you very much!