PDA

View Full Version : Scripting MotionBuilder ????????


vishang
07-01-2006, 05:05 PM
Hello,

I am trying to automate some tasks in motionbuilder using PYTHON scripts,

I know PYTHON little, but scripting is more about knowing motionbuilder ,

I use Motionbuilder 6 Pro, but there is no way of looking what is going inside motionbuilder when you do any task in it,
like no "echo commands",

so how do you know what commands to use when you want do some simple things like renaming objects, making characters or plotting charcters using scripting,

I wrote this

from pyfbsdk import *


it listed so many classes or functions like FBCamera, FBBox, etc...

but how to use FBCamera to do some stuff with existing or new camera,

I have no clue about that,


anyone having good experience with that?

or any good site explaining this stuff???



thanks

vishang
07-03-2006, 01:02 PM
No reply,

at least someone tell me from where i can download sample .py script files for Motionbuilder???

someone......

from Alias???



it can be very helpful for anyone working on motionbuilder projects, especially MOCAP projects.


thanks

notdream
07-22-2006, 08:12 PM
Hi
I have heard of many people live and make 3d animation in India know how to write script and plugin in Motion Builder and Maya (MEL)... am I right? So if you will learn from where able to download these scripts and tutorial could you let me know it please? Thank you.

alec.tron
09-05-2006, 03:10 PM
hmmm...no replies....?
Oh well, I also would be very interested to know if there s any way to have MB echo all tasks it does in a python console....
Would help animation monkeys & scripting noobs like me to get started...
Thanks for any hint on this matter,
c.

varenyk54
03-21-2007, 08:10 PM
This should lead you in the right direction:

#**********************************************************************
# (C) Copyright 2004 Kaydara, Inc.
# ALL RIGHTS RESERVED
#**********************************************************************

from pyfbsdk import FBCamera, FBVector3d, FBModelTransformationMatrix

# Once created, the camera needs to be made visible
lCamera = FBCamera("Camera created by script")
lCamera.Show = True
lCamera.SetVector( FBVector3d( 50, 50, 50 ) )

# Cleanup
del( lCamera, FBCamera, FBVector3d, FBModelTransformationMatrix )

#along with


lModel = FBFindModelByName( camera_name_here )

if lModel:
#....automated task



I'm a casual scripter so my methods may seem 'unorthodox', but I hope it helps. Generally I just try to piece scripts together to get them to do what I want, and learn how each language integrates in various apps. Luck!

Neill
03-28-2007, 01:01 PM
No reply,

at least someone tell me from where i can download sample .py script files for Motionbuilder???

someone......

from Alias???



it can be very helpful for anyone working on motionbuilder projects, especially MOCAP projects.


thanks


Sample scripts & plug-ins are inclided in the full version of MB installation. So check it.

CGTalk Moderation
03-28-2007, 01:01 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.