Search found 38 matches

by GaryC
Thu Aug 04, 2016 6:40 pm
Forum: Scripting
Topic: MohoScripting.com - unofficial Moho scripting documentation
Replies: 55
Views: 82509

Re: ASLua.com - unofficial Anime Studio scripting documentat

Strange, it works when I use my phone connection. Might need to ask our IT guy why it might not work in the office.
by GaryC
Thu Aug 04, 2016 10:45 am
Forum: Scripting
Topic: MohoScripting.com - unofficial Moho scripting documentation
Replies: 55
Views: 82509

Re: ASLua.com - unofficial Anime Studio scripting documentat

Is the site working for anyone else? For the last while any time I try going to ASLua.com I'm getting "The site can't be reached" because it's timed out.
by GaryC
Tue Mar 15, 2016 4:20 pm
Forum: Scripting
Topic: Set Key on Main Timeline but not Action timelines
Replies: 8
Views: 2849

Re: Set Key on Main Timeline but not Action timelines

Strange, I tried that method but it's just constantly returning empty strings. I've just decided for now to detach the script if I need to edit smart actions, but to otherwise not open up the smart actions. This way the script wont do anything to it anyway. That's the point. If moho.layer:CurrentAc...
by GaryC
Tue Mar 15, 2016 3:59 pm
Forum: Scripting
Topic: Set Key on Main Timeline but not Action timelines
Replies: 8
Views: 2849

Re: Set Key on Main Timeline but not Action timelines

Strange, I tried that method but it's just constantly returning empty strings. I've just decided for now to detach the script if I need to edit smart actions, but to otherwise not open up the smart actions. This way the script wont do anything to it anyway.
by GaryC
Fri Mar 11, 2016 12:09 pm
Forum: Scripting
Topic: Set Key on Main Timeline but not Action timelines
Replies: 8
Views: 2849

Re: Set Key on Main Timeline but not Action timelines

On further inspection I have finally cracked it. Re-thinking what you said synthsin, it is correct. It seemed like the keys were being added to the main and action timelines at the same time, but it was actually only causing a problem when I would open the action's timeline. I can embed the script, ...
by GaryC
Fri Mar 11, 2016 11:46 am
Forum: Scripting
Topic: Set Key on Main Timeline but not Action timelines
Replies: 8
Views: 2849

Re: Set Key on Main Timeline but not Action timelines

It's a layerscript, so it's embedded in a switch layer. Not run from any actions. After digging deeper, it's oddly specific. It doesn't always happen and seems to be tied specifically to being placed inside bone layers. This is the structure that definitely triggers it: Bone Layer > Switch Layer (wi...
by GaryC
Thu Mar 10, 2016 1:19 pm
Forum: Scripting
Topic: Set Key on Main Timeline but not Action timelines
Replies: 8
Views: 2849

Set Key on Main Timeline but not Action timelines

I have an old layerscript to embed in switch layers that I've updated and tweaked a bit to add more functionality to, but I've come across a problem with it adding keys to action timelines. The gist of the script is that it will find pairs of folders and take a key from the master layer and apply it...
by GaryC
Wed Sep 23, 2015 2:33 pm
Forum: Scripting
Topic: Getting all the styles in a document?
Replies: 1
Views: 1524

Re: Getting all the styles in a document?

I was looking into this and unfortunately didn't get anywhere, but to shed some light on some confusing behaviour I did figure one thing out. Styles are now using UUIDs instead of just integers. So instead of styles being 1, 2, 3, 4, 5 etc., they're 32 character hexadecimal strings. So you'd need to...
by GaryC
Wed Jun 03, 2015 1:54 pm
Forum: Scripting
Topic: My Nudge Keys Toolset... Finally!!!!
Replies: 219
Views: 240840

Re: My Nudge Keys Toolset... Finally!!!!

No problem, glad it worked. Though it turns out this was actually the same as this post, though I guess I didn't need the DrawMe() call.
by GaryC
Wed Jun 03, 2015 12:08 pm
Forum: Scripting
Topic: How does Anime Studio handle image compression?
Replies: 0
Views: 1558

How does Anime Studio handle image compression?

I've been playing around with the import image sequence script and making a script that would build ASP files prefilled with image sequences. The idea is that we have people working in another program, rendering out a set of frames for each layer of the scene and then they get imported into ASP for ...
by GaryC
Tue Jun 02, 2015 3:35 pm
Forum: Scripting
Topic: My Nudge Keys Toolset... Finally!!!!
Replies: 219
Views: 240840

Re: My Nudge Keys Toolset... Finally!!!!

I was looking over this and I found a simple fix to make the menu appear when you click the tool. I added this in right before the DrawMe function: function RT_KeyTool:OnMouseDown(moho, mouseEvent) mouseEvent.view:DrawMe() end As far as I can tell, it works perfectly fine with just that added. If it...
by GaryC
Tue May 19, 2015 5:13 pm
Forum: Scripting
Topic: Getting Bezier Handle Values from Keys
Replies: 4
Views: 2151

Re: Getting Bezier Handle Values from Keys

Ah, you were right! That has given me access to the InterpSetting object. Now I just need to make sense of the BezierInAngle parameter and return value. Thanks!
by GaryC
Mon May 18, 2015 10:15 am
Forum: Scripting
Topic: Getting Bezier Handle Values from Keys
Replies: 4
Views: 2151

Re: Getting Bezier Handle Values from Keys

Aha, I did indeed find it class InterpSetting { ... real BezierOutAngle(int32 component); void SetBezierOutAngle(int32 component, real angle); real BezierInAngle(int32 component); void SetBezierInAngle(int32 component, real angle); real BezierOutPercentage(int32 component); void SetBezierOutPercenta...
by GaryC
Fri May 15, 2015 12:30 pm
Forum: Scripting
Topic: Getting Bezier Handle Values from Keys
Replies: 4
Views: 2151

Getting Bezier Handle Values from Keys

We have a script for nudging keys that was originally written by Rudiger (rt_). It was written before Anime Studio 10, and when it's used on keys with bezier curves it doesn't retain the position of the bezier handles, they revert to defaults. I assume this is because the command used for getting be...
by GaryC
Wed Feb 25, 2015 10:18 am
Forum: Scripting
Topic: Script Issue: Placing Keys Offset from the Timeline Marker
Replies: 4
Views: 1588

Re: Script Issue: Placing Keys Offset from the Timeline Mark

Any function can be called from any script, so it is crucial to have unique function names. And there's no telling which of duplicate function names may be activated when called. Glad you got it sorted. That makes sense. I was especially caught off guard by this because I had removed the duplicate ...