Search found 107 matches

by lehtiniemi
Fri Mar 18, 2016 3:06 am
Forum: Scripting
Topic: Getting position for bone that's moved by other bones
Replies: 7
Views: 2415

Re: Getting position for bone that's moved by other bones

Off the top of my head... bone.fPos.value and bone.fPos.value.x for specific axis. Hmm, but how can I specify the frame where I want the bone position at? fAnimPos:GetValue(frameNumber) returns the bone position at the specified frame number, but for some reason it doesn't return the bone position ...
by lehtiniemi
Fri Mar 18, 2016 2:56 am
Forum: Scripting
Topic: Getting position for bone that's moved by other bones
Replies: 7
Views: 2415

Getting position for bone that's moved by other bones

How can I get coordinates for a bone that's not animated but is moved by other bones? fAnimPos doesn't seem to return anything. I tried to use bone.fAnimPos:GetValue(frameNumber) to get coordinates for a bone that's not animated by itself but is moved by the rest of the skeleton. It returns no movem...
by lehtiniemi
Fri Mar 18, 2016 2:45 am
Forum: Scripting
Topic: Coordinates of the tip of the bone
Replies: 20
Views: 5024

Re: Coordinates of the tip of the bone

synthsin75 wrote:I don't use Mac, but I seem to remember reading something about right-clicking the program and selecting show package or something.
Got it! Thanks! :)
by lehtiniemi
Fri Mar 18, 2016 2:34 am
Forum: Scripting
Topic: Coordinates of the tip of the bone
Replies: 20
Views: 5024

Re: Coordinates of the tip of the bone

The AS11 add bone tool snaps to the tip of a nearby bone, so you might look there. Ah, of course! Sorry for this newbie question, but where can I access the built-in scripts on mac? I tried in ~/Library folders and Documents/Anime Studio Pro/ -> but couldn't find them... and thank you so much for y...
by lehtiniemi
Fri Mar 18, 2016 2:13 am
Forum: Scripting
Topic: Coordinates of the tip of the bone
Replies: 20
Views: 5024

Coordinates of the tip of the bone

Any ideas how to calculate the coordinates of the tip of the bone? I'm really bad at vectors...
by lehtiniemi
Fri Mar 18, 2016 2:06 am
Forum: Scripting
Topic: SelectedBoneID() return value?
Replies: 5
Views: 2135

Re: SelectedBoneID() return value?

synthsin75 wrote:moho:CountSelectedBones(bool) would also work just to find if any are selected, but I'm not sure what the scope of that is. Maybe layer and parent layer?
Thanks again. I don't know how I missed this, I was looking for it earlier. I'll go with this one!
by lehtiniemi
Fri Mar 18, 2016 2:01 am
Forum: Scripting
Topic: SelectedBoneID() return value?
Replies: 5
Views: 2135

Re: SelectedBoneID() return value?

This returns the first (lowest) selected bone ID. Looking at the select and transform bone tools, it seems to be a quick way to get bone names and settings to display in tool option texts, where only one can be shown, even if more are selected. It's also a quick way to check that any bones are sele...
by lehtiniemi
Fri Mar 18, 2016 1:30 am
Forum: Scripting
Topic: SelectedBoneID() return value?
Replies: 5
Views: 2135

SelectedBoneID() return value?

Documentation says SelectedBoneID() returns the ID of the selected bone. What does this mean? Isn't it possible to select multiple bones? Is the return value some array?
by lehtiniemi
Tue Mar 15, 2016 6:55 pm
Forum: Scripting
Topic: Two scripts for you: "Maintain pose" and "Toggle visibility"
Replies: 24
Views: 7997

Re: Two scripts for you: "Maintain pose" and "Toggle visibil

I don't remember off hand which of these is the right syntax. Channel:GetKeyWhen(Channel:GetClosestKeyID(frame-1)) or Channel:GetKeyWhen(Channel:GetClosestKeyID(frame)-1) The second one would definitely get the next earlier keyframe, and +1 would get the next latter keyframe. I tried this and it do...
by lehtiniemi
Mon Mar 07, 2016 1:16 am
Forum: Tips & Techniques
Topic: Workflow for working with Blend Morphs?
Replies: 0
Views: 1832

Workflow for working with Blend Morphs?

Any tips on how to work with blend morphs on timeline? The interface for adding them is clear and functional, but once you add a blend morph, it becomes multiple keyframes all over the layers within the character (for example, facial expression that affects eyes, wringkles, eye lids and eye brows). ...
by lehtiniemi
Mon Mar 07, 2016 12:15 am
Forum: Scripting
Topic: Way to detect the active tool?
Replies: 5
Views: 2699

Re: Way to detect the active tool?

Thanks! I guess I'll just split the script into two in that case, until I can find some way (or support for such detection arises in future versions)
by lehtiniemi
Sun Mar 06, 2016 9:22 pm
Forum: Scripting
Topic: Two scripts for you: "Maintain pose" and "Toggle visibility"
Replies: 24
Views: 7997

Re: Two scripts for you: "Maintain pose" and "Toggle visibil

Ah thanks for the clarification. So KeyID is something different, that explains it. I'll give it another go!
by lehtiniemi
Sun Mar 06, 2016 9:04 pm
Forum: Scripting
Topic: Way to detect the active tool?
Replies: 5
Views: 2699

Way to detect the active tool?

Is there a way to detect the active tool? I'm trying to find a way to detect which part of the layer the user wants to manipulate: bones or the layer translation. Both can coexist and I want to find a way to figure out automatically which one the user wants to animate. I was thinking that if the use...
by lehtiniemi
Sun Mar 06, 2016 8:54 pm
Forum: Scripting
Topic: Two scripts for you: "Maintain pose" and "Toggle visibility"
Replies: 24
Views: 7997

Re: Two scripts for you: "Maintain pose" and "Toggle visibil

But if I give it frame-1, doesn't it find the current frame, which is frame+1 (=current frame) which is only one frame away? Or can I give it a searching "direction" as in backwards from frame-1?