Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Suppress script editor results?
  RSS 2.0 ATOM  

Suppress script editor results?
Rate this thread
 
44376
 
Permlink of this thread  
avatar
  • Total Posts: 36
  • Joined: 25 May 2010 08:59 PM

Is there a way to suppress the script editor’s History altogether?  I know you can suppress errors and command results and stuff, but some commands still pop up there even when everything in the ‘Command’ menu is checked.

For instance, if I have autokeyframe on and i move an object, at the very least I will get (for instance)....

move -r 2.577242 -0.157389 -2.655937 ;
autoKeyframe;
// Result: 3 //

...every time I move the object. 

This is an annoyance when it comes to debugging my script. I’m writing a complex pose copying \ pasting system.  When I hit paste, since I can’t suppress the history results I get tons of the autokeyframe messages.  This means if the user has the script editor open it slows down pose pasting dramatically, and overloads them with useless information. 

For this particular case, I can code around it...I can turn off autokeyframe, paste the pose, then turn it back on, but thats pretty messy, IMO.

Anyone know how to disable the script edtior’s history altogether, then re-enable it when the script finishes?



Replies: 0
avatar

Hi,

Did you ever solve this? I am having the same problem: I am importing data, which i set keyframes for. I am setting at least 50.000 keyframes for 1 second animation, which is very slow. I am suspecting the “autoKeyframe;” - message to be the cause of the slowness.



Replies: 0
avatar

The command to use is:
scriptEditorInfo -sw 1;

(-sw = warnings, -si = info, -sr = results, --se = errors)



Replies: 1
/img/forum/dark/default_avatar.png

The original poster indicated he already had tried suppressing what is suppressable (via Script Editor menu, or the scriptEditorInfo equivalent)
. The problem is that some commands insist on spitting out information anyway.  I have the same problem. Is very annoying.  Have not found any solution.

Specifically, I want to send explicit messages to history window, to inform user of progress and results. I can do that fine with “print”.  But depending on what my script is doing, there are other messages that go there.  Some of which there appear to be no way to suppress.  (Most commands suppress okay, using -si and -sr.  I’ve also tried all the other options.) When there are many, this is a major annoyance.  The two offendors used in my script are “polyCleanupArgList” and “hypershade -assign”.

Author: ToolmakerSteve

Replied: 17 April 2012 06:33 PM