Search found 174 matches
- Wed Dec 07, 2016 4:43 am
- Forum: Scripting
- Topic: New tool: Adjust Line Width (by Stan)
- Replies: 11
- Views: 9600
Re: New tool: Adjust Line Width (by Stan)
Hi Stan - great tool (and I love the way you've handled localisation!! отлично!) Thank you! I came up with that approach a couple years ago, and now all my scripts use that localization method. It would not just automatically translate the script's UI to Russian, but also makes it easy to translate...
- Fri Dec 02, 2016 5:11 am
- Forum: Scripting
- Topic: New tool: Adjust Line Width (by Stan)
- Replies: 11
- Views: 9600
Re: New tool: Adjust Line Width (by Stan)
Thank you GaryC! I always forget that module functions are used with a dot, not colon. Good catch!
The URL in the first post is updated.
The URL in the first post is updated.
- Sat Nov 19, 2016 11:44 pm
- Forum: Scripting
- Topic: Moho 12.2 Scripting Interfaces
- Replies: 1
- Views: 1780
Re: Moho 12.2 Scripting Interfaces
Thank you very much Victor! It is so nice that we have you there!
The unofficial documentation is updated to include the new features.
The unofficial documentation is updated to include the new features.
- Mon Nov 14, 2016 2:25 pm
- Forum: Scripting
- Topic: New tool: Adjust Line Width (by Stan)
- Replies: 11
- Views: 9600
New tool: Adjust Line Width (by Stan)
http://mohoscripting.com/uploads/1/adjust_line_width.gif http://mohoscripting.com/uploads/1/adjust_line_width_en.png The tool allows to adjust the line width by adding/subtracting a value or by multiplying/dividing by a provided coefficient. It works for the entire selected layer(s), and supports v...
- Mon Nov 07, 2016 3:12 am
- Forum: Scripting
- Topic: MohoScripting.com - unofficial Moho scripting documentation
- Replies: 55
- Views: 88064
- Mon Aug 15, 2016 2:47 am
- Forum: Scripting
- Topic: Create new layercomp from toolscript
- Replies: 8
- Views: 3394
Re: Create new layercomp from toolscript
Great, thank you Wes!
- Mon Aug 15, 2016 1:24 am
- Forum: Scripting
- Topic: Create new layercomp from toolscript
- Replies: 8
- Views: 3394
Re: Create new layercomp from toolscript
Hi Wes,
Was the bug resolved in Moho 12?
Was the bug resolved in Moho 12?
- Fri Aug 05, 2016 8:57 pm
- Forum: Scripting
- Topic: seach through all child layers?
- Replies: 8
- Views: 5426
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...
- Fri Aug 05, 2016 4:41 pm
- Forum: Scripting
- Topic: seach through all child layers?
- Replies: 8
- Views: 5426
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
- Fri Aug 05, 2016 3:58 pm
- Forum: Scripting
- Topic: seach through all child layers?
- Replies: 8
- Views: 5426
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...
- Thu Aug 04, 2016 11:18 pm
- Forum: Scripting
- Topic: MohoScripting.com - unofficial Moho scripting documentation
- Replies: 55
- Views: 88064
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...
- Mon Aug 01, 2016 9:03 pm
- Forum: Scripting
- Topic: MohoScripting.com - unofficial Moho scripting documentation
- Replies: 55
- Views: 88064
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. ...
- Mon Mar 28, 2016 1:39 pm
- Forum: Scripting
- Topic: KeyEvent in layerscript?
- Replies: 12
- Views: 5161
Re: KeyEvent in layerscript?
That reminded me a little programming trick I learned recently, the easiest way to invert a boolean.
Instead of this:
We can do this:
Instead of this:
Code: Select all
if (self.OnOff) then self.OnOff = false
else self.OnOff = true
end
Code: Select all
self.OnOff = not self.OnOff
- Tue Mar 22, 2016 11:12 pm
- Forum: Scripting
- Topic: Actions timeline and normal timeline?
- Replies: 4
- Views: 2201
Re: Actions timeline and normal timeline?
I think it's ActivateAction(nil), not an empty string.ActivateAction(""), with an empty string, returns to the main timeline
- Fri Mar 18, 2016 1:23 am
- Forum: General Moho Discussion
- Topic: How to become a beta-tester?
- Replies: 5
- Views: 1431
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.