Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / Setting "solid look" property in FBControlSet broken in MB2010?
  RSS 2.0 ATOM  

Setting "solid look" property in FBControlSet broken in MB2010?
Rate this thread
 
36238
 
Permlink of this thread   Subscribe to this thread
avatar
  • dimball
  • Posted: 02 November 2009 01:28 AM
  • Total Posts: 1
  • Joined: 11 December 2006 05:53 AM

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


Replies: 0




   
  Settings Choose Theme color: