This Python snippet creates a Vector_Switch node which has two Vector3 properties. No matter what I set them too, or how I try to access their value, I only get "None".
Code: Select all
from sipyutils import *
app = Application
Application.CreateShaderFromProgID("Softimage.sib_vector_switch.1.0", "Sources.Materials.DefaultLib.Scene_Material", "Vector_Switch")
oMatLib = app.ActiveProject.ActiveScene.MaterialLibraries
for oLib in oMatLib :
for oMaterial in oLib.Items :
oShaders = oMaterial.GetAllShaders()
for oShader in oShaders:
for oParam in oShader.Parameters:
log(oParam.Name + ": " + str(oParam.Value))
