Page 1 of 1
Animate the pivot point?
Posted: Thu Jun 23, 2022 7:05 pm
by ggoblin
Hi, is it possible to animate the pivot point?
So for example during an animation of a layer you want the centre of rotation in that layer to change? I suppose a workaround might be seperate layers grouped together for common rotation?
Re: Animate the pivot point?
Posted: Thu Jun 23, 2022 7:14 pm
by Greenlaw
Yes, I just use another group. Groups can essentially used like nulls or locaters in a 3D program. I use Groups all over the rig for this purpose...for example, to add secondary squash and stretch after I've animated a walk or run.
Tip: when you use a group as a secondary pivot point, name the layer in a way that you know exactly what it's for. For example, in the above setup I might call the group layer 'bounce' or 'squashAndStretch'.
I keep hoping we get the equivalent of null objects in Moho so we can construct advanced camera rigs. ATM, I have to do this in a 3D animation or a composting program.
Re: Animate the pivot point?
Posted: Thu Jun 23, 2022 7:22 pm
by Greenlaw
You can also use a hierarchy of bones to do this...this is better if you want to keep the control and animation within a single layer.
But TBH, I prefer the Group approach because it's easier to mute the offsets and motions this way when I need to. Since I mainly use it for secondary motions, it makes sense to keep these keys in another layer.
Re: Animate the pivot point?
Posted: Thu Jun 23, 2022 9:18 pm
by Lukas
I scripted a version of the 'Set Origin' tool that allowed the pivot point to be animated. It's dependant on a layerscript on a bone layer and simply attaches the pivot point to a pinbone named "Origin". I can find some time to upload it up if you're interested in a scripted solution. The tool also supported switch layers where the child layers would be able to dictate the Origin position of the switch (or FBF layer).
Re: Animate the pivot point?
Posted: Fri Jun 24, 2022 1:37 am
by ggoblin
Lukas wrote: ↑Thu Jun 23, 2022 9:18 pm
I scripted a version of the 'Set Origin' tool that allowed the pivot point to be animated. It's dependant on a layerscript on a bone layer and simply attaches the pivot point to a pinbone named "Origin". I can find some time to upload it up if you're interested in a scripted solution. The tool also supported switch layers where the child layers would be able to dictate the Origin position of the switch (or FBF layer).
Thank you Lukas, I am intrigued - it sounds like an innovative approach to solving the problem. If you do get a chance I would love to try it out. Thanks.
Re: Animate the pivot point?
Posted: Fri Jun 24, 2022 1:49 am
by ggoblin
Greenlaw wrote: ↑Thu Jun 23, 2022 7:14 pm
Yes, I just use another group. Groups can essentially used like nulls or locaters in a 3D program. I use Groups all over the rig for this purpose...for example, to add secondary squash and stretch after I've animated a walk or run.
Tip: when you use a group as a secondary pivot point, name the layer in a way that you know exactly what it's for. For example, in the above setup I might call the group layer 'bounce' or 'squashAndStretch'.
I keep hoping we get the equivalent of null objects in Moho so we can construct advanced camera rigs. ATM, I have to do this in a 3D animation or a composting program.
Thanks Greenlaw for the prompt response. I just did a quick search of the forum and surprise surprise you apparently asked the same question 16 years ago when you were just one week into Moho

:
http://www.lostmarble.com/forum/viewtopic.php?t=4111
I haven't gone through the replies but I'm guessing that since you are still using groups as a work around, the solutions on offer didn't work out..
Yes it would be great to get null objects in Moho. I'm not sure how you manage to do the camera work in the composition program, what resolution do you export from Moho to allow further movement / cropping during composition?
[
EDITED: Sorry my mistake your post was about moving pivot point for point rotation, not animating it ]
Re: Animate the pivot point?
Posted: Fri Jun 24, 2022 12:04 pm
by Lukas
ggoblin wrote: ↑Fri Jun 24, 2022 1:37 amThank you Lukas, I am intrigued - it sounds like an innovative approach to solving the problem. If you do get a chance I would love to try it out. Thanks.
You can download it from mohoscripts.com, let me know if anything doesn't work:
Put these files:
- LK_Origin_Bone.lua
- LK_Origin_Switch.lua
in this folder:
/YourCustomContentFolder/Shared Resources/Layerscripts/
Re: Animate the pivot point?
Posted: Fri Jun 24, 2022 3:34 pm
by Greenlaw
This sounds very useful Lukas. Will check it out this weekend.
Thanks for sharing your scripts!

