Search found 2628 matches

by hayasidist
Tue Mar 22, 2016 6:44 pm
Forum: Scripting
Topic: Copying/moving keyframes within the same layer channel?
Replies: 17
Views: 5702

Re: Copying/moving keyframes within the same layer channel?

must say I've never bothered to look before you asked about layer perspective shadow! But .... if, e.g., the channel is point motion then the sub channels are one per point. However, IMO it's mostly irrelevant exactly what the channels / sub channels are if all you're doing is copying. I'm not even ...
by hayasidist
Tue Mar 22, 2016 3:55 pm
Forum: Feature Request Discussions
Topic: toggle lock Z in manipulate layer tool
Replies: 1
Views: 1784

Re: toggle lock Z in manipulate layer tool

it's in both layer and camera translate that the mouse x/y motion is (mathematically correctly I believe) interpreted as having some motion in z if the camera has been panned and/or tilted but IMO it's entirely counterintuitive. Frankly, unless you've moved the workspace view (when you've made a cle...
by hayasidist
Tue Mar 22, 2016 3:43 pm
Forum: How Do I...?
Topic: Help! I've got some funky weirdness going on
Replies: 5
Views: 866

Re: Help! I've got some funky weirdness going on

having used camera pan/tilt is a common cause here I think. if pan or tilt is non-zero, then both camera translate and layer translate move in z. This is also the case if you've changed the workspace view to be rotated - but here you've made a clear choice to look at the scene from other than the &q...
by hayasidist
Tue Mar 22, 2016 3:10 am
Forum: Scripting
Topic: Copying/moving keyframes within the same layer channel?
Replies: 17
Views: 5702

Re: Copying/moving keyframes within the same layer channel?

looping though all layers: a group type layer has a count of child layers - see: http://aslua.com/index.php?show=method&classname=GroupLayer&name=CountLayers&id=637 a recursive loop through that will pick out every layer in a doc. finding and copying keyframes: a layer has a count of the...
by hayasidist
Mon Mar 21, 2016 10:39 pm
Forum: Scripting
Topic: Coordinates of the tip of the bone
Replies: 20
Views: 5055

Re: Coordinates of the tip of the bone

sorry - I can't make it work. It's close but ... I took your routine and hardwired a call to it Print ("Bone", bone:Name(), "Base x, y", bone.fPos.x, bone.fPos.y, "angle/length/scale", bone.fAngle, bone.fLength, bone.fScale) -- confirms correct bone vec = CalculateBoneP...
by hayasidist
Mon Mar 21, 2016 7:30 pm
Forum: Scripting
Topic: Coordinates of the tip of the bone
Replies: 20
Views: 5055

Re: Coordinates of the tip of the bone

That sounded so simple and straightforward - so I gave it a go ... but I'm getting different results from the "longhand" (seems to be right) and your shorter approach (can't get it to give the right answer!?) vec:Set(bone.fPos) bone.fMovedMatrix:Transform(vec) print (vec.x, vec.y) -- not c...
by hayasidist
Mon Mar 21, 2016 6:42 pm
Forum: General Moho Discussion
Topic: Sound Effects?
Replies: 5
Views: 923

Re: Sound Effects?

you'll find sound effect "sharing sites" often have some statement about > how they can be used (e.g. no restrictions // not for things you intend to sell or otherwise monetise // etc etc) and > if / how you attribute the source / creator. for example: http://soundbible.com/royalty-free-so...
by hayasidist
Mon Mar 21, 2016 12:38 pm
Forum: Scripting
Topic: Saving tool button states when switching between tools?
Replies: 3
Views: 1648

Re: Saving tool button states when switching between tools?

error in original post -- updated -- please disregard the post to which you replied
by hayasidist
Mon Mar 21, 2016 12:32 pm
Forum: Scripting
Topic: Saving tool button states when switching between tools?
Replies: 3
Views: 1648

Re: Saving tool button states when switching between tools?

yes. load and save prefs for example function HS_Test_harness:SavePrefs(prefs) prefs:SetBool("HS_Test_harness.trace", self.trace) prefs:SetBool("HS_Test_harness.diagnose", self.diagnose) prefs:SetFloat("HS_Test_harness.n1", self.n1) prefs:SetFloat("HS_Test_harness....
by hayasidist
Sun Mar 20, 2016 9:41 pm
Forum: General Moho Discussion
Topic: Copy-Paste keyframe doesn't work
Replies: 6
Views: 1222

Re: Copy-Paste keyframe doesn't work

... and the key to copy has to be selected. Note that you can select keys that are away from the current frame. And, as synthsin75 says, make sure that the key you're copying is relevant to what you want.
by hayasidist
Sat Mar 19, 2016 3:26 pm
Forum: Scripting
Topic: Coordinates of the tip of the bone
Replies: 20
Views: 5055

Re: Coordinates of the tip of the bone

Duh! glimpse of the blindingly obvious. I think you don't need any transforms other than the fMovedMatrix if it's all in the same layer and the camera doesn't move!! vec0 = layerXY(at 0) + boneXY (at 0) calculate bone tip as in my first post on that subject; then layerNewXY = vec0 - tip == and with ...
by hayasidist
Sat Mar 19, 2016 12:39 am
Forum: How Do I...?
Topic: baffled on masking
Replies: 3
Views: 497

Re: baffled on masking

have you got something like: group: masking: Hide all -- to show what's covered by the mask >> vec 1 the layer to mask: "mask this layer" >> vec 2 the mask: add to mask but keep invisible (if not "keep invisible" then you'll just see the masking shape) or group: masking: Reveal a...
by hayasidist
Sat Mar 19, 2016 12:31 am
Forum: Scripting
Topic: Coordinates of the tip of the bone
Replies: 20
Views: 5055

Re: Coordinates of the tip of the bone

I'm pretty sure that FullTransform includes camera and all the effects of motion etc on all relevant layers. (http://aslua.com/index.php?show=method&classname=MohoLayer&name=GetFullTransform&id=537) to back the camera out I have successfully used: m:Invert() moho.document:GetCameraMatrix...
by hayasidist
Fri Mar 18, 2016 6:01 pm
Forum: Scripting
Topic: Coordinates of the tip of the bone
Replies: 20
Views: 5055

Re: Coordinates of the tip of the bone

I'm trying to use the coordinates of the bone to move the same Bone layer accordingly in opposite direction so that the bone tip appears to stay still ok so you want to translate the bone layer? (and not move the camera?) and it's all in just the x/y plane? a couple of initial observations: > the l...
by hayasidist
Fri Mar 18, 2016 2:52 pm
Forum: Scripting
Topic: Coordinates of the tip of the bone
Replies: 20
Views: 5055

Re: Coordinates of the tip of the bone

this is why I said what I said about frames of reference. where in the hierarchy is the layer in which you want to use the calculated coordinates? e.g. Bone <-- calculate here >vector Group >vector <-- use here? fPos as stored is not changed when the layer / camera transforms change but the place on...