Skip to content
Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Download Free Animation Software – Let's Learn How to Do Everything!

  • Step-by-Step MMD instructions
  • DOWNLOADS
  • Troubleshoot, Fix MMD
  • Site Contents
  • Reggie Replies Q&A
  • Homework!
  • What IS MMD?
    • Download MikuMikuDance Newest Latest Version of MMD
  • “HOW TO”
    • Raycast RAY-MMD Effect Tutorials
  • BONUS PAGES
    • Why convert PMD models to PMX?
  • HALL of CHAMPIONS
  • Tutorial Categories
  • About
    • Privacy Policy
  • Toggle search form
  • Subset-Extracts make for some interesting effects!
    Using the Subset-Extract in MikuMikuEffects. ARIZONA
  • Proper Computer DPI Scaling Setup Stops Text Cut Off in PMXE Mae Blythe
  • Dummy Bones allow you to customize your accessory manipulations!
    Using The Dummy Bone for MikuMikuDance Accessory Manipulation/Adjust
  • Hitogata Brings Face Tracking to MMD Animation Resource
  • MMD Fill Lights Part 2 – (Ray-MMD) MMD Tutorials
  • How To Add Depth and Emotion in an MMD Picture Advanced Shader Technique
  • The 966_ Otogibanashi Toon effect recolors your models!
    966_ Otogibanashi Toon “Fairy Tale” shader effect recolors your models 966_ Otogibanashi Toon
  • MikuMikuDance “Keep the Faith-MMD” MMD Tutorials

Using the OP function in an animation

Posted on December 26, 2018March 2, 2019 By Trackdancer 2 Comments on Using the OP function in an animation

I wrote a tutorial awhile back on using the OP function to allow MMD character models to easily hold objects. However, it only briefly touched upon how to use this function in an animated sequence. This has caused some confusion as the process is not intuitive. This article will show you exactly what needs to be done.

THE PLAN

Always have a plan when embarking upon any MMD project. For our purposes, I am going to have my model pick up an object on the ground and place it on a table. Now, you may think “Ho Hum” as you and I can easily do something like this without a second thought, but it is quite a bit more challenging to do this in MMD.

This will be a simple animation but it still needs to be planned out and the thinking is as follows in our example (and this plan will also be indicative of what our key frames will need to be).

  1. The sequence begins with the character model standing next to a table looking down at a vase on the floor.
  2. She then kneels down using “safe” lifting techniques to pick up the vase. It is at this point also that the OP function is first accessed to associate the character and the vase.
  3. She then lifts up the vase in preparation to place that item on the table.
  4. She places the vase on the table and the OP function is accessed a second time to break the association.
  5. Finally, with the vase on the table, the character model can stand back and watch the results of her handiwork.

MODEL ASSETS

For my project I will be using the following items in case you want to duplicate my steps. Please note that you do not have to use the same models and some of them are not available for download anyway as I created them specially for this article.

  1. IA ROCKS [UNOFFICIAL]
  2. MMD Production Dance Studio
  3. MMD Vase (WIP) – you will need to convert this into PMX format yourself if you choose to use this item.
  4. A table that I created in the PMXe (and yes, you can actually create models using the PMXe; at least simple ones).
  5. Plus a sky dome (source unknown – probably originally by UssiP)

These were set up as shown in the screenshot immediately below.

Key frame #1

The vase is at it’s load position but since it will be moved in this animation, you must register its start location even if this is at the default location. So select its center bone (most accessory models will only have this bone, but in doubt, register everything) and click “Register” to record its location and aspect.

When I use the term “aspect” here, what this refers is its rotational data. All MMD bones have positional as well as aspect data. This entire set of data tells MMD everything it needs to know about the bone. This is especially important for objects that needs to be moved through 3D space. When you click the register button, this will put in effect a record of this data set so normally, you do not worry about this but it is still important to know.

PICKING UP THE VASE

In our animation, IA reaches/bends down to pick up the vase. This is the point at which the vase is associated with IA using the OP function.

Key frame #2

This is actually frame #30 in our animation and at this point we simply flip over to the vase model and access the OP function.

