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...
How to use functions with MotionBuilder Python
Using functions will save you from re-writing and maintaining many of the same lines of code over and over. What is a Python Function? “A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application...
MotionBuilder’s Constraint system and Python.
MotionBuilder’s Constraint system is a must for animators. Weather you are rigging, transferring data or animating – you will want to use a Constraint system to make your life easier. Let’s see how Python can access MotionBuilder’s Constraint system. Using Python to set up a Constraint system in MotionBuilder...
Using Python to import MotionBuilder Characters into story.Â
MotionBuilder comes with a great script that will place your selected character into a Character Track within the Story, I wanted to write one that would put all of the scene’s Characters into the story. Once again I will use the “Mia_Rigged.fbx” file to test my script. I...
Saving MotionBuilder Character Animation with Python
When I get Mocap it’s usually in a messy scene. Optics, Markets, strange NameSpace, etc. they all can bog down a scene. One of the first thing I do is save out the Character Animation and load it back into a clean scene. Using Python to save out Character...
Create a button
Python scripts are great, they are even better when we can click a button to run them. A small GUI like the image shown (“Do it!” Button) can be very easy to set up. Thanks to neil3d.com‘s UI Builder Tool, this was valuable in creating a setup script that...