Some test from a Python script I did earlier. The idea was to process cg renders through the script to create a painterly effect.
The animation was rendered in Maya and then processed using multiple AOVs: beauty, Z-depth (to control brush stroke order), and a UV pass (to guide brush direction).
Rudimentary versions for AE and Nuke on gitlab:
Nuke 16.0v4
After Effects ( tested in versions 2020,2021 and 2025 )