creating actions causes lua console madness

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

creating actions causes lua console madness

Post 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?
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post 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
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

it hangs the machine for a while though as it loops loads of times... also happens when i open a menu?
User avatar
Víctor Paredes
Site Admin
Posts: 5815
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post 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:
Image Image Image Image Image Image
Moho co-owner

Previously Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post 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...
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post 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
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Post 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
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Post 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
User avatar
Imago
Posts: 698
Joined: Wed Dec 10, 2008 9:48 am
Location: Sardinia

Post by Imago »

I see this error when I press CRTL+Z to undo some modification during action creation...
There a way to avoid it?
Sorry for my bad english... Q_Q
Post Reply