Search found 118 matches

by Breinmeester
Wed Apr 11, 2012 12:58 pm
Forum: Scripting
Topic: Multi layer Magnet Script?
Replies: 48
Views: 19690

You're right. It doesn't pick up bone deformations. The search continues! :D
by Breinmeester
Tue Apr 10, 2012 8:36 pm
Forum: Scripting
Topic: Multi layer Magnet Script?
Replies: 48
Views: 19690

This worked for me: for i = 0, mesh:CountPoints() - 1 do -- do for every point in the layer's mesh the following: local pt = mesh:Point(i) -- store a point of the mesh in 'pt' local v = pt.fPos -- set 'v' as the screen position of the point in 'pt' local pvec = LM.Vector2:new_local() -- create a new...
by Breinmeester
Tue Apr 10, 2012 12:10 pm
Forum: Scripting
Topic: Multi layer Magnet Script?
Replies: 48
Views: 19690

I got it to work. I hope to spend some time on it tonight and will be back here tomorrow.
by Breinmeester
Mon Apr 09, 2012 3:20 pm
Forum: Scripting
Topic: Multi layer Magnet Script?
Replies: 48
Views: 19690

Ok, Ive been looking around and found something about the FullTransform matrix. So this is what i wrote: local transformMatrix = LM.Matrix:new_local() layer:GetFullTransform(moho.frame, transformMatrix, moho.document) transformMatrix:Transform(mouseVec) But it doesn't work. As far as I figured, I ne...
by Breinmeester
Sun Apr 08, 2012 9:58 am
Forum: Scripting
Topic: Multi layer Magnet Script?
Replies: 48
Views: 19690

Ok, Ive picked this up. It had some challenges for me, but I got it to work and even added some useful extras to the magnet tool. But Ive stumbled upon a problem: The tool works depending on its location on the group layer. If the points of a child layer have been transformed by something (layer tra...
by Breinmeester
Wed Mar 21, 2012 2:20 pm
Forum: Scripting
Topic: ASPWrap (Content Paradise Product)
Replies: 5
Views: 3968

Hey Rudiger! Would it be possible with this product to batch render a number of projects and have them export different layers separately more than once with different project settings into different appointed folders? If so, this product would be well worth the purchase price. Could you give an exa...
by Breinmeester
Mon Mar 19, 2012 10:25 am
Forum: Scripting
Topic: Delete keys on mesh curves
Replies: 1
Views: 980

I wish I could just do:

Code: Select all

point.fCurve:DeleteKey(moho.frame)
Anyone who knows?
by Breinmeester
Sun Mar 18, 2012 2:26 pm
Forum: Scripting
Topic: Delete keys on mesh curves
Replies: 1
Views: 980

Delete keys on mesh curves

Hi all, Im working on something where I need to delete keys on a few channels of a Vector layer: mesh = moho:LayerAsVector(targetlayer):Mesh() for i = 0, mesh:CountPoints()-1 do point = mesh:Point(i) point.fAnimPos:DeleteKey(thisframe) point.fWidth:DeleteKey(thisframe) end My question is: how do I d...
by Breinmeester
Tue Mar 13, 2012 4:33 pm
Forum: Scripting
Topic: Switch Layer Mimic Script
Replies: 27
Views: 8744

:shock: This is exactly what i was looking for in this thread:

viewtopic.php?t=19572

Yet it was met with scepsism. Ah well, never mind... :roll: :wink:
by Breinmeester
Tue Mar 13, 2012 11:20 am
Forum: Tips & Techniques
Topic: How to render shape-fills and lines seperately?
Replies: 4
Views: 1355

Hey Lukak,

In version 8 there is a new feature in the 'Project Settings' called 'Render Style'. Set 'Fill Style' to 'Background' (and leave the rest at 'Normal') to render only lines in a tiff or png sequence. To render fills only set 'Stroke Style' to 'None' (and leave the rest at 'Normal').
by Breinmeester
Tue Feb 28, 2012 4:37 pm
Forum: Scripting
Topic: Bone morph dials script
Replies: 424
Views: 291315

Rudiger wrote:

Code: Select all

            -- Up is 0, right is 1.0, clockwise is positive
            weights[name] = (-bone.fAnimAngle:GetValue(frame)+math.pi/2) / (math.pi/2)
Where did you even find that a bone's angle is in 2*pi counterclockwise? Trial and error?

This scripting for Moho needs a manual!
by Breinmeester
Sun Feb 19, 2012 3:08 pm
Forum: Scripting
Topic: Layer metadata for scripting
Replies: 3
Views: 3765

This is really cool! Thanks, Mike!
Moho keeps getting better... 8)
by Breinmeester
Fri Feb 03, 2012 8:14 pm
Forum: Scripting
Topic: Trying to Make Work 'BlendActions()' Function, with any Luck
Replies: 21
Views: 8274

Just a note: the BlendActions command has become a lot faster since ASpro 8, which makes my script now a breeze to work with. My thanks go out to the Lost Marble team.
by Breinmeester
Wed Feb 01, 2012 8:56 am
Forum: Scripting
Topic: HeyVern's scripts and tools - (focus on bones)
Replies: 153
Views: 174634

Rudiger did a script that loads and saves animation into actions so its ready to be pasted at any point in the timeline and for multiple times.
by Breinmeester
Fri Jan 06, 2012 4:29 pm
Forum: Scripting
Topic: Multi layer Magnet Script?
Replies: 48
Views: 19690

Has someone tried this yet? If so, please share.
I have little time, but if no-one is working on it I could try it myself.