Search found 125 matches

by Stan
Mon Aug 15, 2016 2:47 am
Forum: Scripting
Topic: Create new layercomp from toolscript
Replies: 8
Views: 2379

Re: Create new layercomp from toolscript

Great, thank you Wes!
by Stan
Mon Aug 15, 2016 1:24 am
Forum: Scripting
Topic: Create new layercomp from toolscript
Replies: 8
Views: 2379

Re: Create new layercomp from toolscript

Hi Wes,
Was the bug resolved in Moho 12?
by Stan
Fri Aug 05, 2016 8:57 pm
Forum: Scripting
Topic: seach through all child layers?
Replies: 8
Views: 1944

Re: seach through all child layers?

I didn't have any issues using recursion. Well, maybe my projects weren't large enough... And, of course, I didn't use recursion inside frequently called methods like MouseMove or LayerScript. Anyway, I'm glad you have another solution that I wasn't aware of. Thank you, and many thanks to the genius...
by Stan
Fri Aug 05, 2016 4:41 pm
Forum: Scripting
Topic: seach through all child layers?
Replies: 8
Views: 1944

Re: seach through all child layers?

A more elegant solution would be to create a local recursive function. More info here: https://www.lua.org/pil/6.2.html
by Stan
Fri Aug 05, 2016 3:58 pm
Forum: Scripting
Topic: seach through all child layers?
Replies: 8
Views: 1944

Re: seach through all child layers?

You need a recursive function (a function that invokes itself). Here's an example from one of my scripts: -- declare a table variable self.LayersToChange function SZ_RelativeLineWidth:ScanSelectedLayers(moho) for l = 0, moho.document:CountSelectedLayers()-1 do local layer = moho.document:GetSelected...
by Stan
Thu Aug 04, 2016 11:18 pm
Forum: Scripting
Topic: MohoScripting.com - unofficial Moho scripting documentation
Replies: 34
Views: 20274

Re: ASLua.com - unofficial Anime Studio scripting documentat

No, Wes, that shouldn't be the issue. I'm using hostdeal.com, and I believe the servers are either in Canada or Northern US. It may be a browser cache issue, or a network issue, I hope the IT guy can answer that. BTW, I'm originally from Soviet Union (Ukraine), but I live in Massachusetts for the la...
by Stan
Mon Aug 01, 2016 9:03 pm
Forum: Scripting
Topic: MohoScripting.com - unofficial Moho scripting documentation
Replies: 34
Views: 20274

Re: ASLua.com - unofficial Anime Studio scripting documentat

I'm going to add a version display soon, so for any method you'll be able to see something like "Available from version 10.1". I think it will be useful for many of us. My only concern is that I started to keep track of the version when AS was 9.5, so I don't have any records before that. But still,...
by Stan
Mon Mar 28, 2016 1:39 pm
Forum: Scripting
Topic: KeyEvent in layerscript?
Replies: 12
Views: 2791

Re: KeyEvent in layerscript?

That reminded me a little programming trick I learned recently, the easiest way to invert a boolean.
Instead of this:

Code: Select all

if (self.OnOff) then self.OnOff = false
    else self.OnOff = true
end
We can do this:

Code: Select all

self.OnOff = not self.OnOff
by Stan
Tue Mar 22, 2016 11:12 pm
Forum: Scripting
Topic: Actions timeline and normal timeline?
Replies: 4
Views: 1634

Re: Actions timeline and normal timeline?

ActivateAction(""), with an empty string, returns to the main timeline
I think it's ActivateAction(nil), not an empty string.
by Stan
Fri Mar 18, 2016 1:23 am
Forum: General Moho Discussion
Topic: How to become a beta-tester?
Replies: 5
Views: 974

Re: How to become a beta-tester?

Thank you for your response, Dale. I was hoping that someone else have something to add, but I guess that's it. Well, it's been a week now, and looks like I don't have a chance to join you guys. :(
by Stan
Wed Mar 09, 2016 1:15 pm
Forum: Scripting
Topic: lm_freehand in 11.2 - DrawToolSizeCircle method error
Replies: 5
Views: 1633

Re: lm_freehand in 11.2 - DrawToolSizeCircle method error

Removing that file fixed the problem. Thank you Wes!
by Stan
Wed Mar 09, 2016 5:13 am
Forum: Scripting
Topic: lm_freehand in 11.2 - DrawToolSizeCircle method error
Replies: 5
Views: 1633

Re: lm_freehand in 11.2 - DrawToolSizeCircle method error

Hmn, if I disable the Auto-Stroke option, then the error is not thrown. However, if I enable it again, the error comes back.
by Stan
Wed Mar 09, 2016 4:50 am
Forum: General Moho Discussion
Topic: How to become a beta-tester?
Replies: 5
Views: 974

How to become a beta-tester?

We all know that a bunch of the forum members are beta-testers. I would like to become one too. Is there any resource available how the beta-testing program works? How to become a beta-tester? What is expected from a beta-tester, is there some kind of 'standard' bug-tracking mechanism (Bugzilla, JIR...
by Stan
Wed Mar 09, 2016 4:31 am
Forum: Scripting
Topic: How are individual layers from a .PSD defined in ASP11?
Replies: 21
Views: 4793

Re: How are individual layers from a .PSD defined in ASP11?

A question to Mike (or other SmithMicro officials): Is there any other new Lua API features in 11.2?