Make script listener only log "Logmessage"

Discussions concerning programming of SOFTIMAGE©
User avatar
Pete
Posts: 118
Joined: 16 Jun 2009, 07:28

Make script listener only log "Logmessage"

Post by Pete » 07 Jul 2012, 01:45

Hi there,

I was just wondering if it's possible to make the listener window only show logmessage's when running a script?
Just thought it might be nice to only see my messages sometimes rather than sift though all the rest.

Thanks
Pete

User avatar
myara
Posts: 406
Joined: 28 Sep 2011, 08:33

Re: Make script listener only log "Logmessage"

Post by myara » 07 Jul 2012, 02:37

Turn log off

Code: Select all

//jscript
var prefs = Application.Preferences;
prefs.SetPreferenceValue( "scripting.cmdlog", false );
You don't need to turn it back on because SI will automatically do it after your script is done.

I you are using a PPG you may need to turn log off in every function.
M.Yara
Character Modeler | Softimage Generalist (sort of)

User avatar
Pete
Posts: 118
Joined: 16 Jun 2009, 07:28

Re: Make script listener only log "Logmessage"

Post by Pete » 08 Jul 2012, 05:50

Thanks myara that's great!