MotionBuilder Forum
Welcome to Autodesk’s MotionBuilder Forums. Share your knowledge, ask questions, and explore popular MotionBuilder topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BUG? MB2010 Shaders

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
169 Views, 2 Replies

BUG? MB2010 Shaders

Hi,
Has anyone else experienced this?
I get the same thing in both OR and from within the python editor... or did I miss something?
I've tried it on two different machines and get the same result.

A simple test code:

from pyfbsdk import *

lShaderManager = FBShaderManager()
lBox = FBModelCube("Test")
lBox.Show = True

lShader = lShaderManager.CreateShader("WireShader")

if(lShader):
#All do the same thing...none works
lBox.Shaders.append(lShader)
lShader.ReplaceAll(lBox)
#FBConnect(lShader,lBox)


It actully applies the shader to the model but it doesnt seems to connect it. If I drag and drop it, it works...

Cheers,
AV
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Turn on the propriate shading mode, with D&D the application will automatically adjust the shading mode, but with Python Script, you need to do it by yourself.

lBox.ShadingMode = FBModelShadingMode.kFBModelShadingAll
Message 3 of 3
Anonymous
in reply to: Anonymous

Excellent!
Thank you for that info!

Cheers,
Av

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report