Using MotionBuilder’s Python To Have One Object Follow Another
Here’s a quick script that I wrote to have one object follow another. The object that follows will do so on Translation (x and y axis only) as well as Rotation (y axis only). This is the type of set up I use often at work for when I...
Returning A Specific Word From MotionBuilder’s Python Dir()
I’m not sure why I did not think of this before, here is a little function that will search a user specified module using dir(), but it will also search the components and only return the ones that match the user’s specified filtered word. Let me explain with an...
Move a Character in MotionBuilder to the World’s Center with Python
With a dozen takes in my Motionbuilder scene and my Character placed at different locations on each take, I decided Python would help me move my Character to the World’s Center. With raw Mocap data your Character’s Wold Position is all based on the Actors position within the volume...
Running a Python Script On Every MotionBuilder File Within A Directory
It’s been awhile since I have posted, We are approaching launch of my next game tittle and now that I have a free moment I thought I would demonstrate how to run a python script on multiple “.fbx” files. All the “.fbx” files for this demo will exist within...
Using MotionBuilder Python to Find Your Current Character’s Hip
In this post we will go over selecting the Character’s hips through python – this method can select any valid body/object within your scene just by replace the search string from “Pelvis” to “the desired objects name“. I created a post a while back that would allow the user...
Re-visting MotionBuilder’s Python Dir()
In a previous post I briefly talked about the dir() command within python. The dir() command is an invaluable tool when trying to discover valid attributes. This is going to be a very quick post on how I have been using the print dir() command to list out attribute...
Using MotionBulider and Python to create a Take Renaming Tool
I’ve used Take Renaming tools in the past and I’ve always found them to be an amazing time saver, so when I sat down to think about what I would like to learn next in my Motionbuilder Python Scripting adventure I knew that writing my own Take Naming Tool...
MotionBuilder Python Script – MarkerTool v0.1 – Easily Create Markers In MotionBuilder Through Python Sripting
I created a Python script that would allow MotionBuilder to quickly create Markers (or nulls/helpers depending on what package you started out with). It is a simple script that creates a floating window that will list all Marker visual types, by checking off the type you want an hitting...
Generate a random colored Marker through MotionBuilder Python Scripting
It’s been awhile since I have posted, things have been really busy between working towards E3 and being a new dad. I thought I would do a really simple posting that was a lot of fun to figure out. 🙂 Below is a script for creating a Marker/Helper/Null in...
Finding a Character’s NameSpace with MotionBuilder Python
Here is a snippet of script that I use a lot when dealing with Character’s Name Spaces within MotionBuilder. I often split the LongName to provide me with the NameSpace, I find it cleaner to read when I print it out – which I do often to ensure my...