Skip to main content
Known Participant
April 5, 2023
Question

Layers of same colour don't render separately

  • April 5, 2023
  • 1 reply
  • 470 views

I'm developing an after effects plugin using the after effects sdk. I set layer definition with some rgb values on PF_Cmd_Render In after effects, when I take solid layers of same colour and hide/unhide one layer, the UI doesn't update, but if I take layers of different colours, and hide/unhide one layer, the UI updates respectively.

This topic has been closed for replies.

1 reply

Community Expert
April 5, 2023

what do you mean by "hide"? disable the layer in the timline, or hide the layer selector parameter?

possibly solids of the same color share the same source project item. perhaps that item factored into GuidMixInPtr()?

Veena2411Author
Known Participant
April 16, 2023

No, by hiding I simply mean clicking the eye button next to a layer. I mean hiding a top layer to view the contents of the layers behind. If I take two layers of the same colour and hide the top layer to be able to see the contents of just the layer behind, the contents of the top layer are still visible. This doesn't happen in case of layers of different colours. 

Community Expert
April 17, 2023

well... my best guess is that you're accidentally writing into the checked out layer buffer. AE re-uses input buffers, and on the few times i made the mistake of writing into them this is exactly how it manifested.