Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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()?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
However, I've fixed it for now by setting these 2 outflags soon after the sequenceSetup -
PF_OutFlag_REFRESH_UI | PF_OutFlag_FORCE_RERENDER