0
$\begingroup$

I have values printed in a system console in long lines and the lines are split to fit the window. Is there a way to copy the values without breaking the lines? I'm using windows 10

$\endgroup$
9
  • $\begingroup$ This doesn't really seem to be a blender-specific question? Seems to me this may be better suited to super user $\endgroup$
    – gandalf3
    Aug 30, 2015 at 19:33
  • 2
    $\begingroup$ I'm voting to close this question as off-topic because it is about an operating system console. $\endgroup$ Aug 30, 2015 at 20:31
  • $\begingroup$ @gandalf3 I was hoping to get a solution maybe using python, but its simpler just to adjust the console window. $\endgroup$
    – Denis
    Aug 30, 2015 at 20:40
  • $\begingroup$ @Denis using python to manipulate the console/terminal would be even more platform specific. In linux you could for instance start blender in a pseudo terminal (pty) and do whatever you want . $\endgroup$
    – user2859
    Aug 30, 2015 at 20:46
  • $\begingroup$ @user2859 The question is not really about manipulating the console window, all I needed is a way to copy the values without breaking the lines. $\endgroup$
    – Denis
    Aug 30, 2015 at 20:55

1 Answer 1

2
$\begingroup$

Consider changing the [width] property from the properties of your console. You need to know the length of the longest line by inspection.

Under MS Windows it is done with the properties panel as depicted below. Your OS was not specified.

Blender output seems wrapped to the current width of the console.

enter image description here

You can also consider changing your print statements to some some other function which writes text it to a file, append, open and close. File Redirection may be possible. I am not currently using Linux/Variants but in some programs one may choose the console.

$\endgroup$
6
  • $\begingroup$ Im on windows 10, and it solved the problem. where can i find an example how to print it into a text file? I have each frame printed into one line. $\endgroup$
    – Denis
    Aug 30, 2015 at 18:00
  • $\begingroup$ @Denis you can write the output directly to a file, no need to start blender with a pipe/redirection. file=open('./myfile', 'w+') file.write('Blah') or even print('Blah', file=file) $\endgroup$
    – user2859
    Aug 30, 2015 at 18:11
  • $\begingroup$ Suppose you have N (number) print statements you want to go to a file. You might copy and paste N new file write/append statements. Depending on how much formatting you have you may or may not like this. I suggest you have a new question if it is worth your time. How do I convert/supplement Blender console Python print statements into file write/append statement in an efficient way? $\endgroup$ Aug 30, 2015 at 18:11
  • $\begingroup$ @atomicbezierslinger it doesnt really matter as long as I can copy the values correctly. $\endgroup$
    – Denis
    Aug 30, 2015 at 18:26
  • $\begingroup$ @user2859 Is a file close good form or unnecessary for append? Name suggestion for windows myfile.txt. $\endgroup$ Aug 30, 2015 at 18:29

Not the answer you're looking for? Browse other questions tagged .