I haven't used actions a lot but *have* been adding various extra tools and generally hacking about so can't really pin-point any reason for the error I am now getting with actions. As follows:
Open a new instance of AS
Draw a shape - eg. circle.
Open action window.
click new action, name and click OK
Get 4 repeats of the following error...
"Creating new objects in the middle of an action can lead to unexpected results
Stop all actions and restart the script."
Opening an action produces two error repeats
Any keypress within an action produces two error repeats
The work I do with the action works but it is hair-tearingly tedious to have to deal with the constant lua console.
Any leads on this would be a major merit maker. . :P
Action error -
Moderators: Víctor Paredes, Belgarath, slowtiger
I think you may have a custom script with some "IsEnabled" function code that is creating the error.
Some scripts would cause trouble when using them in an action. You need to find the script that has this code. The trouble is even if you don't actually select the tool or script the error could still come up if the tool is "enabled" for that type of layer and the "IsEnabled' function has the "action error" code in it.
When you track down the tool or script that has this code in it, just comment out that part in a text editor by typing "--" in front of that line with the alert.
To find this script or tool start with the tool scripts you have added to AS recently. The stuff that came with AS won't have this code.
-vern
Some scripts would cause trouble when using them in an action. You need to find the script that has this code. The trouble is even if you don't actually select the tool or script the error could still come up if the tool is "enabled" for that type of layer and the "IsEnabled' function has the "action error" code in it.
When you track down the tool or script that has this code in it, just comment out that part in a text editor by typing "--" in front of that line with the alert.
To find this script or tool start with the tool scripts you have added to AS recently. The stuff that came with AS won't have this code.
-vern
The script reload does work. However it over time it gets... flaky. This was also the case in 5.6 but more so in 6.
What happens is that it starts out pretty fast. After about the the third or fourth "reload" it gets really slow and klunky and then eventually (at least for me) it will crash AS.
I generally use the reload shortcut the first 3 times... and then just close and reopen AS.... use it 3 or 4 times... rinse and repeat. It all depends on how fast it is working. When reloading takes longer than quitting and relaunching that's when I quit and relaunch.
-vern
What happens is that it starts out pretty fast. After about the the third or fourth "reload" it gets really slow and klunky and then eventually (at least for me) it will crash AS.
I generally use the reload shortcut the first 3 times... and then just close and reopen AS.... use it 3 or 4 times... rinse and repeat. It all depends on how fast it is working. When reloading takes longer than quitting and relaunching that's when I quit and relaunch.

-vern
Working at my level of lua uncertainty 'flaky' could just mean the difference between confirming 'code changes right - but not working' and 'whatever.'
I have pretty much settled my work environment now with 6 so it is not such an issue.
Good to know what is flaky and what is not. I have been working my head out around that one for years
have a good one...
I have pretty much settled my work environment now with 6 so it is not such an issue.
Good to know what is flaky and what is not. I have been working my head out around that one for years

have a good one...