Search found 132 matches

by Stan
Tue Jan 24, 2017 5:12 am
Forum: Scripting
Topic: Change Image Resolution Script
Replies: 10
Views: 2050

Re: Change Image Resolution Script

Wow, it turns out that it's pretty easy to write code for Photoshop. LOL!)) Let me rephrase that as "Wow, Photoshop scripting API is in four languages, and well documented!". I have done some Photoshop scripting before, and I really understand your "wow" here. Unfortunately, many other companies ju...
by Stan
Sat Dec 24, 2016 9:57 pm
Forum: Scripting
Topic: Delayed Layer References
Replies: 17
Views: 4017

Re: Delayed Layer References

Wow, another fantastic and clever script this week! Thank you very much for sharing it. I have been playing with it and have some feedback for it (and, of course, you are free to consider it :)): The Layer Translation channel is used to move the delayed referenced layers, that means you can't modif...
by Stan
Thu Dec 22, 2016 4:12 am
Forum: Scripting
Topic: Delayed Layer References
Replies: 17
Views: 4017

Delayed Layer References

This is a menu/button script. It takes the currently selected layer and creates a number of references with a certain timing offset, so each reference's animation plays with a delay of several frames. The default X and Y offset values are the layer's bounding box dimensions, so if you just click OK ...
by Stan
Wed Dec 07, 2016 4:43 am
Forum: Scripting
Topic: New tool: Adjust Line Width (by Stan)
Replies: 11
Views: 5208

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...
by Stan
Fri Dec 02, 2016 5:11 am
Forum: Scripting
Topic: New tool: Adjust Line Width (by Stan)
Replies: 11
Views: 5208

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.
by Stan
Sat Nov 19, 2016 11:44 pm
Forum: Scripting
Topic: Moho 12.2 Scripting Interfaces
Replies: 1
Views: 1196

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.
by Stan
Mon Nov 14, 2016 2:25 pm
Forum: Scripting
Topic: New tool: Adjust Line Width (by Stan)
Replies: 11
Views: 5208

New tool: Adjust Line Width (by Stan)

http://i592.photobucket.com/albums/tt4/stan-aka-vodka/adjust_line_width_zpsmhjiq5k8.gif 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 vector layers and all types of...
by Stan
Mon Aug 15, 2016 2:47 am
Forum: Scripting
Topic: Create new layercomp from toolscript
Replies: 8
Views: 2503

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: 2503

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: 2128

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: 2128

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: 2128

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: 25253

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: 25253

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,...