I am trying to convert for the first time a 3D BluRay. While BD3D2MK3D can do it effectively, I'm looking for a way to plug in a custom AviSynth script in the process (I have need of running a couple filters on the source). I did not see a way to do it, can this be done?

If not, where can I read about the process BD3D2MK3D relies on, so that I can replicate it manually?