OP function = 'outside parent setting for MMD'

The vase only has one bone; the center bone. So we simply use that to attach it to a special bone in IA’s hand that is used for her to hold things. Most modern models have this bone. It is called the attach_R bone on my model but may have a different name on other models. Click the OP register button to create the association.

You can also add the attachment point bones to a model using the PMDe/PMXe with the semi-standard bone plug-in installed (or do it manually, which is what I do).

The next part is IMPORTANT.

Below the OP register button is information that records the exact position and aspect. This will only occur if you followed our instructions above and registered its positional information on the first frame; otherwise these fields most likely will be blank.

If your fields are blank go back to frame 1 to register the vase’s location and then repeat the OP function step, otherwise just click on the frame register.

So, if you did this right you will have clicked on both the OP register as well as the frame register button at this point. These two operations tells MMD what the vase is now slaved to, and when this association starts on the animation timeline; plus where the vase is and its aspect when this association is first created.

Now, with the vase we are using because we created it correctly, the vase remains on the floor when the OP function operations are recorded. With other models, this may not be the case. In which case you will have to move the object back to the desired location and repeat the procedure. Specifically, you must first register the bone’s new location (most likely now in the model’s hand) and then repeat both parts of the OP procedure.

Honestly, the process is not intuitive but it is logical, so think it through if you run into a stumbling block. There are just too many variables for me to be able to give clear instructions for all situations.

MOVING THE VASE

Now that she has the vase in her hands, IA can now lift it off the floor. As you animate this portion, you can see the vase moving along with IA. Nothing else needs to be done with the vase for this to happen.

Key frame #3

Then, next we turn her and her vase towards the table. It is important to note that IA is actually only attached to the vase via her right hand (since we used her right hand attachment bone). What this means is that the left hand is free to do whatever, but more importantly, with this type of pose, it will not automatically compensate for what her right arm is doing and may require adjustment.

Key frame #4

We then lean IA forward to place the vase at its final location.

Key frame #5

At this frame, since the vase is at its final location, we need to break the association between IA and the vase so that she can let go of it. This really simple to do. Open up the OP function window again and do the following:

OP function = 'outside parent setting for MMD'

With the center bone selected in the subject bone box, set the target model to non. The target bone field will be automatically filled so just click on the OP register button as well as the frame register button. The last step will correctly record the vase’s position at the location where it is dropped.

This next frame shows the vase remains where it is placed once IA takes her hands off it.

Key frame #6

And once IA is disassociated from the vase she is free to normal as can be seen in the final key frame of our animation. So in actual fact, only 7 key frames were necessary for this entire sequence. There were some correction frames needed to fix issues since as some movements required corrections to the left arm.

Plus I forgot to lock certain bones and that messed up my animation sequence in parts… *groan* … it is easy to forget the simple things when dealing with MMD.

Key frame #7

HOW TO SAVE YOUR MOTION

People trying to save this type of motion sometimes run into an issue even after they have set everything up correctly but find that they cannot be able to save their motions correctly; which is why it is necessary for me to cover this subject.

Remember that both IA and the vase are in motion. Each one is an individual entity. This means that there are 2 sets of motion data and not just 1. So when you save the motion data you must save the data for both IA and the vase, as in our example.

But there is an easier method: save your entire project as a .pmm file, which you should have already done anyway. This captures everything. But the above steps are necessary if you specifically need to save the individual motions, such as when you desire to share the data with other people.

AFTERWORDS

As always, thank you for reading and we hope that you have this article useful. Our animation is shown below and serves as “proof of concept”.

CREDITS

  • IA Rocks [Unofficial] – Mqdl/Trackdancer
  • IA (C) 1st Place Co. Ltd.
  • MMD 9.31 & PMXeditor
  • IrfanView
  • AviUtil
  • ExcellentShadows2

 


– SEE BELOW for MORE MMD TUTORIALS…


— — —


– _ — –


Visit the LearnMMD.com Homepage! Plenty of Mikumikudance instruction and info!

More MMD Tutorials...

Add MME Lighting Effect illuminates model against dark stages

How can I add an MME lighting effect to my MMD animation? How can I ...read more

