Quantcast
Channel: MotionBuilder Python topics
Browsing index pages (41 articles)
↧

how to detect when 'ctrl' is currently being pressed?

I've tried to detect the ctrl key with - if FBInputModifier().kFBKeyCtrl:    print 'ctrl' also if event.FBInputType == ctrl:    print 'ctrl' also just simply - if FBInputType.kFBKeyPress:   print...

View Article


Selection and Deletion Callback

Is it possible to add callbacks for when we try to delete objects and or select objects?

View Article


How to reorder a story track?

Is there an easy way to reorder a story track?  Since they seem to behave like photoshop layers, I would like to move one of the tracks to the top as opposed to it being below other tracks in the Story...

View Article

Image may be NSFW.
Clik here to view.

Removing asterisk in frame using python script

Hi, I need help on how to remove asterisk son frames using python take a look at the image below.  A sample code would be great. Thanks in advance guys you are real big help.  Angelo Samson  

View Article

Area Screenshot with Qt

Hi everyone, i was wondering if it would be possible to grab an area screenshot of MotionBuilder using Qt.I know how to do it inside Qt with QRubberBand and QPixMap::grabWindow but the issue is i can't...

View Article


How to get animation Node data?

Hello, I have created an example code of what I wanted to do:def FindAnimationNode( pParent, pName ): lResult = None for lNode in pParent.Nodes: if pName == lNode.Name: lResult = lNode break return...

View Article

Image may be NSFW.
Clik here to view.

Load RagDoll

Hi,Are there python functions to load and save ragdoll from/into .txt files as seen in this screen :

View Article

Manipulate another dialog window from Python?

Is it possible to manipulate a MotionBuilder window from a separate Python script? We are using a third-party dll plugin that consists of a dialog window and we would like to automate its functionality...

View Article


How can I Set Value on an Animation node in Relationship Editor?

my Example code looked like this: def FindAnimationNode( pParent, pName ): lResult = None for lNode in pParent.Nodes: if lNode.Name == pName: lResult = lNode break return lResult lConstraintRelation =...

View Article


Exporting FCurves

Hi, I am wondering if anyone could help me with an exporting problem.  I am wanting to export FCurves from MB into any kind of format (csv, ascii, anything I can work with), so I can replot it outside...

View Article

FBUndoManager questions

i'm creating a marker within an undo transaction and i would like the undo to delete that marker that i created. from pyfbsdk import * def moveMe(m): m.Translation = FBVector3d(5,5,5) k =...

View Article

Image may be NSFW.
Clik here to view.

MotionBuilder Profiling Center

Hi,I'm new to the AutoDesk forums and am needing some help with something in MotionBuilder. I'm looking to add to a python script a bit that deselects the Parallel Evaluation box in the Profiling...

View Article

Saving a Selection

I am looking to try to save out selected Materials from a Scene.  I can easily do this via the File Menu, Save Selection.  But I haven't had luck finding out how to script via Python.  I was able to...

View Article


python help FunctionBox Set Value

Hi all, I want to Set Value and Remove Value and control the value for the FunctionBox by python. But I can not find the way in SDK. I am using MoBu 2016Thanks in advance. Shinmer. 

View Article

FBPlayerControl start/end not saved

Hello everyone,I'm trying to modify the player loop start and end marks as long as the zoomwindow start and end.Nothing hard you'll tell me : lPlayer = FBPlayerControl() lPlayer.LoopStart =...

View Article


How to traverse backwards to get Model from a VidClip?

I am trying to traverse from a FBVideoClip all the way up to get the Model.  This doesn't seem to be working... what am I missing here or is there an easier way to do this? for lVidClip in...

View Article

PySide shiboken widget (qtool deprecated)

Hey guys,  I'm trying to find the best way to load my .ui file in MoBu 2015. But since qtool has been deprecated I'm trying to use their new setup. I'm having a hard time finding the best way to do it...

View Article


Splitting a take into many takes

I'm trying to take a long bit of mocap data and split it into many takes for use down the pipeline, say in Cinema 4D or Maya. I've done some quick crash course research over the last two days or so and...

View Article

Deleting story tracks inside a story folder

Hi, I'm trying to delete all the tracks in the story edit section. I'm able to access "loose" tracks with FBStory().RootEditFolder.Tracks but this won't include the tracks that are inside a story...

View Article

How to connect channels of two objects?

I have a null and a texture node.  I wish to connect the null translateY and Z for example to the texture node's translate U and V.  I am not entirely sure what the command would be to do the...

View Article
Browsing index pages (41 articles)


Latest Images