|
Hi guys
I have this piece of code that will just set a ‘solid look’ property in the control set ‘Character’ (change this to the name of a character in your scene). This code works fine in MB2009, but does not in MB2010. I only get an error where it says:
NotImplementedError: Unable to access the data for this type of property.
Seems like someone broke something in the MB2010, or I might just be unaware of a new syntax in MB2010.
Could someone shed a light on this problem please? I’m just trying to port some scripts over to MB2010 from MB2009 and I need to do this quite soon!:(
Thanks in advance!
Huy
from pyfbsdk import *
def FindSceneNode(NameString):
lResult = None
for i in range(len(FBSystem().Scene.Components)):
if FBSystem().Scene.Components[i].Name == NameString:
lResult = FBSystem().Scene.Components[i]
break
return lResult
theChar = FindSceneNode("Character")
Control = theChar.GetCurrentControlSet()
TheSolidLook = Control.PropertyList.Find('Solid Look') print TheSolidLook.Data
|
|
|