Make the "Lua console" shut the hell up!
Moderators: Víctor Paredes, Belgarath, slowtiger
- stephklein
- Posts: 69
- Joined: Thu Dec 15, 2005 8:09 pm
- Location: Winnipeg, Manitoba, Canada
- Contact:
Make the "Lua console" shut the hell up!
It's not preventing me from working or anything, it's just annoying as hell. I'm working on an action, and if i hit any shortcuts, or select anything from the menubar, the Lua Console pops up and tells me that "Creating objects in the middle of an action can lead to unexpected results" (which i'm not doing in the first place)
Can I disable this or something?
Can I disable this or something?
-Steph Klein
- Lost Marble
- Site Admin
- Posts: 2347
- Joined: Tue Aug 03, 2004 6:02 pm
- Location: Scotts Valley, California, USA
- Contact:
Instead of closing the console window and having it reappear, just drag it off to the side until it's almost offscreen. Easier to ignore that way.
This issue has come up a few times now, but I haven't been able to duplicate the situation. Can you describe the specific steps you're taking that mkes this happen? Also, what operating system are you using?
This issue has come up a few times now, but I haven't been able to duplicate the situation. Can you describe the specific steps you're taking that mkes this happen? Also, what operating system are you using?
- stephklein
- Posts: 69
- Joined: Thu Dec 15, 2005 8:09 pm
- Location: Winnipeg, Manitoba, Canada
- Contact:
Ok, I'm running WinXP-Pro. In Moho (latest version) I have a 5-layered character assembled with several bones. I open the Actions window, and start a new action. While I'm in "action editing/creation mode" (manipulating bones, setting keyframes, etc.), if I hit, say, Ctrl-Z, or Ctrl-S, or click 'File' in the menubar, the Lua Console suddenly appears to grace me with it's presence.
Luckily, I'm running dual monitors, and the console appears in the bottom of the left monitor (while I run Moho in the right monitor) so if I just don't close it, it's easy enough to ignore (much like you suggested).
Luckily, I'm running dual monitors, and the console appears in the bottom of the left monitor (while I run Moho in the right monitor) so if I just don't close it, it's easy enough to ignore (much like you suggested).
-Steph Klein
- stephklein
- Posts: 69
- Joined: Thu Dec 15, 2005 8:09 pm
- Location: Winnipeg, Manitoba, Canada
- Contact:
I searched for this to see if there was a solution, because I'm having this problem constantly now that I'm working with Actions. Same situation -- I create a new action, I go to frame 1, and start moving points around. If I use the mouse to move the points, no errors. But if I use Ctrl-arrow to nudge the points, I get a big stream of "Creating objects in the middle of an action can lead to unexpected results". Also happens if I hit Ctrl-Z for undo, or if I try to use the menus (i.e. File, Edit, Draw, etc.)
Using WinXP here, running Anime Studio. No embedded scripts.
Using WinXP here, running Anime Studio. No embedded scripts.
If doing this still works even after getting the error... meaning if you use the nudge key and stuff still nudges after the lua console pops up...
I suppose the "print(error)" could be commented out somewhere... depends on where it's happening though... might be in all the tools scripts or something to do with actions.
I'll take a quick look when I have time... like... while I'm eating a sandwich or something.
-vern
I suppose the "print(error)" could be commented out somewhere... depends on where it's happening though... might be in all the tools scripts or something to do with actions.
I'll take a quick look when I have time... like... while I'm eating a sandwich or something.
-vern
Crashcore scripts by user macton (see here) have this annoying error printing feature built into them. After I recognized where the Lua console message came from during Actions, I removed the print messages in the IsEnabled member functions of all the CrashCore scripts.
turns into
Etc.
This simply means that these menu scripts do not run if any actions are active, without the error message being printed in the Lua console. I guess that is what most animators prefer.
Code: Select all
function CC_COPY_SELECTED_CURVE:IsEnabled(moho)
if (moho.layer:CurrentAction() ~= "") then
print ("Error: Creating new objects in the middle of an action can lead to unexpected results")
print ("Stop all actions and restart the script.")
return false
end
return true
end
Code: Select all
function CC_COPY_SELECTED_CURVE:IsEnabled(moho)
if (moho.layer:CurrentAction() ~= "") then
return false
end
return true
end
This simply means that these menu scripts do not run if any actions are active, without the error message being printed in the Lua console. I guess that is what most animators prefer.
Yeah, the stuff still nudges, and the menus still come up, just after it's printed out the cascade of that message. So it's not preventing anything, just causing a slight slowdown and annoyance, though the annoyance is remedied by leaving the Lua console open and moving it as far offscreen as possible.
I think if just the nudge and the Undo were fixed, that would eliminate 95% of the time it would happen for me. I don't need to access the menus often while working on an action.
I think if just the nudge and the Undo were fixed, that would eliminate 95% of the time it would happen for me. I don't need to access the menus often while working on an action.