Kyle Moody
  • Home
  • Bio & CV
  • Testimonials
  • Projects/Titles
  • Work in progress
    • Animations
    • Rigs and Technical
  • Tips and Tricks

Mobu 2018 Python: Get global transformation of object

6/13/2019

 
If you are having trouble finding global transformations of an object this could be useful.

In the example below I use a function to find the requested object and return global transformations.

here is a link to the types of transformation vector/matrices possible that can be used with "FBModelTransformationType":
http://docs.autodesk.com/MOBPRO/2016/ENU/MotionBuilder-Developer-Help/index.html#!/url=./py_ref/class_f_b_model_transformation_type.html 

From my understanding you have to have an empty Vector3d for the information to be stored but you can use any vector2d/3d/4d but for this we use 3d, also True is GlobalInfo and False is Local ( its set to True by default )

​I hope someone finds this useful. :)

    

Mobu 2018 Python: Check and Create a Control Rig

6/13/2019

 
The purpose of this script is to check if current character has a controlrig, If it doesn't create one.

a simple script that could be created in to a function, its always good to run this before plotting to a control rig.

at Line 16 "currentCharacter.CreateControlRig(True), True will create FK/IK and False will create IK only.
Code Editor

    

Mobu 2018 Python - Selecting Character Hips

6/12/2019

 
A useful tip for getting objects which are characterized to a character.

Once the Objects are found through the link within the Characterization, you can get information for Translation, Rotation, Scale, Key frame data etc.

For this example below I will be selecting the hips.

    

Mobu 2018 Python - Getting all selected keys from Fcurve editor

6/11/2019

 
I have recently been looking into getting all animation keys that are selected within the FCurve View-port and thought this might be useful for anyone looking into different ways of getting keys from an object.

Currently this is only for the translation property but you could also add rotation and scale. 

    

    Kyle Moody

    Just a Lead Motion Capture Animator doing my best to share a few helpful tips and tricks I've learnt (or made up!) up along the way!

    View my profile on LinkedIn

    Archives

    June 2019

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Home
  • Bio & CV
  • Testimonials
  • Projects/Titles
  • Work in progress
    • Animations
    • Rigs and Technical
  • Tips and Tricks