Page 1 of 1

creating actions causes lua console madness

Posted: Sat Aug 07, 2010 10:39 pm
by funksmaname
Hey,
I was fiddling with the face i recently made for my screencast, and it all works fine, but when i create an action, any other operation triggers a long stream of;

Error: Creating new objects in teh middle of an action can lead to unexpected results. Stop all actions and restart script

it might well be due to a script i have installed, but for example clicking undo, or opening a menu causes about 50 of these messages to scroll.

If i then reload the file its gone again (I can undo fine), until i create an action?

Posted: Sun Aug 08, 2010 8:54 am
by Genete
That's a built in message that has been there always. There is not way to avoid it other than hide the lua console message after the first one appears, instead of close it.
-G

Posted: Sun Aug 08, 2010 9:52 pm
by funksmaname
it hangs the machine for a while though as it loops loads of times... also happens when i open a menu?

Posted: Sun Aug 08, 2010 11:16 pm
by VĂ­ctor Paredes
This exactly problem used to happen to me on version 6. It has to be a script in conflict, but never could identify it.
In version 7 I have few scripts installed and haven't seen the problem so far.
Sorry I have no solution, maybe you could try re-installing AS and putting each script one by one to detect which is making the conflict.
Sorry, I know that sounds worse than no solution :roll:

Posted: Sun Aug 08, 2010 11:44 pm
by funksmaname
i had a feeling that would probably be what I have to do, although i could probably just start by pulling out scripts from the script folder and seeing if it improves things without re-installing...

...what was the shortcut to refresh AS scripts without restarting the application? can't remember...

Posted: Sun Aug 08, 2010 11:47 pm
by heyvern
There's a tool script installed in your scripts folder that has "enable" code that checks if you are in an action and then displays the text. It is either a new or old script that might have that code in it.

You could open up all of your tool scripts in a text editor or check any new ones you installed recently. Look for the "enable" function near the top of the script. It should have a string in quotes that is the text you see in the lua console.

You want to fix that part of the script, comment out the action checking.

-vern

Posted: Thu Nov 04, 2010 5:49 pm
by chucky
Brilliant,
I still have the errors just like everyone else, but also I have now broken ( through my own coding inexperience and stupidity by trying to follow these cryptic clues) , the lm tools.
We only install these custom scripts because we need these basic and necessary functions that seem to be missing from Anime studio' Pro'
This is a constant complaint of mine, why aren't these very standard tools that have had to be created by enthusiast programmers and installed by us idiot animators, worked up by properly SM and actually included into the software?
We have a the business of animating to do, not searching through some mysterious code to 'comment out' (whatever that means- yeah I did google it and try) bad code, just to get the job done.

Come on Mike lets have some decent tools and bug fixes and stop 'farting' around with poser.
I am going to now reinstall , even though I know the all new crashes in 7 will continue to hound me

Posted: Thu Nov 04, 2010 6:06 pm
by chucky
Yay
I fixed the lm tools that I messed up without reinstalling, but what the hell am I doing??

I am still getting the errors from the fa scripts (I think)
Here is my lame attempt to comment out
if (moho.layer:CurrentAction() ~= "") then
return false --[[ creating new objects in the middle of an action can lead to unexpected results --]]
end
return true
is this right?
I don't expect so

Posted: Sat Nov 20, 2010 6:49 pm
by Imago
I see this error when I press CRTL+Z to undo some modification during action creation...
There a way to avoid it?