Create 450-Frame MMD animation from scratch!

How do I create a 450-Frame MMD animation from scratch? How do I start making ...read more

No more boring MMD Camerawork - Keep it moving!

MMD Camerawork can be so boring. How can I add life to my MMD animations? ...read more

Rio Carnival Miku is my latest MMD Model Adoration Slideshow video

Where can I download the Rio Carnival Miku MMD model? How can I make an ...read more

Solved? White screen covers MMD stage Intel Gen 12 Processor blocks MMD stage

I just got a new computer with an Intel Gen 12 Processor and it will ...read more

Make MMD Background AVI Using AviUtl WMV Files

How do I make a background video for MikuMikuDance? MMD does not see my background ...read more

MMD Tutorials, OP Outside Parent Settings, Trackdancer2015

Post navigation

Previous Post: RAY-MMD: Haku’s crazy light show [PART 3]
Next Post: MMD Starry Winds Effect Makes Amazing Night Time Scenes!

Related Posts

  • MMD Bone Reference Charts make MMD Model-making Easier! Mae Blythe
  • Make MMD Background AVI using WAV and AviUtl
    Make MMD Background AVI Using AviUtl WMV Files "the making of" my video
  • Animation Fade helps MMD scene transitions Animation Shortcuts
  • Free Download MikuMikuDance MMD
    Reader writes: i don’t know how to do mmd :( MMD Tutorials
  • RAY-MMD: A method to get great results fast and easy! MMD Tutorials
  • Making stages/accessories for MMD using Sketchup Google SketchUp and MMD

More Related Articles

Professionally made models FOUND! Downloading New Models
How to make 360 degree MMD videos on YouTube. 360 Video
How to subtitle MMD videos MMD Tutorials
Mahlazer’s Walking Motion vmd file download for MMD Make a Smooth Walking Motion
Breathing “SOUL” into MMD models and scenes using Fine Art Techniques Advanced Shader Technique
MMD Cell Phone Screen Video MMD Cell Phone Screen Video Creation… just for that vertical screen! Cell-Phone Video

Comments (2) on “Using the OP function in an animation”

  1. Larry Gonzalez says:
    November 8, 2021 at 11:20 am

    How do I attach one object to both hands and have the hands and object move at the same time( Im trying to animate someone holding a two-handed gun)

    Reply
    1. Reggie_Dentmore says:
      November 9, 2021 at 6:32 pm

      Howdy! … You might get some hints from this post… allows one model to automatically follow the motion of another… like put a hand on a head while that other model is walking… adnd the hand stays on the moving head. … Trackdancer also has this other tutorial about using the OP function in a complicated way.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Download the latest version of MMD MikuMikuDance!Step-by-step instructions to help you make an MMD Music Video! bo-beep-bo-beep! LearnMMD's Step-by-Step MMD instructions for MikuMikuDance! Learn to make your own motions in MMD!
  • Save to the Desktop with ALL FILES selected.
    Opening Japanese Models in MikuMikuDance – Sometimes they don’t work! Applocale / 7-Zip
  • UTAU Splash Screen
    Making VSQ Files Without VOCALOID Using UTAU Mae Blythe
  • Announcing The 2013 Momi Cup Celebration. ARIZONA
  • Print a hard copy! Art is fleeting… especially NOW! MMD Tutorials
  • My VDE-3 Entry has Music, Camera, Dancers… Now for the HARD part. "the making of" my video
  • Create MMD Abstract Art from Low-Res Videos! MMD Tutorials
  • MMD Elektrika Motion gets new life!
    Ancient MMD Elektrika Motion Gets NEW Life! "the making of" my video
  • Darkening the stage lighting makes the floorlight look very bright! MMD 7.39, LearnMMD.com
    MMD Camera Motions: The Camera’s Gotta Keep Moving! Camera Motion
See LearnMMD's write-up on how to be a GOOD MMDer... Keep the Faith-MMD!!
Keep the Faith-MMD... Learn how to be a GOOD MMDer!

Find out about writing for LearnMMD!

Copyright © 2022 Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software and Instructions..

Powered by PressBook Premium theme

Go to mobile version