Control when shader graph is calculated

So I’m using custom scissor rect code ( Scissor rectangle ), that crops the camera’s view changing its projection matrix and rect, but this messes up the screen position calculations. So I just want control of when the shader graph’s code is executed if that’s possible.