Search found 477 matches

by Lukas
Wed Mar 25, 2020 9:35 am
Forum: General Moho Discussion
Topic: Timeline consolidation
Replies: 9
Views: 271

Re: Timeline consolidation

I wouldn't go with actions myself. You can't add a new channel in an action and expect it to update in the main timeline, so you can't really trust that system in my opinion. Check out Rudiger's Nudge Keys Toolset: http://www.lostmarble.com/forum/viewtopic.php?t=13935 It won't work with channels int...
by Lukas
Tue Mar 17, 2020 8:01 am
Forum: General Moho Discussion
Topic: FBX Export From Moho 13 Pro to Unity - what exactly won't work?
Replies: 3
Views: 221

Re: FBX Export From Moho 13 Pro to Unity - what exactly won't work?

I've played around with it. And honestly, I wouldn't recommend it. I use Moho a whole lot and recommend it for puppet animation for video, but for game engines there are better solutions. In Unity you're better off using Unity's own tools and custom Monobehaviours for your own needs. But it's possib...
by Lukas
Tue Mar 03, 2020 8:44 am
Forum: Scripting
Topic: Function to sync channel to original?
Replies: 2
Views: 627

Re: Function to sync channel to original?

Thanks Wes! :)

That's too bad, this code runs about every single mouse-click while animating and I really don't want those extra channel when I'm not using them... :(

I'll try to find a workaround and am gonna try and approach this entire thing differently...
by Lukas
Mon Mar 02, 2020 10:57 pm
Forum: Scripting
Topic: Function to sync channel to original?
Replies: 2
Views: 627

Function to sync channel to original?

Is there a function to sync a channel back to its original state? Or is there some other way? I need to wipe all keys of a certain channel, but it keeps breaking the reference (the referenced channel itself also has 0 keys on the timeline) Right now when I call: channel:Clear() or: channel:ClearAfte...
by Lukas
Wed Feb 26, 2020 7:52 pm
Forum: Scripting
Topic: Group layer Depth Sort: Sort layers by Y-Position
Replies: 18
Views: 1112

Re: Group layer Depth Sort: Sort layers by Y-Position

Thanks for the very thorough answer. I'm afraid I've been down all those paths as well :D The Reveal order way is pretty solid, but I still feel it's one of the many things that make Moho rigs overly complex for what they can do in the end. Having multiple layers of the same thing is usually the kin...
by Lukas
Wed Feb 26, 2020 4:31 pm
Forum: Scripting
Topic: Group layer Depth Sort: Sort layers by Y-Position
Replies: 18
Views: 1112

Re: Group layer Depth Sort: Sort layers by Y-Position

Greenlaw, I'm curious about your current solution. Do you use layer-order keys controlled by smartbones? Or small z-translation values? Or some tricks with a lot of duplicate arms etc? Or some other magic trickery? I've tried so many ways in the past and always thought it was a dirty over-complex wa...
by Lukas
Wed Feb 26, 2020 3:22 pm
Forum: Scripting
Topic: Group layer Depth Sort: Sort layers by Y-Position
Replies: 18
Views: 1112

Re: Group layer Depth Sort: Sort layers by Y-Position

https://www.lukaskrepel.nl/temp/moho/LK_SortByZScale.gif Definitely onto something here! This rig has 0 layer-order-keys and is completely 2D (even if you orbit the canvas, the Z axis is not used except for scale, which doesn't do anything for 2D planes facing the camera). Smartbones now basically ...
by Lukas
Wed Feb 26, 2020 9:57 am
Forum: Scripting
Topic: Group layer Depth Sort: Sort layers by Y-Position
Replies: 18
Views: 1112

Re: Group layer Depth Sort: Sort layers by Y-Position

Thanks guys. Victor, I'm sure that auto-scale is possible, but in this case I'm sticking to doing it manually, because the design works better that way. Maybe someone wants to give it a try? I might try in the future, it's a good idea. At first I thought you meant sorting by scale, which gave me an ...
by Lukas
Tue Feb 25, 2020 12:11 pm
Forum: Scripting
Topic: Group layer Depth Sort: Sort layers by Y-Position
Replies: 18
Views: 1112

Re: Request: Group layer Depth Sort: Sort layers by Y-Position

Actually, seeing it work does make it even more awesome (kudos Lukas) but I still can't figure out what was the problem with depth sort initially? How comes this Y sort is a better solution than Z one? Care to add a line or two? Thanks :) It's not *better* per se, but in this style it's a great sol...
by Lukas
Tue Feb 25, 2020 10:11 am
Forum: Scripting
Topic: Group layer Depth Sort: Sort layers by Y-Position
Replies: 18
Views: 1112

Re: Request: Group layer Depth Sort: Sort layers by Y-Position

Thanks Hayasidist :) I'm stubbornly trying a layerscript solution though... Not sure if I'll stick to it, but it works for now. I think having to do it by hand will create messy Moho scenes. It actually works pretty good: https://www.lukaskrepel.nl/temp/moho/LK_SortByYPos.gif LK_SortByYPos.lua -- **...
by Lukas
Mon Feb 24, 2020 10:45 am
Forum: Scripting
Topic: Group layer Depth Sort: Sort layers by Y-Position
Replies: 18
Views: 1112

Group layer Depth Sort: Sort layers by Y-Position

Not sure if this is possible, but I'd love to be able to set a group to 'Sort layers layers by Y-Position' instead of by depth. So if a layer is above another layer in height, it would be rendered behind the other layer. And if a layer is below another layer, it would be rendered on top of the other...
by Lukas
Sat Nov 23, 2019 3:36 pm
Forum: Share Your Work
Topic: Six steps to change the Constitution
Replies: 1
Views: 676

Re: Six steps to change the Constitution

Love the dog!
by Lukas
Thu Nov 21, 2019 2:45 pm
Forum: Tips & Techniques
Topic: Unimited Animated Layer Order with Smartbones?
Replies: 8
Views: 1612

Re: Unimited Animated Layer Order with Smartbones?

In some projects, I have created a specific 'layer order' smart bone. Then I rotated that bone with step keys every time I wanted to change the order. To work properly, no other smart bone modifies the layer order. PS: This layer order smart bone is normally around 50 frames long. I just put all th...
by Lukas
Wed Nov 20, 2019 3:10 pm
Forum: General Moho Discussion
Topic: Script: I want to connect child bone to tip of parent bone (not tail)
Replies: 4
Views: 686

Re: Script: I want to connect child bone to tip of parent bone (not tail)

This might get you started: local bone = skel:Bone(parent_bone_id) local boneBase = LM.Vector2:new_local() local boneTip = LM.Vector2:new_local() boneBase:Set(0,0) bone.fMovedMatrix:Transform(boneBase) if not (bone:IsZeroLength()) then boneTip:Set(bone.fLength, 0) bone.fMovedMatrix:Transform(boneTip...