Make my layer color my print color

I ended up adjusting another script I found however I’m now struggling to undo the process… I believe it is perhaps because you cant undo a python script until after the entire script has been run?? :confused:
(Controlling Undo from Python)

When I add an undo command to the script the command line simply says “nothing to undo”

Print Color.py (305 Bytes)