Python/Motionbuilder Part 1 - A bit about python syntax in motionbuilder

preview_player
Показать описание
In this video i show how i got started with Python scripting in MotionBuilder. It's not meant to be a full covering tutorial on Python, but just a few words on the syntax and how to evaluate python scripts in MotionBuilder.
Рекомендации по теме
Комментарии
Автор

Question:

from pyfbsdk import *

cube = FBModelCube ('test')
cube.Show = True
cube.Scaling = FBVector3d (10, 10, 10)

'BumpShader' ).Append (cube)
#(above) this promptly appends the bump shader to the cube as it is created

BUT

if i don't append the cube during the creation of the shader and instead would like to append it to the cube (or a different object for that matter - example below)

FBShader.Append ( 'BumpShader', cube ) <-- how do i correct this syntax?

the Mobu documentation guide isn't as easy to understand as the one in Maya, so I'm a bit lost on it :(

DoraKage
Автор

Welcome back! This isn't a complaint but it's worth saying.
The problem with expensive tools is that most of us watching can't afford them. I suppose we're the modern starving artists.
Though it's worth noting that this tool is free for students so they will be able to follow along.
Cheers!

NocturnalJin
visit shbcf.ru