0
$\begingroup$

I am starting to have a lot of scripts going on at the same time, most of which go on every tick and print on every tick. When I go to the console to see what is going on, I see a ton of items repeating the same thing line after line. Is there a way to keep this under control? Perhaps it will only print if something changed? If I do that then stuff that is always supposed to be changing will keep printing. How can I keep this under control? Thanks.

$\endgroup$
  • $\begingroup$ This is really a Python question and not Blender specific. But have you tried the 'logging' module to log program states, and only print to the console properties you care about? $\endgroup$ – Mike Pan May 20 '15 at 3:27
  • $\begingroup$ You can also use the sys module for output and '\r' to rewrite the same line. This way you could output only a list of variables on every line that changes value. See blender.stackexchange.com/questions/3219/… $\endgroup$ – Jaroslav Jerryno Novotny May 20 '15 at 6:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.