GUI with python

GUI with python

Anonymous
Not applicable
3,826 Views
4 Replies
Message 1 of 5

GUI with python

Anonymous
Not applicable

Hi I was wondering if there is any way to make a GUI with Python in motionbuilder, by that I mean create windows with buttons, labels, etc. ..Cat Very Happy

0 Likes
Accepted solutions (1)
3,827 Views
4 Replies
Replies (4)
Message 2 of 5

techvd
Advocate
Advocate
Accepted solution

Yes, there is. You can check out Python section in the SDK documentation here: http://download.autodesk.com/us/motionbuilder/sdk-documentation/index.html

 

There are tons of examples in the UI section that show how to create complicated GUI screens.

 

Message 3 of 5

Anonymous
Not applicable
You can use QT Designer and PySide and make super-beautiful ones too. Though quite a bit more complicated, for sure.
0 Likes
Message 4 of 5

Anonymous
Not applicable

PySide applies to 2014; in earlier versions, it is perhaps possible, but with issues. I really suggest that You looked into sample scripts available in PY documentation of MoBu. It is fair to say that without some wrapper classes, writing Your own GUI is rather annoying, complicated; I spent significant time wrapping everything into much easier to use classes, which allow me to design tools much faster - unless You design many toolboxes like I do, perhaps copypaste from samples may be Your best friend.

In v2015, I noticed they say they added PyGL, so that we might use openGL, too.

Also, look at fbmenumanager in samples - easiest menu is actually the popup menu that is generally shown after a right mouse button click in MoBu, so if You need just trivial Select Option choice, this is Your best friend potentially 🙂

 

Regards,

Stepan

0 Likes
Message 5 of 5

Anonymous
Not applicable

There's a bunch of sample Menu UI code in the PipelineConstructionSet as well.

0 Likes