Make script listener only log "Logmessage"

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

Make script listener only log "Logmessage"

Post by Pete » 07 Jul 2012, 03: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: 403
Joined: 28 Sep 2011, 10:33

Re: Make script listener only log "Logmessage"

Post by myara » 07 Jul 2012, 04: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, 09:28

Re: Make script listener only log "Logmessage"

Post by Pete » 08 Jul 2012, 07:50

Thanks myara that's great!

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests