PDA

View Full Version : Limit history panel lines


jojanpm
02-03-2011, 04:27 AM
Does anybody know a way to limit the number of lines in Maya script editor history?
i.e; if the limit is 50 and a new line adds to history, the first line should be deleted from history panel.
Anybody?

NaughtyNathan
02-03-2011, 09:27 AM
why on EARTH would anyone want or need this behaviour..? :curious:

:nathaN

jojanpm
02-03-2011, 10:36 AM
its useful for me when debugging my scripts (by 'print' statements).
Else, i have to clear history frequently.

NaughtyNathan
02-03-2011, 11:21 AM
just put a call to the clear history command into the start of your script, or write a little function launcher that sources your given file, clears the script Editor then runs your function.
scriptEditorInfo -ch;:nathaN

jojanpm
02-03-2011, 11:40 AM
ok, thank you..
but i thought there can be some optionVar in userPrefs, or so in order to limit the history write, which can be a better way in my case than clearing the full history.

CGTalk Moderation
02-03-2011, 11:40 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.