Re: Animate the pivot point?
Posted: Sat Jun 25, 2022 1:49 am
by ggoblin
Lukas wrote: ↑Fri Jun 24, 2022 12:04 pm
ggoblin wrote: ↑Fri Jun 24, 2022 1:37 amThank you Lukas, I am intrigued - it sounds like an innovative approach to solving the problem. If you do get a chance I would love to try it out. Thanks.
You can download it from mohoscripts.com, let me know if anything doesn't work:
Put these files:
- LK_Origin_Bone.lua
- LK_Origin_Switch.lua
in this folder:
/YourCustomContentFolder/Shared Resources/Layerscripts/
Brilliant, thank you Lukas, I will check it out!
Re: Animate the pivot point?
Posted: Sun Jul 24, 2022 4:29 am
by WargaNetLife
Lukas wrote: ↑Thu Jun 23, 2022 9:18 pm
I scripted a version of the 'Set Origin' tool that allowed the pivot point to be animated. It's dependant on a layerscript on a bone layer and simply attaches the pivot point to a pinbone named "Origin". I can find some time to upload it up if you're interested in a scripted solution. The tool also supported switch layers where the child layers would be able to dictate the Origin position of the switch (or FBF layer).
Hello Lukas, I have downloaded your script. I have followed the installation method.
But when I try it doesn't work. Even though I already embed "LK_Origin_Bone.lua", I've also changed the name of the bone to "Origin"
Please help
Re: Animate the pivot point?
Posted: Sun Jul 24, 2022 5:56 am
by Lukas
WargaNetLife wrote: ↑Sun Jul 24, 2022 4:29 amHello Lukas, I have downloaded your script. I have followed the installation method.
But when I try it doesn't work. Even though I already embed "LK_Origin_Bone.lua", I've also changed the name of the bone to "Origin"
Please help
Could you specify what version of Moho you are using?
If you've got the layerscript embedded and have a bone called "Origin", the layer origin of the bone layer will (should) snap to that bone. Is that happening?
After setting it up correctly, you can animate the pivot with any bone tool. Or use my LK_SetOrigin tool to animate the Origin. Note that it doesn't work with the original Set Origin tool. In fact, if you've got your bone named "Origin" and layerscript "LK_Origin_Bone" embedded, the original Set Origin tool no longer changes the origin.
Re: Animate the pivot point?
Posted: Sun Jul 24, 2022 6:32 pm
by WargaNetLife
Could you specify what version of Moho you are using?
I'm using Moho version 13.5.5
If you've got the layerscript embedded and have a bone called "Origin", the layer origin of the bone layer will (should) snap to that bone. Is that happening?
It works

Thank you
But, does it work if you don't use the embed method? Like the tools in "other"
Re: Animate the pivot point?
Posted: Sun Jul 24, 2022 6:42 pm
by Greenlaw
Yikes! That post is from 2006. Have I really been here that long???
I do recall getting Moho early on (like version 1.0 or 2.0?) for evaluation at my workplace. At the time I thought Moho had potential but wasn't quite ready to use in production...decided to keep an eye on it.
What's funny is that I didn't really start using Moho till 2013 (ASP 9.5 I think,) and before I knew it, Moho became one of my all time favorite animation programs!

Re: Animate the pivot point?
Posted: Mon Jul 25, 2022 9:29 am
by Lukas
WargaNetLife wrote: ↑Sun Jul 24, 2022 6:32 pmIf you've got the layerscript embedded and have a bone called "Origin", the layer origin of the bone layer will (should) snap to that bone. Is that happening?
It works

Thank you
But, does it work if you don't use the embed method? Like the tools in "other"
No, it absolutely needs the layerscript, a tool is not enough to animate the layer origin until it becomes an official Moho feature.