Suppress script editor results?

Suppress script editor results?

Anonymous
Not applicable
940 Views
3 Replies
Message 1 of 4

Suppress script editor results?

Anonymous
Not applicable
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?
0 Likes
941 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
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.
0 Likes
Message 3 of 4

Anonymous
Not applicable
The command to use is:
scriptEditorInfo -sw 1;

(-sw = warnings, -si = info, -sr = results, --se = errors)
0 Likes
Message 4 of 4

Anonymous
Not applicable
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".
0 Likes