Does rhino has some integrated function that does work like this? here is a maya example
Try - Record History
http://docs.mcneel.com/rhino/5/help/en-us/commands/history.htm