|
Hello, im learning python and im trying to automate an export set-up.
I want all material named blinn1 shininess, specular and diffuse attributes to be set to a specific setting
here’s what I have so far
matList = FBSystem().Scene.Materials for mat in matList:
print mat.Name
if mat.Name == "blinn1":
mat.Shininess = 15
mat.Diffuse == (0.30, 0.30, 0.30)
mat.Specular == (0.50, 0.50, 0.50)
now I dont get any error, but the diffuse and specular are not set by the script.
Must be a syntax problem...help, anyone?
Thanks
|
|
|
|
found my syntax problem
from pyfbsdk import *
matList = FBSystem().Scene.Materials for mat in matList:
print mat.Name
if mat.Name == "blinn1":
mat.Shininess = 15
mat.Diffuse = FBColor(0.30, 0.30, 0.30)
mat.Specular = FBColor(0.50, 0.50, 0.50)
|
|
|