- Joined
- Oct 9, 2015
- Messages
- 721
I wanted to ask how can I for example change an sequence that uses Foot_Left to use Foot_Right instead, I`m using mdlvs editor
1. Open the model in Matrix Eater.@Hermit You can? Is there like a button for it?
Strange, it works perfectly for me. Are you sure you're using the latest version?@Hermit , just flipping the model caused some animations to glitch.
You can't only flip two animations. This process flips the entire model and all of its animations.I wanted to flip only a few animations (only 2 I think)
I just tested it with that model and you're right, some animations become glitchy after mirroring. Sadly, I don't think there's a way to fix it. You could manually edit all vertices, nodes, translations, rotations, etc. However, there are thousands of them and that would take like a few months (ain’t nobody got time for that), so I think you should probably give up.It didn't worked either. I'm using the Villager 255 animations and I needed to mirror the Defend animations so the model uses the shield on left hand instead of right.
It looks like this model has perfectly symmetric bones, so it might not be that hard after all.I just wanted to change two animations, I would need to change them all to do so ?
What do you mean? Just to clarify - Most animations work after flipping the model, but some look glitchy, like their rotations weren't mirrored correctly.It will work if you manually connect the bones in the import menu. For example you need to import bone hand r to bone hand l.
Nevermind, I meant something else. When you want to add additional animation from the same model but with flipped animations/bones.It looks like this model has perfectly symmetric bones, so it might no be that hard after all.
You'll need:
- Magos' Model Editor
- A lot of patience
- Preferably some basic knowledge about animations
Make a copy of the model before doing anything.
Open the model in Model Editor.
Go to Windows -> Sequence Manager.
Find the animation you want to flip and open it.
You'll see two important values there. The values are in the ''Interval'', named ''From'' and ''To''. From is the starting (key)frame and To is the end frame of the entire animation.
Now open Notepad and paste them (or write them down somewhere), like this:
From: 12345
To: 54321
Close the Sequence Manager.
Go to Windows -> Node Manager.
Individual nodes (there's only one of them) are nodes like: Bone_Root, Bone_Pelvis, Bone_Chest, Bone_Head...
For every individual node (bone or helper) I mentioned above:
Right click the node and select "Edit Node".
Click the "Translation" button.
Scroll down until you find the starting frame of the animation you want to flip.
It will look like this (but with different numbers):
12345: { 3.8926, -1.27079, -20.5004 }
Now you need to reverse the sign of the second number in brackets. If the number is positive, add - in front of it. If the number is negative, delete the minus. If it's 0, don't do anything.
So in my example above, -1.27079 should be changed to 1.27079.
If "Interpolation Type" is set to "Bezier" or "Hermite", next two lines/rows are indented and stard with InTan or OutTan, so you should do the same thing (reverse the sign of the second number in brackets).
Do the same thing in every row that starts with a frame number that is contained in the interval of the animation (between 12345 and 54321).
Do this until you're done with the row that starts with the last frame of that animation (e.g. 54321) and it's InTan and OutTan (if there are any).
When you're done, click OK.
Now click on "Rotation" (it's below "Translation").
Do the same thing here, but instead of reversing the sign of the second number, reverse the sign of every first and third number in { } in every row that starts with a frame that is contained in the interval of the animation.
When you're done click OK (two times).
Some nodes have a matching counterpart on the opposite side that usually has the same name, but with a different tag (L-left, R-right):
Bone_Leg1_L = Bone_Leg1_R
Bone_Leg2_L = Bone_Leg2_R
Bone_Foot_L = Bone_Foot_R
Bone_Arm1_L = Bone_Arm1_R
Bone_Arm2_L = Bone_Arm2_R
Bone_Hand_L = Bone_Hand_R
It's good to have another unedited copy of the same model opened simultaneously (in a new Model Editor Window), when you're editing nodes with matching counterparts.
Right click the node and select "Edit Node".
Open "Translation" and scroll down until you find the starting frame of the animation you want to flip.
Replace all rows (that start with a frame number that is contained in the interval of the animation) with matching rows from the node's counterpart from the unedited copy of the same model. E.g. if you have opened "Bone_Arm1_R", you need to replace all of it's translations (and rotations) that happen during that animation interval with translations (and rotations) of "Bone_Arm1_L".
After replacing them you also need to reverse the signs, just like with individual nodes:
-for translations: reverse the sign of the second number inside { } in every row that starts with a frame that is contained in the interval of the animation.
-for rotations: reverse the sign of the first and third number inside { } in every row that starts with a frame that is contained in the interval of the animation.
What do you mean? Just to clarify - Most animations work after flipping the model, but some look glitchy, like their rotations weren't mirrored correctly.
You can duplicate the animation with Matrix Eater before flipping it. First, make a copy of the model. Then, go to File -> Simple Import and import that animation from the copied version.I wanted to ask how can I add a the flipped animation as a new animation, so I have the original and the flipped one...
That's odd. You can try to do it with notepad. You need to use MDLX Converter to convert the model from .mdx to .mdl, so it can be opened with notepad.EDIT: Somehow the Bone_Root numbers can't be negatived, I can't add the (-) sign on it.
Yes, "Bone_Root" nodes are usually helpers, not bones (although they are called bones). Unlike bones, helpers can't have any vertices attached to them, but they can move, rotate and scale other bones (and helpers) that are attached to them.It's an node with an ! sign on it instead of a blue bone picture.
You can add and delete translations, just make sure you don't miss the "InTan" and "OutTan". So, add 360000 between 350000 and 370000.How can I add a TRANSLATION to an bone that don't have it by default ?
For example: Bone_Arm1_L has the translation corresponding to 360000 , but Bone_Arm1_R only have 350000 then jumps to 370000.
It's good to hear that you're learning and making progress.I have changed two animations so far (Stand Defend and Walk Defend) and I'm working on the third (Attack Defend)
Not really. I've just been editing models for a few years and learned some things. If someone knows a lot about animations, it's BlinkBoy.@Hermit you looks like someone who knows a lot about animations
Sorry, I'm really busy, so I don't take requests.do you by any means takes requests?
In this video, all leg motion from Attack animation was imported into Attack upgrade animation while the rest of the animation (motion of arms, chest, head, etc.) remained unchanged. That part comes after 8:15, but I suggest that you watch the whole video. By the way, a walking attack will surely require a lot of triggering to work properly.@Hermit , do you know how can I merge two animations? for example I want the lower body (legs) animation from the "walk" animation to combine with the upper body (chest, arms) animation from Attack Morph 4 , how can I merge the lower body party of an animation with the upper body from another animation ? To be clear, I want to have an walking attack animation.