Any way to have multiple #p's in one movie and yet only print 1 #p instead of all of them?

More detailed question:
Lets say I am in my main scene. I want to be able to print at frames 10 and 20. At frame 10, it prints ONLY frame 10 (all layers). At frame 20, it prints ONLY frame 20 (all layers). Any way to do this?

Currently, it prints every reference to #p.
Thanks,
bronskrat