|
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
Choose a job you love, and you will never have to work a day in your life.
|
|
|
|
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
|
|
|